commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
3085647ce23fd71c22ea6bca597d26a1081bfb4e | Fix bug in ESFFile uncovered by unit testing | ethanmoffat/EndlessClient | EOLib.IO/Pub/ESFFile.cs | EOLib.IO/Pub/ESFFile.cs | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using System.Diagnostics;
using System.IO;
using System.Text;
using EOLib.IO.Services;
namespace EOLib.IO.Pub
{
public class ESFFile : BasePubFile<ESFRecord>
{
... | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using System.Diagnostics;
using System.IO;
using System.Text;
using EOLib.IO.Services;
namespace EOLib.IO.Pub
{
public class ESFFile : BasePubFile<ESFRecord>
{
... | mit | C# |
2fd7b4f3855379e0964a14d1aaed66c04213ef54 | Update comment | charlenni/Mapsui,charlenni/Mapsui | Mapsui.Nts/Extensions/GeometryExtensions.cs | Mapsui.Nts/Extensions/GeometryExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Mapsui.GeometryLayers;
using NetTopologySuite.Geometries;
namespace Mapsui.Nts.Extensions
{
public static class GeometryExtensions
{
//!!! todo: Remove method and replace with direct call to Geometry.Coordinates
public sta... | using System;
using System.Collections.Generic;
using System.Linq;
using Mapsui.GeometryLayers;
using NetTopologySuite.Geometries;
namespace Mapsui.Nts.Extensions
{
public static class GeometryExtensions
{
//!!! todo: Remove method and replace with direct call to Geometry.Coordinates
public sta... | mit | C# |
43b65ca46ce3a1abd4609c951c126bc1bacc5523 | Update the documentation for IViewComponentHelper.InvokeAsync | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNetCore.Mvc.ViewFeatures/IViewComponentHelper.cs | src/Microsoft.AspNetCore.Mvc.ViewFeatures/IViewComponentHelper.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.Threading.Tasks;
using Microsoft.AspNetCore.Html;
namespace Microsoft.AspNetCore.Mvc
{
/// <summary>
/// Supports th... | // 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.Threading.Tasks;
using Microsoft.AspNetCore.Html;
namespace Microsoft.AspNetCore.Mvc
{
/// <summary>
/// Supports th... | apache-2.0 | C# |
2597963e9cb842144c5b1b9d4a7349553677685a | Add System.ComponentModel.TypeConverter serialization | krk/corefx,Ermiar/corefx,alexperovich/corefx,ptoonen/corefx,parjong/corefx,rahku/corefx,alexperovich/corefx,Ermiar/corefx,ViktorHofer/corefx,billwert/corefx,marksmeltzer/corefx,ravimeda/corefx,twsouthwick/corefx,gkhanna79/corefx,lggomez/corefx,lggomez/corefx,dotnet-bot/corefx,krk/corefx,weltkante/corefx,dotnet-bot/core... | src/System.ComponentModel.TypeConverter/src/System/ComponentModel/InvalidAsynchronousStateException.cs | src/System.ComponentModel.TypeConverter/src/System/ComponentModel/InvalidAsynchronousStateException.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Runtime.Serialization;
namespace System.ComponentModel
{
/// <summary>
/// <para>The except... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Runtime.Serialization;
namespace System.ComponentModel
{
/// <summary>
/// <para>The except... | mit | C# |
d1c9d4382f8bc41f65329d4114c53948d836ad3b | use factory method in sample | tibel/Caliburn.Light | samples/Demo.SimpleMDI/ShellViewModel.cs | samples/Demo.SimpleMDI/ShellViewModel.cs | using Caliburn.Light;
using System;
using System.Threading.Tasks;
namespace Demo.SimpleMDI
{
public class ShellViewModel : Conductor<TabViewModel>.Collection.OneActive
{
private readonly Func<TabViewModel> _createTabViewModel;
private int _count = 0;
private bool _canClosePending;
... | using Caliburn.Light;
using System.Threading.Tasks;
namespace Demo.SimpleMDI
{
public class ShellViewModel : Conductor<TabViewModel>.Collection.OneActive
{
private int _count = 1;
private bool _canClosePending;
public void OpenTab()
{
var tab = IoC.GetInstance<TabV... | mit | C# |
aaf2edace9d43e9cadfcfb874ef5d8a68be660f6 | remove code from old incorrect test | peppy/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu,ppy/osu | osu.Game.Tests/Visual/Multiplayer/TestMultiplayerModLoading.cs | osu.Game.Tests/Visual/Multiplayer/TestMultiplayerModLoading.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 NUnit.Framework;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Osu.Mods;
using osu.Game.Screens.Select;
namespace osu.Game.Tests.Visual.Multip... | // 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 NUnit.Framework;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Osu.Mods;
using osu.Game.Screens.Select;
// Resolve these names to types becaus... | mit | C# |
b4d0a219086f7c3d0013e4053a084a19c13ed10e | Fix message | killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,DDReaper/MixedRealityToolkit-Unity,killerantz/HoloToolkit-Unity | Assets/MixedRealityToolkit/Definitions/Utilities/TrackedObjectType.cs | Assets/MixedRealityToolkit/Definitions/Utilities/TrackedObjectType.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
namespace Microsoft.MixedReality.Toolkit.Utilities
{
public enum TrackedObjectType
{
/// <summary>
/// Calculates position and... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
namespace Microsoft.MixedReality.Toolkit.Utilities
{
public enum TrackedObjectType
{
/// <summary>
/// Calculates position and... | mit | C# |
80d3b64a5f047161e44b2a31687d679e9e321409 | Change summary of UmbracoUserTimeoutFilterAttribute to more accurately describe what it does now | marcemarc/Umbraco-CMS,robertjf/Umbraco-CMS,KevinJump/Umbraco-CMS,KevinJump/Umbraco-CMS,abryukhov/Umbraco-CMS,dawoe/Umbraco-CMS,KevinJump/Umbraco-CMS,abryukhov/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,abjerner/Umbraco-CMS,umbraco/Umbraco-CMS,robertjf/Umbraco-CMS,dawoe/Umbraco-CMS,dawoe/Umb... | src/Umbraco.Web.Common/Filters/UmbracoUserTimeoutFilterAttribute.cs | src/Umbraco.Web.Common/Filters/UmbracoUserTimeoutFilterAttribute.cs | using System.Globalization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Umbraco.Extensions;
namespace Umbraco.Web.Common.Filters
{
/// <summary>
/// This will check if the user making the request is authenticated and if there's an auth ticket tied to the user
/// we will a... | using System.Globalization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Umbraco.Extensions;
namespace Umbraco.Web.Common.Filters
{
/// <summary>
/// This will check if the request is authenticated and if there's an auth ticket present we will
/// add a custom header to the... | mit | C# |
35d417ad57ff504062625fb182be9679ef09ebe2 | Rename one more method | another-guy/Peppermint | Peppermint/PrimitiveTypes/TypeExtensions.cs | Peppermint/PrimitiveTypes/TypeExtensions.cs | using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace System
{
public static class TypeExtensions
{
public static IEnumerable<Type> GetAllBaseTypes(this Type type)
{
var currentType = type;
while (true)
{
if ... | using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace System
{
public static class TypeExtensions
{
public static IEnumerable<Type> GetAllBaseTypes(this Type type)
{
var currentType = type;
while (true)
{
if ... | mit | C# |
8f998da8a87e20f387bb47ac3287f09c41359592 | Remove unused message id | praeclarum/Ooui,praeclarum/Ooui,praeclarum/Ooui | Ooui/Message.cs | Ooui/Message.cs | using System;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Ooui
{
public class Message
{
[JsonProperty("m")]
public MessageType MessageType = MessageType.Nop;
[JsonProperty("id")]
public string TargetId = "";
... | using System;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Ooui
{
public class Message
{
[JsonProperty("mid")]
public long Id = GenerateId ();
[JsonProperty("m")]
public MessageType MessageType = MessageType.Nop;... | mit | C# |
7bf55c2298b77f2fa698f64aa2ffdce45e9c4297 | fix test | zpisgod/CIDemo,zpisgod/CIDemo | src/CIDemo/Controllers/HomeController.cs | src/CIDemo/Controllers/HomeController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace CIDemo.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
return Content(System.Configuration.ConfigurationManager.AppSettings["... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace CIDemo.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
return Content(System.Configuration.ConfigurationManager.AppSettings["... | mit | C# |
96ef3e05373d4f030d86151faec9fa31397c36eb | change game state to playing in awake | MrErdalUral/Cyborg-Ninja-Training-Program | Assets/Script/GameManager.cs | Assets/Script/GameManager.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour {
public static GameManager Instance;
public GameState GameState = GameState.PLAYING;
/// <summary>
/// Awake is called when the script instance is being loaded.
/// </summary>
void Awake()... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour {
public static GameManager Instance;
public GameState GameState = GameState.PLAYING;
/// <summary>
/// Awake is called when the script instance is being loaded.
/// </summary>
void Awake()... | apache-2.0 | C# |
9f62521889a77ef0b5097dc8810f5f7cdbffb026 | prepare release | alexvictoor/BrowserLog,alexvictoor/BrowserLog,alexvictoor/BrowserLog | Global.AssemblyInfo.cs | Global.AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyCompany("A... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyCompany("A... | apache-2.0 | C# |
32cc694891a679fa8cbb20f602ea31df54fcb27c | Fix that check not null message didn't contain argument name | paiden/Nett | Source/Nett/Extensions/GenericExtensions.cs | Source/Nett/Extensions/GenericExtensions.cs | namespace Nett.Extensions
{
using System;
internal static class GenericExtensions
{
public static T CheckNotNull<T>(this T toCheck, string argName)
where T : class
{
if (toCheck == null) { throw new ArgumentNullException(argName); }
return toCheck;
... | namespace Nett.Extensions
{
using System;
internal static class GenericExtensions
{
public static T CheckNotNull<T>(this T toCheck, string argName)
where T : class
{
if (toCheck == null) { throw new ArgumentNullException(nameof(argName)); }
return toChe... | mit | C# |
f6f73cfc46cdbdaf4cfc57d6ced65e1f7cbf59be | Fix to the browse images coming up 404. | MichaelHorsch/ImageResizer.Sitecore.Plugin | ImageResizer.Sitecore.Plugin/SitecoreVirtualImageProviderPlugin.cs | ImageResizer.Sitecore.Plugin/SitecoreVirtualImageProviderPlugin.cs | using ImageResizer.Plugins;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ImageResizer.Sitecore.Plugin
{
public class SitecoreVirtualImageProviderPlugin : IPlugin, IVirtualImageProvider
{
... | using ImageResizer.Plugins;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ImageResizer.Sitecore.Plugin
{
public class SitecoreVirtualImageProviderPlugin : IPlugin, IVirtualImageProvider
{
... | apache-2.0 | C# |
a979fc31c4cbaececfe02c9c408e2ce60c1485e1 | Update HttpHelpers.cs | mperdeck/jsnlog | src/JSNLog/Infrastructure/HttpHelpers.cs | src/JSNLog/Infrastructure/HttpHelpers.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
#if NET40
using System.Web;
#else
using Microsoft.AspNetCore.Http;
#endif
namespace JSNLog.Infrastructure
{
internal static class HttpHelpers
{
private static Regex _regex = new ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
#if NET40
using System.Web;
#else
using Microsoft.AspNetCore.Http;
#endif
namespace JSNLog.Infrastructure
{
internal static class HttpHelpers
{
private static Regex _regex = new ... | mit | C# |
832481685ac5d22e785fe7aa15fa074c68bb9836 | Use type to find E I | ReiiYuki/KU-Structure | Assets/Scripts/Beam/MemberProperty.cs | Assets/Scripts/Beam/MemberProperty.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MemberProperty : MonoBehaviour {
public float length;
public int number,type;
float[] E = { 1 };
float[] I = { 1 };
public float GetI()
{
return I[type];
}
public float GetE()
{
... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MemberProperty : MonoBehaviour {
public float E, I, length;
public int number;
}
| mit | C# |
5f7cc41f57a30dbec90003f44941f892f119d801 | Update src/Tools/ExternalAccess/AspNetCore/EmbeddedLanguages/AspNetCoreEmbeddedLanguageClassificationContext.cs | weltkante/roslyn,CyrusNajmabadi/roslyn,dotnet/roslyn,bartdesmet/roslyn,dotnet/roslyn,mavasani/roslyn,weltkante/roslyn,shyamnamboodiripad/roslyn,shyamnamboodiripad/roslyn,jasonmalinowski/roslyn,CyrusNajmabadi/roslyn,mavasani/roslyn,jasonmalinowski/roslyn,jasonmalinowski/roslyn,shyamnamboodiripad/roslyn,mavasani/roslyn,w... | src/Tools/ExternalAccess/AspNetCore/EmbeddedLanguages/AspNetCoreEmbeddedLanguageClassificationContext.cs | src/Tools/ExternalAccess/AspNetCore/EmbeddedLanguages/AspNetCoreEmbeddedLanguageClassificationContext.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Threading;
using Microsoft.CodeAnalysis.Classification;
using Microsoft.CodeAnalysis.Text;
namespace ... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Threading;
using Microsoft.CodeAnalysis.Classification;
using Microsoft.CodeAnalysis.Text;
namespace ... | mit | C# |
28955c9ceda1279bd0008acedb17d1a151ebf1b3 | fix test std err vs std out | nh43de/ToTypeScriptD,nh43de/ToTypeScriptD,nh43de/cstsd,ToTypeScriptD/ToTypeScriptD,nh43de/ToTypeScriptD,nh43de/cstsd,ToTypeScriptD/ToTypeScriptD,ToTypeScriptD/ToTypeScriptD,nh43de/ToTypeScriptD,ToTypeScriptD/ToTypeScriptD,ToTypeScriptD/ToTypeScriptD,nh43de/ToTypeScriptD | ToTypeScriptD.Tests/ExeTests/ExeTestBase.cs | ToTypeScriptD.Tests/ExeTests/ExeTestBase.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ToTypeScriptD.Tests.ExeTests
{
public class ExeTestBase
{
string TypeScriptDExePath = @"../../../bin/ToTypeScriptD.exe";
public ... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ToTypeScriptD.Tests.ExeTests
{
public class ExeTestBase
{
string TypeScriptDExePath = @"../../../bin/ToTypeScriptD.exe";
public ... | mit | C# |
c203fd7f6b9c0ebac226c59f6d6408693ff54646 | rename shared series test | hulihutu9/Live-Charts,rusanov-vladimir/Live-Charts,DeadlyEmbrace/Live-Charts,henninltn/Live-Charts,beto-rodriguez/Live-Charts | UnitTesting/General/SeriesSharedInCharts.cs | UnitTesting/General/SeriesSharedInCharts.cs | using LiveCharts;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTesting.General
{
public partial class GeneralTest
{
[TestMethod, TestCategory("General")]
public void SharedSeries()
{
var sharedSeries = new LineSeries {Values = new ChartValues<double> {1... | using LiveCharts;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTesting.General
{
public partial class GeneralTest
{
[TestMethod, TestCategory("General")]
public void SharedSeriesValues()
{
var sharedSeries = new LineSeries {Values = new ChartValues<doub... | mit | C# |
8c02ab26ea9948ef6bbc8c9e04e329155b4e5faa | fix paths | nessos/Vagabond,nessos/Vagabond,mbraceproject/Vagabond,mbraceproject/Vagabond | samples/ThunkServer/thunkServer.csx | samples/ThunkServer/thunkServer.csx | #r "bin/Debug/netstandard2.0/FsPickler.dll"
#r "bin/Debug/netstandard2.0/Vagabond.AssemblyParser.dll"
#r "bin/Debug/netstandard2.0/Vagabond.dll"
#r "bin/Debug/netstandard2.0/ThunkServer.exe"
// before running sample, don't forget to set binding redirects to FSharp.Core in InteractiveHost.exe
using System.Linq;
using... | #r "bin/Debug/net45/FsPickler.dll"
#r "bin/Debug/net45/Vagabond.AssemblyParser.dll"
#r "bin/Debug/net45/Vagabond.dll"
#r "bin/Debug/net45/ThunkServer.exe"
// before running sample, don't forget to set binding redirects to FSharp.Core in InteractiveHost.exe
using System.Linq;
using ThunkServer;
ThunkClient.Executabl... | mit | C# |
52d2eada1d38c18dd93462c6e34cb72f44da9a4b | remove warnings on mono | huoxudong125/Metrics.NET,cvent/Metrics.NET,ntent-ad/Metrics.NET,DeonHeyns/Metrics.NET,cvent/Metrics.NET,MetaG8/Metrics.NET,DeonHeyns/Metrics.NET,Liwoj/Metrics.NET,etishor/Metrics.NET,etishor/Metrics.NET,alhardy/Metrics.NET,Recognos/Metrics.NET,mnadel/Metrics.NET,huoxudong125/Metrics.NET,Liwoj/Metrics.NET,MetaG8/Metrics... | Samples/Metrics.Samples/MultiRegistryMetrics.cs | Samples/Metrics.Samples/MultiRegistryMetrics.cs | using System;
using System.Linq;
using Metrics.Core;
using Metrics.Reporters;
namespace Metrics.Samples
{
public class MultiRegistryMetrics
{
private readonly MetricsRegistry first = new LocalRegistry("First Registry");
private readonly MetricsRegistry second = new LocalRegistry("Second Regist... | using System.Linq;
using Metrics.Core;
using Metrics.Reporters;
namespace Metrics.Samples
{
public class MultiRegistryMetrics
{
private readonly MetricsRegistry first = new LocalRegistry("First Registry");
private readonly MetricsRegistry second = new LocalRegistry("Second Registry");
... | apache-2.0 | C# |
ab1a681b2fda3c8cf4a332f993728c15872e5b0a | Add remind_on to insert statement | schlos/denver-schedules-api,codeforamerica/denver-schedules-api,codeforamerica/denver-schedules-api,schlos/denver-schedules-api | Schedules.API/Tasks/Reminders/CreateReminder.cs | Schedules.API/Tasks/Reminders/CreateReminder.cs | using System;
using Simpler;
using Schedules.API.Models;
using Dapper;
using System.Linq;
namespace Schedules.API.Tasks
{
public class CreateReminder: InOutTask<CreateReminder.Input, CreateReminder.Output>
{
public FetchReminderType FetchReminderType { get; set; }
public class Input
{
public Re... | using System;
using Simpler;
using Schedules.API.Models;
using Dapper;
using System.Linq;
namespace Schedules.API.Tasks
{
public class CreateReminder: InOutTask<CreateReminder.Input, CreateReminder.Output>
{
public FetchReminderType FetchReminderType { get; set; }
public class Input
{
public Re... | mit | C# |
c9eb4bd4c1d332d058e0090a7b918c406ed43e51 | Fix Poland 100th anniversary | tinohager/Nager.Date,tinohager/Nager.Date,tinohager/Nager.Date | Src/Nager.Date/PublicHolidays/PolandProvider.cs | Src/Nager.Date/PublicHolidays/PolandProvider.cs | using Nager.Date.Model;
using System.Collections.Generic;
using System.Linq;
namespace Nager.Date.PublicHolidays
{
public class PolandProvider : CatholicBaseProvider
{
public override IEnumerable<PublicHoliday> Get(int year)
{
//Poland
//https://en.wikipedia.org/wiki/Pu... | using Nager.Date.Model;
using System.Collections.Generic;
using System.Linq;
namespace Nager.Date.PublicHolidays
{
public class PolandProvider : CatholicBaseProvider
{
public override IEnumerable<PublicHoliday> Get(int year)
{
//Poland
//https://en.wikipedia.org/wiki/Pu... | mit | C# |
f6a00e250f75e0a07fa18570cfeacde8377bb4bd | update version | IdentityServer/IdentityServer4.Templates,IdentityServer/IdentityServer4.Templates,IdentityServer/IdentityServer4.Templates | build.cake | build.cake | var target = Argument("target", "Default");
var configuration = Argument<string>("configuration", "Release");
///////////////////////////////////////////////////////////////////////////////
// GLOBAL VARIABLES
///////////////////////////////////////////////////////////////////////////////
var buildArtifacts... | var target = Argument("target", "Default");
var configuration = Argument<string>("configuration", "Release");
///////////////////////////////////////////////////////////////////////////////
// GLOBAL VARIABLES
///////////////////////////////////////////////////////////////////////////////
var buildArtifacts... | apache-2.0 | C# |
c59e04991c55e4a18cb6cd80d83b4219237aba73 | Add Octopus Deploy | dcomartin/Cake.Demo | build.cake | build.cake | #tool "nuget:?package=xunit.runner.console"
#tool "nuget:?package=OctopusTools"
var target = Argument("target", "Build");
Task("Default")
.IsDependentOn("xUnit")
.IsDependentOn("Pack")
.IsDependentOn("OctoPush")
.IsDependentOn("OctoRelease");
Task("Build")
.Does(() =>
{
MSBuild("./src/CakeDemo.sln");
});... | #tool "nuget:?package=xunit.runner.console"
var target = Argument("target", "Build");
Task("Default")
.IsDependentOn("xUnit");
Task("Build")
.Does(() =>
{
MSBuild("./src/CakeDemo.sln");
});
Task("xUnit")
.IsDependentOn("Build")
.Does(() =>
{
XUnit2("./src/CakeDemo.Tests/bin/Debug/CakeDemo.Tests.dll");... | mit | C# |
6da5d5c24538bd3322dc912965bd56a73548066f | Correct the JSON name for the position length on tokens (#5499) | elastic/elasticsearch-net,elastic/elasticsearch-net | src/Nest/Indices/Analyze/AnalyzeToken.cs | src/Nest/Indices/Analyze/AnalyzeToken.cs | // Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information
using System.Runtime.Serialization;
namespace Nest
{
[DataContract]
public class AnalyzeToken
{
[DataMember(... | // Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information
using System.Runtime.Serialization;
namespace Nest
{
[DataContract]
public class AnalyzeToken
{
[DataMember(... | apache-2.0 | C# |
4780f49edbfc96aa683867169e0f47fb64031281 | Set background color to black | ashokgelal/MacCaptureSample | CaptureDevice/MainWindowController.cs | CaptureDevice/MainWindowController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using MonoMac.Foundation;
using MonoMac.AppKit;
using MonoMac.AVFoundation;
namespace CaptureDevice
{
public partial class MainWindowController : MonoMac.AppKit.NSWindowController
{
#region Constructors
// Called when created ... | using System;
using System.Collections.Generic;
using System.Linq;
using MonoMac.Foundation;
using MonoMac.AppKit;
using MonoMac.AVFoundation;
namespace CaptureDevice
{
public partial class MainWindowController : MonoMac.AppKit.NSWindowController
{
#region Constructors
// Called when created ... | mit | C# |
1f341abb8e95ac0657afade56534b062e7628ad9 | Add ToString method to empty object | textamina/scriban,lunet-io/scriban | src/Scriban/Runtime/EmptyScriptObject.cs | src/Scriban/Runtime/EmptyScriptObject.cs | // Copyright (c) Alexandre Mutel. All rights reserved.
// Licensed under the BSD-Clause 2 license.
// See license.txt file in the project root for full license information.
using System.Collections.Generic;
using System.Diagnostics;
using Scriban.Parsing;
using Scriban.Syntax;
namespace Scriban.Runtime
{
/// <sum... | // Copyright (c) Alexandre Mutel. All rights reserved.
// Licensed under the BSD-Clause 2 license.
// See license.txt file in the project root for full license information.
using System.Collections.Generic;
using Scriban.Parsing;
using Scriban.Syntax;
namespace Scriban.Runtime
{
/// <summary>
/// The empty ob... | bsd-2-clause | C# |
a36e1c3faf0e45a83b8cf68fbd69d0a0b47572c1 | Add String Argument Extension method | thnetii/dotnet-common | src/THNETII.Common/ArgumentExtensions.cs | src/THNETII.Common/ArgumentExtensions.cs | using System;
namespace THNETII.Common
{
public static class ArgumentExtensions
{
public static T ThrowIfNull<T>(this T instance, string name) where T : class
=> instance ?? throw new ArgumentNullException(name);
/// <exception cref="ArgumentException" />
/// <exception cr... | using System;
namespace THNETII.Common
{
public static class ArgumentExtensions
{
public static T ThrowIfNull<T>(this T instance, string name) where T : class
=> instance ?? throw new ArgumentNullException(name);
}
}
| mit | C# |
d02fd4c931a015eb76a5fac7d3b76fc3e2b5a31f | add version info to home page | IdentityServer/IdentityServer4.Quickstart.UI,IdentityServer/IdentityServer4.Quickstart.UI,IdentityServer/IdentityServer4.Quickstart.UI,IdentityServer/IdentityServer4.Quickstart.UI | Views/Home/Index.cshtml | Views/Home/Index.cshtml | @{
var version = typeof(IdentityServer4.Hosting.IdentityServerMiddleware).Assembly.GetName().Version.ToString();
}
<div class="welcome-page">
<div class="row page-header">
<div class="col-sm-10">
<h1>
<img class="icon" src="~/icon.jpg">
Welcome to IdentitySer... | <div class="welcome-page">
<div class="row page-header">
<div class="col-sm-10">
<h1>
<img class="icon" src="~/icon.jpg">
Welcome to IdentityServer4
@*<small>(build {version})</small>*@
</h1>
</div>
</div>
<div class="r... | apache-2.0 | C# |
ebd7d1b7654419e07d4a5faa2b38202440969596 | Update Call.cs | RR-Studio/RealEstateCrm,RR-Studio/RealEstateCrm,RR-Studio/RealEstateCrm | WebApp/Entities/Call.cs | WebApp/Entities/Call.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WebApp.Models;
namespace WebApp.Entities
{
public class Call
{
public int Id { get; set; }
public string Status { get; set; }
public DateTime Date { get; set; }
pu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WebApp.Models;
namespace WebApp.Entities
{
public class Call
{
public int Id { get; set; }
public string Name { get; set; }
public DateTime Date { get; set; }
public strin... | mit | C# |
f160f0ab7a444726ac829176242f2b693faa78a0 | Update copyright info | hydna/Hydna.NET | src/Hydna.Net/Properties/AssemblyInfo.cs | src/Hydna.Net/Properties/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 ("Hydna.Net")]
[assembly: AssemblyDescription (".NET bindings for Hydna")]
[assembly: AssemblyConfig... | 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 ("Hydna.Net")]
[assembly: AssemblyDescription (".NET bindings for Hydna")]
[assembly: AssemblyConfig... | mit | C# |
e78564bb898d07be9f3ea38b24b774dd12797372 | Fix docs | DDReaper/MixedRealityToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity | Assets/MRTK/SDK/Editor/Migration/ButtonConfigHelperMigrationHandler.cs | Assets/MRTK/SDK/Editor/Migration/ButtonConfigHelperMigrationHandler.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Microsoft.MixedReality.Toolkit.UI;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Utilities
{
/// <summary>
/// Migration handler for mig... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Microsoft.MixedReality.Toolkit.UI;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Utilities
{
/// <summary>
/// Migration handler for mig... | mit | C# |
fae5abe70b88a1232e289ac158326e1b98692fe1 | Remove unnecessary, and wrong, check | IvionSauce/MeidoBot | MiscUtils/ExtensionMethods.cs | MiscUtils/ExtensionMethods.cs | using System;
public static class ExtensionMethods
{
public static string Str(this TimeSpan duration)
{
var hours = Math.Abs((int)duration.TotalHours);
var minutes = Math.Abs(duration.Minutes);
int seconds = Math.Abs(duration.Seconds);
if (duration >= TimeSpan.Zero)
... | using System;
public static class ExtensionMethods
{
public static string Str(this TimeSpan duration)
{
var hours = Math.Abs((int)duration.TotalHours);
var minutes = Math.Abs(duration.Minutes);
int seconds = Math.Abs(duration.Seconds);
if (Math.Abs(duration.Milliseconds) >= 50... | bsd-2-clause | C# |
9dfbdfea764dd9e9793c5190e35e6458f5b414cc | Update help message | matteocontrini/locuspocusbot | LocusPocusBot/Handlers/HelpHandler.cs | LocusPocusBot/Handlers/HelpHandler.cs | using System.Text;
using System.Threading.Tasks;
using Telegram.Bot.Types.Enums;
namespace LocusPocusBot.Handlers
{
public class HelpHandler : HandlerBase
{
private readonly IBotService bot;
public HelpHandler(IBotService botService)
{
this.bot = botService;
}
... | using System.Text;
using System.Threading.Tasks;
using Telegram.Bot.Types.Enums;
namespace LocusPocusBot.Handlers
{
public class HelpHandler : HandlerBase
{
private readonly IBotService bot;
public HelpHandler(IBotService botService)
{
this.bot = botService;
}
... | mit | C# |
16b170dea8af4eaeed9fe1b7bd61e34ebf7bf038 | Revert "Dont make RasterFeature disposable" | charlenni/Mapsui,charlenni/Mapsui,pauldendulk/Mapsui | Mapsui.Core/Features/RasterFeature.cs | Mapsui.Core/Features/RasterFeature.cs |
using System;
namespace Mapsui.Layers
{
public class RasterFeature : BaseFeature, IFeature, IDisposable
{
#pragma warning disable IDISP008
public MRaster? Raster { get; }
#pragma warning restore IDISP008
public MRect? Extent => Raster;
public RasterFeature(RasterFeature rasterFeature... |
using System;
namespace Mapsui.Layers
{
public class RasterFeature : BaseFeature, IFeature
{
#pragma warning disable IDISP008
public MRaster? Raster { get; }
#pragma warning restore IDISP008
public MRect? Extent => Raster;
public RasterFeature(RasterFeature rasterFeature) : base(rast... | mit | C# |
a942f6789a973abaed71449c66ca7ddbcdc5ae9c | Reduce render blocking JavaScript | martincostello/website,martincostello/website,martincostello/website,martincostello/website | src/Website/Views/Shared/_Scripts.cshtml | src/Website/Views/Shared/_Scripts.cshtml | @model BowerVersions
<environment names="Development">
<script src="~/lib/jquery/dist/jquery.js" asp-append-version="true"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.js" asp-append-version="true"></script>
<script src="~/lib/jquery.lazyload/jquery.lazyload.min.js" asp-append-version="true"></... | @model BowerVersions
<environment names="Development">
<script src="~/lib/jquery/dist/jquery.js" asp-append-version="true"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.js" asp-append-version="true"></script>
<script src="~/lib/jquery.lazyload/jquery.lazyload.min.js" asp-append-version="true"></... | apache-2.0 | C# |
fd12cacd37d528a5d517384b435b991fd47c2864 | Remove empty line. | taskmatics/aspnet-windows-service,taskmatics/aspnet-windows-service | src/AspNetWindowsService/Program.cs | src/AspNetWindowsService/Program.cs | using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Hosting.Internal;
using Microsoft.Framework.Configuration;
using Microsoft.Framework.DependencyInjection;
using System;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
namespace MyDnxService
{
public c... | using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Hosting.Internal;
using Microsoft.Framework.Configuration;
using Microsoft.Framework.DependencyInjection;
using System;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
namespace MyDnxService
{
public c... | mit | C# |
3ddca30acd44c62fba4325c3d90910a470c39af9 | Add comments and debugger display | TattsGroup/octokit.net,brramos/octokit.net,SLdragon1989/octokit.net,fffej/octokit.net,SamTheDev/octokit.net,Sarmad93/octokit.net,khellang/octokit.net,mminns/octokit.net,shiftkey/octokit.net,ivandrofly/octokit.net,SmithAndr/octokit.net,TattsGroup/octokit.net,adamralph/octokit.net,forki/octokit.net,Sarmad93/octokit.net,s... | Octokit/Models/Response/OauthToken.cs | Octokit/Models/Response/OauthToken.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class OauthToken
{
/// <summary>
/// The type of OAuth token
/// </summary>
public string TokenType { g... | using System.Collections.Generic;
namespace Octokit
{
public class OauthToken
{
public string TokenType { get; set; }
public string AccessToken { get; set; }
public IReadOnlyCollection<string> Scope { get; set; }
}
}
| mit | C# |
564dea58b893507d222eb2815883b9f01615b180 | Add missing words | alfhenrik/octokit.net,dampir/octokit.net,octokit-net-test-org/octokit.net,gdziadkiewicz/octokit.net,devkhan/octokit.net,shiftkey-tester/octokit.net,thedillonb/octokit.net,Sarmad93/octokit.net,SmithAndr/octokit.net,SamTheDev/octokit.net,chunkychode/octokit.net,khellang/octokit.net,editor-tools/octokit.net,M-Zuber/octoki... | Octokit/Models/Response/PagesBuild.cs | Octokit/Models/Response/PagesBuild.cs | using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
/// <summary>
/// Metadata of a Github Pages build.
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class PagesBuild
{
public PagesBuild() { }
public PagesBuild(string url, ... | using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
/// <summary>
/// Metadata of a Github Pages build.
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class PagesBuild
{
public PagesBuild() { }
public PagesBuild(string url, ... | mit | C# |
1cd661f07121ed358fda429e11b9593aff01a610 | Make comparison case insensitive | episerver/AlloyDemoKit,episerver/AlloyDemoKit,episerver/AlloyDemoKit | src/AlloyDemoKit/Business/VisitorGroupUIStyling/OverrideVisitorGroupCss.cs | src/AlloyDemoKit/Business/VisitorGroupUIStyling/OverrideVisitorGroupCss.cs | using System;
using System.Web.Mvc;
namespace AlloyDemoKit.Business.VisitorGroupUIStyling
{
public class OverrideVisitorGroupCssAttribute : OutputProcessorActionFilterAttribute
{
protected override string Process(string data)
{
return data
.Replace("</head", "<link ... | using System.Web.Mvc;
namespace AlloyDemoKit.Business.VisitorGroupUIStyling
{
public class OverrideVisitorGroupCssAttribute : OutputProcessorActionFilterAttribute
{
protected override string Process(string data)
{
return data
.Replace("</head", "<link href=\"/Static... | apache-2.0 | C# |
b2c2810509cb43591af0803d7f7a8c15c374c027 | Fix tests | mavasani/roslyn,KevinRansom/roslyn,CyrusNajmabadi/roslyn,bartdesmet/roslyn,diryboy/roslyn,mavasani/roslyn,weltkante/roslyn,jasonmalinowski/roslyn,KevinRansom/roslyn,CyrusNajmabadi/roslyn,diryboy/roslyn,KevinRansom/roslyn,shyamnamboodiripad/roslyn,diryboy/roslyn,shyamnamboodiripad/roslyn,CyrusNajmabadi/roslyn,jasonmalin... | src/EditorFeatures/CSharpTest/EmbeddedLanguages/JsonStringDetectorTests.cs | src/EditorFeatures/CSharpTest/EmbeddedLanguages/JsonStringDetectorTests.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp.EmbeddedLanguages;
using Microsoft.CodeAnalysis.E... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp.EmbeddedLanguages;
using Microsoft.CodeAnalysis.E... | mit | C# |
01e72aaed4df32986262da65dd7c2d7194ca6831 | Fix data bar for min/max | igitur/ClosedXML,ClosedXML/ClosedXML,jongleur1983/ClosedXML,JavierJJJ/ClosedXML,b0bi79/ClosedXML | ClosedXML/Excel/ConditionalFormats/Save/XLCFDataBarConverter.cs | ClosedXML/Excel/ConditionalFormats/Save/XLCFDataBarConverter.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DocumentFormat.OpenXml;
using DocumentFormat.OpenXml.Spreadsheet;
namespace ClosedXML.Excel
{
internal class XLCFDataBarConverter : IXLCFConverter
{
public ConditionalFormattingRule Convert(IXLConditionalFormat ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DocumentFormat.OpenXml;
using DocumentFormat.OpenXml.Spreadsheet;
namespace ClosedXML.Excel
{
internal class XLCFDataBarConverter:IXLCFConverter
{
public ConditionalFormattingRule Convert(IXLConditionalFormat cf... | mit | C# |
789eeeaeaa97949f40d90bb68f012c518b9d5933 | Update BindableBase | Kingloo/Rdr | RdrLib/Model/BindableBase.cs | RdrLib/Model/BindableBase.cs | using System;
using System.ComponentModel;
namespace RdrLib.Model
{
public abstract class BindableBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler? PropertyChanged;
protected bool SetProperty<T>(ref T storage, T value, string propertyName)
{
if (String.IsNullOrWhiteSpace(propertyNa... | using System.ComponentModel;
namespace RdrLib.Model
{
public abstract class BindableBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler? PropertyChanged;
protected bool SetProperty<T>(ref T storage, T value, string propertyName)
{
if (Equals(storage, value))
{
return false;
}... | unlicense | C# |
6116ef35b1fd54b9a21643128f8bb8ba07f38760 | Remove redundant code. bugid: 912 | JasonBock/csla,JasonBock/csla,ronnymgm/csla-light,jonnybee/csla,rockfordlhotka/csla,BrettJaner/csla,BrettJaner/csla,JasonBock/csla,MarimerLLC/csla,MarimerLLC/csla,jonnybee/csla,rockfordlhotka/csla,ronnymgm/csla-light,ronnymgm/csla-light,BrettJaner/csla,jonnybee/csla,MarimerLLC/csla,rockfordlhotka/csla | Samples/NET/cs/ProjectTracker/Mvc3UI/Views/Project/Index.cshtml | Samples/NET/cs/ProjectTracker/Mvc3UI/Views/Project/Index.cshtml | @using Csla.Web.Mvc
@using ProjectTracker.Library
@model IEnumerable<ProjectTracker.Library.ProjectInfo>
@{
ViewBag.Title = "Project list";
}
<h2>@ViewBag.Message</h2>
<p>
@Html.HasPermission(Csla.Rules.AuthorizationActions.CreateObject, typeof(ProjectEdit), Html.ActionLink("Create New", ... | @using Csla.Web.Mvc
@using ProjectTracker.Library
@model IEnumerable<ProjectTracker.Library.ProjectInfo>
@{
ViewBag.Title = "Project list";
}
<h2>@ViewBag.Message</h2>
<p>
@Html.HasPermission(Csla.Rules.AuthorizationActions.CreateObject, typeof(ProjectEdit), Html.ActionLink("Create New", ... | mit | C# |
593327a74eb1fdf6d77f2edbecbfc6d38e85ab29 | Add [Serializable] attribute | dnm240/NSubstitute,dnm240/NSubstitute,dnm240/NSubstitute,dnm240/NSubstitute,dnm240/NSubstitute | Source/NSubstitute/Exceptions/CannotCreateEventArgsException.cs | Source/NSubstitute/Exceptions/CannotCreateEventArgsException.cs | using System;
using System.Runtime.Serialization;
namespace NSubstitute.Exceptions
{
[Serializable]
public class CannotCreateEventArgsException : SubstituteException
{
public CannotCreateEventArgsException() { }
public CannotCreateEventArgsException(string message) : base(message) { }
... | using System;
using System.Runtime.Serialization;
namespace NSubstitute.Exceptions
{
public class CannotCreateEventArgsException : SubstituteException
{
public CannotCreateEventArgsException() { }
public CannotCreateEventArgsException(string message) : base(message) { }
public CannotCre... | bsd-3-clause | C# |
e0b6fa516acb6ae1327826d3cf731667a58d7b70 | Remove unused imports. | Nezaboodka/Nevod.TextParsing,Nezaboodka/Nevod.TextParsing | WordExtraction/Demo.cs | WordExtraction/Demo.cs | using System;
namespace WordExtraction
{
class Demo
{
private const string UNICODE_DEMO = "The quick(\"brown\") fox can't jump 32.3 feet, right?";
static void Main(string[] args)
{
foreach (var word in WordExtractor.GetWords(UNICODE_DEMO))
{
Con... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WordExtraction
{
class Demo
{
private const string UNICODE_DEMO = "The quick(\"brown\") fox can't jump 32.3 feet, right?";
static void Main(string[] args)
{
... | mit | C# |
f80076e20702d4b3afbb223522b89dfef123808a | Fix for github issue #237 UWP, Desktop Back button not showing https://github.com/xamarin/Xamarin.Auth/issues/237 | xamarin/Xamarin.Auth,xamarin/Xamarin.Auth,xamarin/Xamarin.Auth | source/Xamarin.Auth.UniversalWindowsPlatform/Presenters/OAuthPlatformPresenter.UniversalWindowsPlatform.cs | source/Xamarin.Auth.UniversalWindowsPlatform/Presenters/OAuthPlatformPresenter.UniversalWindowsPlatform.cs | namespace Xamarin.Auth.Presenters.UWP
{
public class PlatformOAuthLoginPresenter
{
private readonly bool _hasHardwareButton;
private Frame _rootFrame;
private Authenticator _authenticator;
public PlatformOAuthLoginPresenter()
{
_hasHardwareButton = ApiI... | namespace Xamarin.Auth.Presenters.UWP
{
public class PlatformOAuthLoginPresenter
{
public void Login(Authenticator authenticator)
{
authenticator.Completed += AuthenticatorCompleted;
System.Type page_type = authenticator.GetUI();
Windows... | apache-2.0 | C# |
a3195d2b726ef72da2fb52f96d7ba6ae422c428b | Remove obsolete internals visible to | mrward/monodevelop-nuget-extensions,mrward/monodevelop-nuget-extensions | src/MonoDevelop.PackageManagement.Extensions/Properties/AssemblyInfo.cs | src/MonoDevelop.PackageManagement.Extensions/Properties/AssemblyInfo.cs | //
// AssemblyInfo.cs
//
// Author:
// Matt Ward <matt.ward@xamarin.com>
//
// Copyright (c) 2014 Xamarin Inc. (http://xamarin.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Softwar... | //
// AssemblyInfo.cs
//
// Author:
// Matt Ward <matt.ward@xamarin.com>
//
// Copyright (c) 2014 Xamarin Inc. (http://xamarin.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Softwar... | mit | C# |
9184ee20bd6d7a5ee5694b8a6029ad301debc80f | Remove unused code | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EmployerAccounts.Web/Controllers/CookieConsentController.cs | src/SFA.DAS.EmployerAccounts.Web/Controllers/CookieConsentController.cs | using System.Web.Mvc;
using SFA.DAS.Authentication;
using SFA.DAS.EmployerAccounts.Interfaces;
using SFA.DAS.EmployerAccounts.Web.ViewModels;
namespace SFA.DAS.EmployerAccounts.Web.Controllers
{
public class CookieConsentController : BaseController
{
public CookieConsentController(
IAuthen... | using System.Collections.Generic;
using System.Web;
using System.Web.Mvc;
using SFA.DAS.Authentication;
using SFA.DAS.EmployerAccounts.Interfaces;
using SFA.DAS.EmployerAccounts.Web.ViewModels;
namespace SFA.DAS.EmployerAccounts.Web.Controllers
{
public class CookieConsentController : BaseController
{
... | mit | C# |
08705a7250605a79fbc9a6fd1aa35df7144e2a13 | Format SerializableDictionary according to our coding style | github-for-unity/Unity,github-for-unity/Unity,github-for-unity/Unity | src/UnityExtension/Assets/Editor/GitHub.Unity/SerializableDictionary.cs | src/UnityExtension/Assets/Editor/GitHub.Unity/SerializableDictionary.cs | using System;
using System.Collections.Generic;
using UnityEngine;
namespace GitHub.Unity
{
//http://answers.unity3d.com/answers/809221/view.html
[Serializable]
public class SerializableDictionary<TKey, TValue> : Dictionary<TKey, TValue>, ISerializationCallbackReceiver
{
[SerializeField] priva... | using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace GitHub.Unity
{
//http://answers.unity3d.com/answers/809221/view.html
[Serializable]
public class SerializableDictionary<TKey, TValue> : Dictionary<TKey, TValue>, ISerializationCallbackReceiver
{
[S... | mit | C# |
572d250eb15d4e6ff47b8fb50a4495fddbcc3dea | add missing serializable attrib to test exception | ajayanandgit/common-logging,net-commons/common-logging,Moily/common-logging,meixger/common-logging,net-commons/common-logging,xlgwr/common-logging,tablesmit/common-logging | test/Common.Logging.Tests/Logging/LoggingExceptionWithIndexerBugTest.cs | test/Common.Logging.Tests/Logging/LoggingExceptionWithIndexerBugTest.cs | #region License
/*
* Copyright © 2002-2007 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | #region License
/*
* Copyright © 2002-2007 the original author or authors.
*
* 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
*
... | apache-2.0 | C# |
af0fc4853034b3d6fcdd9d02b99bff68f2f7f00e | update SP | TonyNug/CGPSI,TonyNug/CGPSI,TonyNug/CGPSI | CGPSI/CGPSI.AbsenceManagement/CGPSI.AbsenceManagement/Controllers/AbsenceManagement/AbsenceDataController.cs | CGPSI/CGPSI.AbsenceManagement/CGPSI.AbsenceManagement/Controllers/AbsenceManagement/AbsenceDataController.cs | using CGPSI.AbsenceManagement.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace CGPSI.AbsenceManagement.Controllers.AbsenceManagement
{
public class AbsenceDataController : Controller
{
// GET: AbsenceData
p... | using CGPSI.AbsenceManagement.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace CGPSI.AbsenceManagement.Controllers.AbsenceManagement
{
public class AbsenceDataController : Controller
{
// GET: AbsenceData
p... | mit | C# |
1f11609e9fd14194b3a24be0245dceac3284b6da | Edit comments | andypaul/monotouch-samples,a9upam/monotouch-samples,nervevau2/monotouch-samples,nelzomal/monotouch-samples,robinlaide/monotouch-samples,albertoms/monotouch-samples,nervevau2/monotouch-samples,sakthivelnagarajan/monotouch-samples,YOTOV-LIMITED/monotouch-samples,labdogg1003/monotouch-samples,W3SS/monotouch-samples,hongng... | CoreAnimation/Screens/iPad/LayerAnimation/ImplicitAnimationScreen.xib.cs | CoreAnimation/Screens/iPad/LayerAnimation/ImplicitAnimationScreen.xib.cs | using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using MonoTouch.CoreAnimation;
using System.Drawing;
namespace Example_CoreAnimation.Screens.iPad.LayerAnimation
{
public partial class ImplicitAnimationScreen : UIViewController, IDetailView
{
pub... | using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using MonoTouch.CoreAnimation;
using System.Drawing;
namespace Example_CoreAnimation.Screens.iPad.LayerAnimation
{
public partial class ImplicitAnimationScreen : UIViewController, IDetailView
{
pub... | mit | C# |
1719602113a06202f8978dd7baf757d8f9604c1b | make test runtime independant | gluck/cecil,jbevain/cecil,xen2/cecil,fnajera-rac-de/cecil,mono/cecil,furesoft/cecil,joj/cecil,sailro/cecil,ttRevan/cecil,kzu/cecil,SiliconStudio/Mono.Cecil,cgourlay/cecil,saynomoo/cecil | rocks/Test/Mono.Cecil.Tests/SecurityDeclarationRocksTests.cs | rocks/Test/Mono.Cecil.Tests/SecurityDeclarationRocksTests.cs | using System.Security.Permissions;
using NUnit.Framework;
using Mono.Cecil.Rocks;
namespace Mono.Cecil.Tests {
[TestFixture]
public class SecurityDeclarationRocksTests : BaseTestFixture {
[TestModule ("decsec-xml.dll")]
public void ToPermissionSetFromPermissionSetAttribute (ModuleDefinition module)
{
va... | using NUnit.Framework;
using Mono.Cecil.Rocks;
namespace Mono.Cecil.Tests {
[TestFixture]
public class SecurityDeclarationRocksTests : BaseTestFixture {
[TestModule ("decsec-xml.dll")]
public void ToPermissionSetFromPermissionSetAttribute (ModuleDefinition module)
{
var type = module.GetType ("SubLibrary... | mit | C# |
effe33d4a73620d5347cbaf91d3db668395eed18 | Fix newConnection window is sometimes not displayed | Yonom/CupCake | CupCake.Client/Dispatch.cs | CupCake.Client/Dispatch.cs | using System;
using System.Windows;
namespace CupCake.Client
{
public static class Dispatch
{
public static void Invoke(Action callback)
{
Application.Current.Dispatcher.Invoke(callback);
}
}
} | using System;
using System.Windows;
namespace CupCake.Client
{
public static class Dispatch
{
public static void Invoke(Action callback)
{
Application.Current.Dispatcher.BeginInvoke(callback);
}
}
} | mit | C# |
8aebfe4cd1a3767cde99bac93a7f3355216a7c07 | add comment | dotnet/roslyn,bartdesmet/roslyn,CyrusNajmabadi/roslyn,sharwell/roslyn,eriawan/roslyn,CyrusNajmabadi/roslyn,jasonmalinowski/roslyn,sharwell/roslyn,eriawan/roslyn,jasonmalinowski/roslyn,wvdd007/roslyn,mavasani/roslyn,bartdesmet/roslyn,shyamnamboodiripad/roslyn,dotnet/roslyn,KevinRansom/roslyn,diryboy/roslyn,mavasani/rosl... | src/Workspaces/Core/Portable/FindSymbols/FindReferences/FindReferencesSearchEngine.BidirectionalSymbolSet.cs | src/Workspaces/Core/Portable/FindSymbols/FindReferences/FindReferencesSearchEngine.BidirectionalSymbolSet.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading;
using System.Threadin... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading;
using System.Threadin... | mit | C# |
65c9827d9c6f4760259ff15e77eb4e454629c9f1 | Fix broken build | StephenMcConnel/BloomDesktop,StephenMcConnel/BloomDesktop,BloomBooks/BloomDesktop,gmartin7/myBloomFork,BloomBooks/BloomDesktop,gmartin7/myBloomFork,BloomBooks/BloomDesktop,StephenMcConnel/BloomDesktop,gmartin7/myBloomFork,StephenMcConnel/BloomDesktop,BloomBooks/BloomDesktop,gmartin7/myBloomFork,BloomBooks/BloomDesktop,... | src/BloomTests/TestDoubles/CollectionTab/FakeLibraryModel.cs | src/BloomTests/TestDoubles/CollectionTab/FakeLibraryModel.cs | using Bloom;
using Bloom.Book;
using Bloom.Collection;
using Bloom.CollectionTab;
using Bloom.TeamCollection;
using SIL.TestUtilities;
using BloomTests.TestDoubles.Book;
namespace BloomTests.TestDoubles.CollectionTab
{
// A simplified implementation of LibraryModel that cuts some corners in order to ease setup.
//... | using Bloom;
using Bloom.Book;
using Bloom.Collection;
using Bloom.CollectionTab;
using SIL.TestUtilities;
using BloomTests.TestDoubles.Book;
namespace BloomTests.TestDoubles.CollectionTab
{
// A simplified implementation of LibraryModel that cuts some corners in order to ease setup.
// Tries to provide enough fun... | mit | C# |
8a23e40466f6844ee6ffa2b3c443f889e90d68fc | Refactor DotNetToTypeScriptType::Mapping | another-guy/CSharpToTypeScript,another-guy/CSharpToTypeScript | Core/DotNetToTypeScriptType.cs | Core/DotNetToTypeScriptType.cs | using System;
using System.Collections.Generic;
namespace TsModelGen.Core
{
public static class DotNetToTypeScriptType
{
public static Dictionary<string, string> Mapping => MappingLazy.Value;
private static readonly Lazy<Dictionary<string, string>> MappingLazy =
new Lazy<Dictionar... | using System;
using System.Collections.Generic;
namespace TsModelGen.Core
{
public static class DotNetToTypeScriptType
{
public static Dictionary<string, string> Mapping => MappingLazy.Value;
private static readonly Lazy<Dictionary<string, string>> MappingLazy =
new Lazy<Dictionar... | mit | C# |
651cf1595248f5e66005bb515053734f961f65be | Make constructor of abstract class protected | picklesdoc/pickles,magicmonty/pickles,ludwigjossieaux/pickles,ludwigjossieaux/pickles,dirkrombauts/pickles,magicmonty/pickles,ludwigjossieaux/pickles,magicmonty/pickles,magicmonty/pickles,dirkrombauts/pickles,picklesdoc/pickles,dirkrombauts/pickles,picklesdoc/pickles,picklesdoc/pickles,dirkrombauts/pickles | src/Pickles/Pickles.TestFrameworks/XUnit/XUnitResultsBase.cs | src/Pickles/Pickles.TestFrameworks/XUnit/XUnitResultsBase.cs | using System.Linq;
using PicklesDoc.Pickles.ObjectModel;
namespace PicklesDoc.Pickles.TestFrameworks.XUnit
{
public abstract class XUnitResultsBase<TSingleResult> : MultipleTestResults
where TSingleResult : XUnitSingleResultsBase
{
protected XUnitResultsBase(IConfiguration configuration, ISing... | using System.Linq;
using PicklesDoc.Pickles.ObjectModel;
namespace PicklesDoc.Pickles.TestFrameworks.XUnit
{
public abstract class XUnitResultsBase<TSingleResult> : MultipleTestResults
where TSingleResult : XUnitSingleResultsBase
{
public XUnitResultsBase(IConfiguration configuration, ISingleR... | apache-2.0 | C# |
53b681aa2b63be4d89c731f6cd7af6f14e47b3ca | Revert "pad check" | serilog/serilog-sinks-console,serilog/serilog-sinks-console | src/Serilog.Sinks.Console/Sinks/SystemConsole/Rendering/Padding.cs | src/Serilog.Sinks.Console/Sinks/SystemConsole/Rendering/Padding.cs | // Copyright 2013-2017 Serilog Contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... | // Copyright 2013-2017 Serilog Contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... | apache-2.0 | C# |
f7604ddc70664a3984172c04fff07e97ca3d6ec7 | Use unchecked math. | bartdesmet/roslyn,weltkante/roslyn,jamesqo/roslyn,wvdd007/roslyn,AmadeusW/roslyn,heejaechang/roslyn,swaroop-sridhar/roslyn,bkoelman/roslyn,davkean/roslyn,ErikSchierboom/roslyn,DustinCampbell/roslyn,mgoertz-msft/roslyn,reaction1989/roslyn,VSadov/roslyn,heejaechang/roslyn,jmarolf/roslyn,KevinRansom/roslyn,ErikSchierboom/... | src/Workspaces/Core/Portable/RegularExpressions/RegexDiagnostic.cs | src/Workspaces/Core/Portable/RegularExpressions/RegexDiagnostic.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Microsoft.CodeAnalysis.Text;
namespace Microsoft.CodeAnalysis.RegularExpress... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Microsoft.CodeAnalysis.Text;
namespace Microsoft.CodeAnalysis.RegularExpress... | mit | C# |
989d4d9b098c8730f90871ffa073e757b14f8ffe | remove redundant configuration | aspnetboilerplate/aspnetboilerplate-samples,aspnetboilerplate/aspnetboilerplate-samples,aspnetboilerplate/aspnetboilerplate-samples,aspnetboilerplate/aspnetboilerplate-samples,aspnetboilerplate/aspnetboilerplate-samples,aspnetboilerplate/aspnetboilerplate-samples | MySqlDemo/aspnet-core/src/Acme.MySqlDemo.EntityFrameworkCore/EntityFrameworkCore/MySqlDemoDbContextConfigurer.cs | MySqlDemo/aspnet-core/src/Acme.MySqlDemo.EntityFrameworkCore/EntityFrameworkCore/MySqlDemoDbContextConfigurer.cs | using System.Data.Common;
using Microsoft.EntityFrameworkCore;
namespace Acme.MySqlDemo.EntityFrameworkCore
{
public static class MySqlDemoDbContextConfigurer
{
public static void Configure(DbContextOptionsBuilder<MySqlDemoDbContext> builder, string connectionString)
{
builder.UseMy... | using System.Data.Common;
using Microsoft.EntityFrameworkCore;
namespace Acme.MySqlDemo.EntityFrameworkCore
{
public static class MySqlDemoDbContextConfigurer
{
public static void Configure(DbContextOptionsBuilder<MySqlDemoDbContext> builder, string connectionString)
{
builder.UseMy... | mit | C# |
ae03ef07875752960de705094946409e0b9cf655 | Allow audio device selection in settings | osu-RP/osu-RP,peppy/osu,ZLima12/osu,smoogipoo/osu,Drezi126/osu,default0/osu,naoey/osu,ppy/osu,Nabile-Rahmani/osu,NotKyon/lolisu,NeoAdonis/osu,EVAST9919/osu,naoey/osu,nyaamara/osu,ZLima12/osu,UselessToucan/osu,UselessToucan/osu,RedNesto/osu,smoogipoo/osu,johnneijzen/osu,DrabWeb/osu,tacchinotacchi/osu,2yangk23/osu,peppy/... | osu.Game/Overlays/Options/Sections/Audio/AudioDevicesOptions.cs | osu.Game/Overlays/Options/Sections/Audio/AudioDevicesOptions.cs | //Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Graphics;
using System.Collections.Generic;
using System.Linq;
namespace osu.Game.Ov... | //Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
namespace osu.Game.Overlays.Options.Sections.Audio
{
public class AudioDevicesOptions : OptionsSubsection
{
protected override string Header => "Devices";... | mit | C# |
fd28b58b12e580c3509c3e8ccb26a82205f99b54 | Fix linking of follow camera to hero | puzzud/Flipper | Assets/Scripts/FollowCamera.cs | Assets/Scripts/FollowCamera.cs | using UnityEngine;
using System.Collections;
public class FollowCamera : MonoBehaviour {
public GameObject global;
public GameObject objectToFollow;
// Use this for initialization
void Start () {
if (global == null)
{
return;
}
Global g = global.GetComponent<Global>();
if ... | using UnityEngine;
using System.Collections;
public class FollowCamera : MonoBehaviour {
public GameObject global;
public GameObject objectToFollow;
// Use this for initialization
void Start () {
if (global == null)
{
return;
}
Global g = global.GetComponent<Global>();
if ... | mit | C# |
39aac9b761b42618a6dd7babf9b83cc3a530ead7 | Update Tests.cs | ic16b055/oom | tasks/Task3/Task3/Tests.cs | tasks/Task3/Task3/Tests.cs | using System;
using Task3;
namespace Tests
{
[TestFixture]
public class ComputerTests
{
[Test]
public void CanCreatComputer()
{
var x = new Computer("Asus", "Zenbook UX330UA", 7, 1200);
Assert.IsTrue(x.Company == "Asus");
Assert.IsTrue(x.Model ==... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using Task3;
namespace Tests
{
[TestFixture]
public class ComputerTests
{
[Test]
public void CanCreatComputer()
{
var x = new Comput... | mit | C# |
c18538d38247032109d6fa74d8803efa8cf759ad | Optimise Eager ORM implementation | hgcummings/DataAccessExamples,hgcummings/DataAccessExamples | DataAccessExamples.Core/Services/EagerOrmDepartmentService.cs | DataAccessExamples.Core/Services/EagerOrmDepartmentService.cs | using System;
using System.Data.Entity;
using System.Linq;
using DataAccessExamples.Core.Data;
using DataAccessExamples.Core.ViewModels;
namespace DataAccessExamples.Core.Services
{
public class EagerOrmDepartmentService : IDepartmentService
{
private readonly EmployeesContext context;
... | using System;
using System.Data.Entity;
using System.Linq;
using DataAccessExamples.Core.Data;
using DataAccessExamples.Core.ViewModels;
namespace DataAccessExamples.Core.Services
{
public class EagerOrmDepartmentService : IDepartmentService
{
private readonly EmployeesContext context;
... | cc0-1.0 | C# |
1093cf6410bfbb3516c9ff9d0c1c0cbb355875a6 | Simplify code. | cston/roslyn,jmarolf/roslyn,lorcanmooney/roslyn,agocke/roslyn,pdelvo/roslyn,jcouv/roslyn,sharwell/roslyn,abock/roslyn,bartdesmet/roslyn,pdelvo/roslyn,panopticoncentral/roslyn,bkoelman/roslyn,khyperia/roslyn,kelltrick/roslyn,jamesqo/roslyn,wvdd007/roslyn,reaction1989/roslyn,pdelvo/roslyn,physhi/roslyn,aelij/roslyn,mavas... | src/Features/Core/Portable/Diagnostics/Analyzers/NamingStyles/NamingStylePreferencesInfo.cs | src/Features/Core/Portable/Diagnostics/Analyzers/NamingStyles/NamingStylePreferencesInfo.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Immutable;
using System.Linq;
namespace Microsoft.CodeAnalysis.Diagnostics.Analyzers.NamingStyles
{
internal class NamingStyleP... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Immutable;
using System.Linq;
namespace Microsoft.CodeAnalysis.Diagnostics.Analyzers.NamingStyles
{
internal class NamingStyleP... | mit | C# |
2c1231a1d54b36b4e928f1d1543a01a0a6476e77 | Add OptimizationCount to UserData. | nfleet/.net-sdk | NFleetSDK/Data/UserData.cs | NFleetSDK/Data/UserData.cs | using System.Collections.Generic;
using System.Runtime.Serialization;
namespace NFleet.Data
{
[DataContract]
public class UserData : IResponseData
{
[IgnoreDataMember]
public int VersionNumber { get; set; }
[DataMember]
public int Id { get; set; }
[DataMember]
... | using System.Collections.Generic;
using System.Runtime.Serialization;
namespace NFleet.Data
{
[DataContract]
public class UserData : IResponseData
{
[IgnoreDataMember]
public int VersionNumber { get; set; }
[DataMember]
public int Id { get; set; }
[DataMember]
... | mit | C# |
a2fff765f42127b1bbc7a2b853da5c516f127687 | Fix missing quote | peterblazejewicz/aspnet-5-bootstrap-4,peterblazejewicz/aspnet-5-bootstrap-4 | WebApplication/Views/Account/ExternalLoginConfirmation.cshtml | WebApplication/Views/Account/ExternalLoginConfirmation.cshtml | @model ExternalLoginConfirmationViewModel
@{
ViewData["Title"] = "Register";
}
<h2>@ViewData["Title"].</h2>
<h3>Associate your @ViewData["LoginProvider"] account.</h3>
<form asp-controller="Account" asp-action="ExternalLoginConfirmation" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="fo... | @model ExternalLoginConfirmationViewModel
@{
ViewData["Title"] = "Register";
}
<h2>@ViewData["Title"].</h2>
<h3>Associate your @ViewData["LoginProvider"] account.</h3>
<form asp-controller="Account" asp-action="ExternalLoginConfirmation" asp-route-returnurl="@ViewData["ReturnUrl"] method="post" class="for... | mit | C# |
c65dd781d622cc3e719ea6bf44ea5d38fb173e8b | Add shortcut for SortedList to not require explicitly creating a comparer class. | DrabWeb/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,naoey/osu-framework,smoogipooo/osu-framework,default0/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,RedNesto/osu-framework,ZLima12/osu-framework,Nabile-Rahmani/osu-framework,E... | osu.Framework/Lists/SortedList.cs | osu.Framework/Lists/SortedList.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Collections.Generic;
namespace osu.Framework.Lists
{
public class SortedList<T> : List<T>
{
public IComp... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Collections.Generic;
namespace osu.Framework.Lists
{
public class SortedList<T> : List<T>
{
public IComp... | mit | C# |
7459b8938e79937db59667be265c41b7f159da3e | Make LocalisableString a struct | peppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ZLima12/osu-framework,DrabWeb/osu-framework,DrabWeb/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,Tom94/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,ZLima12/osu-... | osu.Framework/Localisation/LocalisableString.cs | osu.Framework/Localisation/LocalisableString.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 JetBrains.Annotations;
using osu.Framework.Configuration;
namespace osu.Framework.Localisation
{
/// <summary>
/// A class representing text th... | // 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 JetBrains.Annotations;
using osu.Framework.Configuration;
namespace osu.Framework.Localisation
{
/// <summary>
/// A class representing text th... | mit | C# |
f9c369b23cff9b0bdc1b8b7907ed74d8919bf123 | Fix toolbar music button tooltip overflowing off-screen | ppy/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu-new,smoogipoo/osu,peppy/osu,peppy/osu,ppy/osu,UselessToucan/osu,smoogipooo/osu | osu.Game/Overlays/Toolbar/ToolbarMusicButton.cs | osu.Game/Overlays/Toolbar/ToolbarMusicButton.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Game.Input.Bindings;
namespace osu.Game.Overlays.Toolbar
{... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics.Sprites;
using osu.Game.Input.Bindings;
namespace osu.Game.Overlays.Toolbar
{
public class ToolbarMusic... | mit | C# |
cb2e7cd7a7b727ea06335de655004b9ea4c74688 | Handle callback directly if resolve bundle is empty | Miruken-DotNet/Miruken | Source/Miruken/Callback/Resolving.cs | Source/Miruken/Callback/Resolving.cs | namespace Miruken.Callback
{
using System;
public class Resolving : Inquiry, IResolveCallback
{
private bool _handled;
public Resolving(object key, object callback)
: base(key, true)
{
if (callback == null)
throw new ArgumentNullException(na... | namespace Miruken.Callback
{
using System;
public class Resolving : Inquiry, IResolveCallback
{
private bool _handled;
public Resolving(object key, object callback)
: base(key, true)
{
if (callback == null)
throw new ArgumentNullException(na... | mit | C# |
60a38436c14938abd39b4b00e790f3b2f1ae7b6c | Disable lifetime validation on JWTs. | PietroProperties/holms.platformclient.net | csharp/HOLMS.Platform/HOLMS.Platform/Support/Security/ValidatedJWToken.cs | csharp/HOLMS.Platform/HOLMS.Platform/Support/Security/ValidatedJWToken.cs | using System;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
using System.Security;
using HOLMS.Types.IAM;
using Microsoft.IdentityModel.Tokens;
namespace HOLMS.Support.Security {
public class ValidatedJWToken {
public string RawTokenData { get; protected set; }
public AuthenticatedClie... | using System;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
using System.Security;
using HOLMS.Types.IAM;
using Microsoft.IdentityModel.Tokens;
namespace HOLMS.Support.Security {
public class ValidatedJWToken {
public string RawTokenData { get; protected set; }
public AuthenticatedClie... | mit | C# |
66d40e9aa0f438eab531a8542a7efed3a759f5a8 | remove using UnityEditor | mattak/Unidux | Assets/Unidux/UniduxSubscribeComponent.cs | Assets/Unidux/UniduxSubscribeComponent.cs | using UnityEngine;
namespace Unidux
{
public static class MonoBehaviourExt
{
public static void AddTo<T>(
this GameObject gameObject,
Store<T> store,
Render<T> render)
where T : StateBase, new()
{
GetOrAddUniduxSubscriber<UniduxSubscri... | using UnityEditor;
using UnityEngine;
namespace Unidux
{
public static class MonoBehaviourExt
{
public static void AddTo<T>(
this GameObject gameObject,
Store<T> store,
Render<T> render)
where T : StateBase, new()
{
GetOrAddUniduxSubs... | mit | C# |
8cd22c83fe72545dbca476e2d6d127ff445bb14b | Improve dictionary merge | vbliznikov/colabedit,vbliznikov/colabedit,vbliznikov/colabedit,vbliznikov/colabedit | src/vcs-lib/VersionControl/Operations/DictionaryMergeHandler.cs | src/vcs-lib/VersionControl/Operations/DictionaryMergeHandler.cs | using System;
using System.Linq;
using System.Collections.Generic;
namespace CollabEdit.VersionControl.Operations
{
public class DictionaryMergeHandler<TKey, TValue> : IMergeHandler<IDictionary<TKey, TValue>>
{
public IDictionary<TKey, TValue> Merge(IDictionary<TKey, TValue> origin, IDictionary<TKey, T... | using System;
using System.Linq;
using System.Collections.Generic;
namespace CollabEdit.VersionControl.Operations
{
public class DictionaryMergeHandler<TKey, TValue> : IMergeHandler<IDictionary<TKey, TValue>>
{
public IDictionary<TKey, TValue> Merge(IDictionary<TKey, TValue> origin, IDictionary<TKey, T... | mit | C# |
656374914bf23d61b78aa6d62c26ca98bc42a37c | Fix try one | MrLeebo/unitystation,Necromunger/unitystation,fomalsd/unitystation,MrLeebo/unitystation,MrLeebo/unitystation,fomalsd/unitystation,Lancemaker/unitystation,Necromunger/unitystation,fomalsd/unitystation,Necromunger/unitystation,fomalsd/unitystation,MrLeebo/unitystation,Lancemaker/unitystation,MrLeebo/unitystation,fomalsd/... | UnityProject/Assets/Scripts/Editor/Objects/ObjectBehaviourEditor.cs | UnityProject/Assets/Scripts/Editor/Objects/ObjectBehaviourEditor.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
[CustomEditor(typeof(ObjectBehaviour))]
public class ObjectBehaviourEditor : Editor
{
public override void OnInspectorGUI()
{
ObjectBehaviour oTarget = (ObjectBehaviour)target;
serializedObject.U... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
[CustomEditor(typeof(ObjectBehaviour))]
public class ObjectBehaviourEditor : Editor
{
public override void OnInspectorGUI()
{
ObjectBehaviour oTarget = (ObjectBehaviour)target;
serializedOb... | agpl-3.0 | C# |
c3cb7083b92dde7c63427dc9f71b53dd0e7c2a80 | implement 10 object search clicked just in case | GROWrepo/Santa_Inc | Assets/script/monoBehavior/GameManager.cs | Assets/script/monoBehavior/GameManager.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour {
STATUS_GAME SG;
public GameObject selectedObject;
dialog current;
Ray2D clickRay;
//RaycastHit2D hit;
RaycastHit2D[] hits;
public ContactFilter2D filter;
... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour {
STATUS_GAME SG;
public GameObject selectedObject;
dialog current;
Ray2D clickRay;
RaycastHit2D hit;
// Use this for initialization
void Start () {
... | mit | C# |
3a4f77af5952a4a47b422ba6705662dc0b2ebaa1 | Add the news letter subscription webhook filters | SevenSpikes/api-plugin-for-nopcommerce,SevenSpikes/api-plugin-for-nopcommerce | Nop.Plugin.Api/WebHooks/FilterProvider.cs | Nop.Plugin.Api/WebHooks/FilterProvider.cs | using System.Collections.ObjectModel;
using System.Threading.Tasks;
using Nop.Plugin.Api.Constants;
namespace Nop.Plugin.Api.WebHooks
{
using Microsoft.AspNet.WebHooks;
public class FilterProvider : IWebHookFilterProvider
{
private readonly Collection<WebHookFilter> filters = new Collection<WebHo... | using System.Collections.ObjectModel;
using System.Threading.Tasks;
using Nop.Plugin.Api.Constants;
namespace Nop.Plugin.Api.WebHooks
{
using Microsoft.AspNet.WebHooks;
public class FilterProvider : IWebHookFilterProvider
{
private readonly Collection<WebHookFilter> filters = new Collection<WebHo... | mit | C# |
278fc6f51918c222ea2380ef0e2dde2d434c4fd7 | Remove enum underlying type declaration | mstrother/BmpListener | BmpListener/Bmp/Bmp.cs | BmpListener/Bmp/Bmp.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BmpListener.Bmp
{
public enum MessageType
{
RouteMonitoring,
StatisticsReport,
PeerDown,
PeerUp,
Initiation,
Termination,
RouteM... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BmpListener.Bmp
{
public enum MessageType : byte
{
RouteMonitoring,
StatisticsReport,
PeerDown,
PeerUp,
Initiation,
Termination,
... | mit | C# |
c8471cc619dff42ac28329719861e78b16151c75 | set no wrap for ExpressEntry date | annaked/ExpressEntryCalculator,annaked/ExpressEntryCalculator,annaked/ExpressEntryCalculator | ExpressEntryCalculator.Web/Views/Shared/ExpressEntryStats.cshtml | ExpressEntryCalculator.Web/Views/Shared/ExpressEntryStats.cshtml | @using Microsoft.Extensions.Options
@inject IOptions<ExpressEntryStats> expressEntryStatsAccessor
@{
var expressEntryStats = expressEntryStatsAccessor.Value;
}
<div class="alert alert-info" role="alert">
Last round of invitations to apply for permanent residence under the Express Entry was on <strong style="... | @using Microsoft.Extensions.Options
@inject IOptions<ExpressEntryStats> expressEntryStatsAccessor
@{
var expressEntryStats = expressEntryStatsAccessor.Value;
}
<div class="alert alert-info" role="alert">
Last round of invitations to apply for permanent residence under the Express Entry was on <strong>@expres... | mit | C# |
4f76b870e2bac88560159511c8b1335e9c774d70 | Use readonly on fields that should not be modified | VirusFree/SharpDX,manu-silicon/SharpDX,VirusFree/SharpDX,andrewst/SharpDX,sharpdx/SharpDX,shoelzer/SharpDX,fmarrabal/SharpDX,andrewst/SharpDX,PavelBrokhman/SharpDX,wyrover/SharpDX,mrvux/SharpDX,RobyDX/SharpDX,shoelzer/SharpDX,davidlee80/SharpDX-1,Ixonos-USA/SharpDX,shoelzer/SharpDX,Ixonos-USA/SharpDX,fmarrabal/SharpDX,... | Source/Toolkit/SharpDX.Toolkit.Graphics/InputSignatureManager.cs | Source/Toolkit/SharpDX.Toolkit.Graphics/InputSignatureManager.cs | // Copyright (c) 2010-2013 SharpDX - Alexandre Mutel
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modif... | // Copyright (c) 2010-2013 SharpDX - Alexandre Mutel
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modif... | mit | C# |
3dc18852edc8030090dd6eac1734a6fe3e02077c | hide object members on resetable metrics | huoxudong125/Metrics.NET,Liwoj/Metrics.NET,MetaG8/Metrics.NET,MetaG8/Metrics.NET,etishor/Metrics.NET,mnadel/Metrics.NET,Recognos/Metrics.NET,cvent/Metrics.NET,MetaG8/Metrics.NET,Recognos/Metrics.NET,ntent-ad/Metrics.NET,etishor/Metrics.NET,mnadel/Metrics.NET,huoxudong125/Metrics.NET,DeonHeyns/Metrics.NET,DeonHeyns/Metr... | Src/Metrics/ResetableMetric.cs | Src/Metrics/ResetableMetric.cs |
namespace Metrics
{
/// <summary>
/// Indicates a metric's ability to be reset. Reseting a metric clear all currently collected data.
/// </summary>
public interface ResetableMetric : Utils.IHideObjectMembers
{
/// <summary>
/// Clear all currently collected data for this metric.
... |
namespace Metrics
{
/// <summary>
/// Indicates a metric's ability to be reset. Reseting a metric clear all currently collected data.
/// </summary>
public interface ResetableMetric
{
/// <summary>
/// Clear all currently collected data for this metric.
/// </summary>
... | apache-2.0 | C# |
eed6684cccf058becf49e0eca53fa31b99d074a5 | bump to 1.5 | greggman/DeJson.NET | DeJson/AssemblyInfo.cs | DeJson/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("DeJson")]
[assembly: AssemblyDescription("JSON serializer/deserializer")]
[assembly: AssemblyConf... | 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("DeJson")]
[assembly: AssemblyDescription("JSON serializer/deserializer")]
[assembly: AssemblyConf... | bsd-3-clause | C# |
81b230320aab229039ac8a112a65f3096e03dfc5 | Improve warnings | Vanaheimr/Styx | Styx/Illias/Logging/Warning.cs | Styx/Illias/Logging/Warning.cs | /*
* Copyright (c) 2014 Achim Friedland <achim.friedland@graphdefined.com>
* This file is part of eMI3 WWCP <http://www.github.com/eMI3/WWCP-Bindings>
*
* Licensed under the Affero GPL license, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy... | /*
* Copyright (c) 2014 Achim Friedland <achim.friedland@graphdefined.com>
* This file is part of eMI3 WWCP <http://www.github.com/eMI3/WWCP-Bindings>
*
* Licensed under the Affero GPL license, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy... | apache-2.0 | C# |
a3ff75f8e145092c08282a5c283368d55eac30b5 | Update XMLAsset.cs | Cryru/SoulEngine | Emotion/IO/XMLAsset.cs | Emotion/IO/XMLAsset.cs | #region Using
using System;
using System.IO;
using System.Xml.Serialization;
using Emotion.Common;
using Emotion.Common.Threading;
using Emotion.Game.Animation;
using Emotion.Graphics.Shading;
using Emotion.Standard.Logging;
#endregion
namespace Emotion.IO
{
/// <summary>
/// A file in XML structure.
//... | #region Using
using System;
using System.IO;
using System.Xml.Serialization;
using Emotion.Common;
using Emotion.Common.Threading;
using Emotion.Game.Animation;
using Emotion.Graphics.Shading;
using Emotion.Standard.Logging;
#endregion
namespace Emotion.IO
{
/// <summary>
/// A file in XML structure.
//... | mit | C# |
e21deda407e80e76e1c93c874e0177908a786490 | Refactor ValueClearBehaviorAttributeTests | atata-framework/atata,YevgeniyShunevych/Atata,atata-framework/atata,YevgeniyShunevych/Atata | test/Atata.Tests/Bahaviors/ValueClear/ValueClearBehaviorAttributeTests.cs | test/Atata.Tests/Bahaviors/ValueClear/ValueClearBehaviorAttributeTests.cs | using System.Collections.Generic;
using NUnit.Framework;
namespace Atata.Tests.Bahaviors
{
public class ValueClearBehaviorAttributeTests : UITestFixture
{
private static IEnumerable<TestCaseData> Source =>
new[]
{
new TestCaseData(new ClearsValueUsingClearMethod... | using NUnit.Framework;
using NUnit.Framework.Internal;
namespace Atata.Tests.Bahaviors
{
[TestFixture(typeof(ClearsValueUsingClearMethodAttribute))]
[TestFixture(typeof(ClearsValueUsingCtrlADeleteKeysAttribute))]
[TestFixture(typeof(ClearsValueUsingHomeShiftEndDeleteKeysAttribute))]
[TestFixture(typeo... | apache-2.0 | C# |
31d5fe7680ccd4bf2f06631360256716037735c4 | Optimize field names | SICU-Stress-Measurement-System/frontend-cs | StressMeasurementSystem/Models/Patient.cs | StressMeasurementSystem/Models/Patient.cs | namespace StressMeasurementSystem.Models
{
public class Patient
{
#region Structs
struct Name
{
public string Prefix { get; set; }
public string First { get; set; }
public string Middle { get; set; }
public string Last { get; set; }
... | namespace StressMeasurementSystem.Models
{
public class Patient
{
#region Structs
struct Name
{
public string Prefix { get; set; }
public string First { get; set; }
public string Middle { get; set; }
public string Last { get; set; }
... | apache-2.0 | C# |
0bdd63927f662bfd061bf52b2860393d9996d3ea | fix line endings | residuum/xwt,mminns/xwt,mminns/xwt,lytico/xwt,antmicro/xwt,akrisiun/xwt,iainx/xwt,hamekoz/xwt,steffenWi/xwt,sevoku/xwt,directhex/xwt,hwthomas/xwt,mono/xwt,TheBrainTech/xwt,cra0zy/xwt | Xwt.WPF/Xwt.WPFBackend/Util.cs | Xwt.WPF/Xwt.WPFBackend/Util.cs | // Util.cs
//
// Author:
// Eric Maupin <ermau@xamarin.com>
//
// Copyright (c) 2012 Xamarin, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, ... | // Util.cs
//
// Author:
// Eric Maupin <ermau@xamarin.com>
//
// Copyright (c) 2012 Xamarin, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including... | mit | C# |
a16848393fe9ed31935714bc4db9dea90ff3ba20 | fix codefactor | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/ViewModels/Dialogs/EnterPasswordViewModel.cs | WalletWasabi.Fluent/ViewModels/Dialogs/EnterPasswordViewModel.cs | using ReactiveUI;
using System.Reactive.Linq;
using System.Windows.Input;
using WalletWasabi.Gui.Validation;
using WalletWasabi.Models;
using WalletWasabi.Userfacing;
namespace WalletWasabi.Fluent.ViewModels.Dialogs
{
public class EnterPasswordViewModel : DialogViewModelBase<string?>
{
private string? _password;
... | using ReactiveUI;
using System.Reactive.Linq;
using System.Windows.Input;
using WalletWasabi.Gui.Validation;
using WalletWasabi.Models;
using WalletWasabi.Userfacing;
namespace WalletWasabi.Fluent.ViewModels.Dialogs
{
public class EnterPasswordViewModel : DialogViewModelBase<string?>
{
private string? _password;
... | mit | C# |
8d66f3508809fd26160b3c6b249a32a18fea8f4d | Disable console modification | DeathCradle/Open-Terraria-API,DeathCradle/Open-Terraria-API | OTAPI.Modifications/OTAPI.Modifications.Console/Modifications/WriteLine.cs | OTAPI.Modifications/OTAPI.Modifications.Console/Modifications/WriteLine.cs | using Mono.Cecil;
using OTAPI.Patcher.Engine.Extensions;
using OTAPI.Patcher.Engine.Modification;
using System;
using System.Linq;
namespace OTAPI.Patcher.Engine.Modifications.Patches
{
public class ConsoleWrites : ModificationBase
{
public override System.Collections.Generic.IEnumerable<string> AssemblyTargets =... | using Mono.Cecil;
using OTAPI.Patcher.Engine.Extensions;
using OTAPI.Patcher.Engine.Modification;
using System;
using System.Linq;
namespace OTAPI.Patcher.Engine.Modifications.Patches
{
public class ConsoleWrites : ModificationBase
{
public override System.Collections.Generic.IEnumerable<string> AssemblyTargets =... | mit | C# |
e3bb82abc8c021cbdd690960093b69335ff2c4c8 | Update SA0001 unit test | DotNetAnalyzers/StyleCopAnalyzers | StyleCop.Analyzers/StyleCop.Analyzers.Test/SpecialRules/SA0001UnitTests.cs | StyleCop.Analyzers/StyleCop.Analyzers.Test/SpecialRules/SA0001UnitTests.cs | // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
namespace StyleCop.Analyzers.Test.SpecialRules
{
using System.Collections.Generic;
using System.Threading;
using System.Threadi... | // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
namespace StyleCop.Analyzers.Test.SpecialRules
{
using System.Collections.Generic;
using System.Threading;
using System.Threadi... | mit | C# |
d7b0aacc253b668a4c651ce19db579fcf4b59b6f | Remove a reference to Xwt.Gtk. | mono/guiunit | src/framework/GuiUnit/XwtMainLoopIntegration.cs | src/framework/GuiUnit/XwtMainLoopIntegration.cs | using System;
using System.IO;
using System.Linq;
using System.Reflection;
namespace GuiUnit
{
public class XwtMainLoopIntegration : IMainLoopIntegration
{
// List of Xwt backends we will try to use in order of priority
Tuple<string,string>[] backends = new[] {
Tuple.Create ("Xwt.WPF.dll", "Xwt.WPFBackend.WPF... | using System;
using System.IO;
using System.Linq;
using System.Reflection;
namespace GuiUnit
{
public class XwtMainLoopIntegration : IMainLoopIntegration
{
// List of Xwt backends we will try to use in order of priority
Tuple<string,string>[] backends = new[] {
Tuple.Create ("Xwt.Gtk.dll", "Xwt.GtkBackend.Gtk... | mit | C# |
c15b6de9d6fe34e92a565ca29e90a7a58a34745f | Test Refactor, EvaluateTests with Setup and Evaluate | ajlopez/ClojSharp | Src/ClojSharp.Core.Tests/EvaluateTests.cs | Src/ClojSharp.Core.Tests/EvaluateTests.cs | namespace ClojSharp.Core.Tests
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClojSharp.Core.Compiler;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class EvaluateTests
{
private Machine mac... | namespace ClojSharp.Core.Tests
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClojSharp.Core.Compiler;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class EvaluateTests
{
[TestMethod]
... | mit | C# |
b96dec7599f6f74f04d0a1ab4dcd0c9d9d1f30da | Remove redundant body tags | erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner | Zk/Views/Home/Index.cshtml | Zk/Views/Home/Index.cshtml | @{
ViewBag.Title = "Home";
}
<h2>Welcome to ASP.NET MVC @ViewData["Version"] on @ViewData["Runtime"]!</h2> | @{
ViewBag.Title = "Home";
}
<body>
<h2>Welcome to ASP.NET MVC @ViewData["Version"] on @ViewData["Runtime"]!</h2>
</body> | mit | C# |
84218f70d5df991fdbbd9503370ac343c6adf29e | Make DateTimePrecisionTest more robust | karolz-ms/diagnostics-eventflow | test/Microsoft.Diagnostics.EventFlow.Core.Tests/DateTimePreciseTests.cs | test/Microsoft.Diagnostics.EventFlow.Core.Tests/DateTimePreciseTests.cs | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
using System;
using System.... | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
using System;
using System.... | mit | C# |
6161928583171295b8ade6b7391ba65063190c5d | Cover Art idle => Banshee logo | arfbtwn/banshee,arfbtwn/banshee,arfbtwn/banshee,arfbtwn/banshee,arfbtwn/banshee,arfbtwn/banshee,arfbtwn/banshee,arfbtwn/banshee | src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/CoverArtDisplay.cs | src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/CoverArtDisplay.cs | //
// CoverArtdisplay.cs
//
// Author:
// Gabriel Burt <gburt@novell.com>
//
// Copyright (C) 2009 Novell, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, in... | //
// CoverArtdisplay.cs
//
// Author:
// Gabriel Burt <gburt@novell.com>
//
// Copyright (C) 2009 Novell, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, in... | mit | C# |
1fe4dd9aa3aa88ffbab2f01274e14b6e0603cc26 | Add Microsoft-Windows-DotNETRuntime to the list of framework EventSources. (#31691) | ViktorHofer/corefx,wtgodbe/corefx,Jiayili1/corefx,mmitche/corefx,BrennanConroy/corefx,mmitche/corefx,ericstj/corefx,Jiayili1/corefx,ViktorHofer/corefx,shimingsg/corefx,mmitche/corefx,ptoonen/corefx,mmitche/corefx,shimingsg/corefx,ViktorHofer/corefx,wtgodbe/corefx,BrennanConroy/corefx,ptoonen/corefx,shimingsg/corefx,Jia... | src/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestUtilities.cs | src/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestUtilities.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#if USE_MDT_EVENTSOURCE
using Microsoft.Diagnostics.Tracing;
#else
using System.Diagnostics.Tracing;
#endif
using Sy... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#if USE_MDT_EVENTSOURCE
using Microsoft.Diagnostics.Tracing;
#else
using System.Diagnostics.Tracing;
#endif
using Sy... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.