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 |
|---|---|---|---|---|---|---|---|---|---|
15e8317021fdbbe6278847c1c35b87622c47e979 | CORS/Controllers/ValuesController.cs | CORS/Controllers/ValuesController.cs | using System.Collections.Generic;
using System.Web.Http;
using System.Web.Http.Cors;
namespace CORS.Controllers
{
public class ValuesController : ApiController
{
// GET api/values
public IEnumerable<string> Get()
{
return new string[] { "This is a CORS request.",... | using System.Collections.Generic;
using System.Web.Http;
using System.Web.Http.Cors;
namespace CORS.Controllers
{
public class ValuesController : ApiController
{
// GET api/values
public IEnumerable<string> Get()
{
return new string[] {
"This is... | Use the term response instead of request. | Use the term response instead of request. | C# | mit | bigfont/webapi-cors |
c0d9e1891ab392cc80da5e794fdd8fe36d20f12d | src/WebPackAngular2TypeScript/Routing/DeepLinkingMiddleware.cs | src/WebPackAngular2TypeScript/Routing/DeepLinkingMiddleware.cs | using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.StaticFiles;
using Microsoft.Extensions.Logging;
using System.Threading.Tasks;
namespace WebPackAngular2TypeScript.Routing
{
public class DeepLinkingMiddleware
{
public DeepLinkingMiddle... | using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.StaticFiles;
using Microsoft.Extensions.Logging;
using System.Threading.Tasks;
namespace WebPackAngular2TypeScript.Routing
{
public class DeepLinkingMiddleware
{
public DeepLinkingMiddle... | Fix spurious 404 response when deep linking to a client route | Fix spurious 404 response when deep linking to a client route
| C# | mit | BrainCrumbz/AWATTS,BrainCrumbz/AWATTS,BrainCrumbz/AWATTS,BrainCrumbz/AWATTS |
69bf905ab7fd223a356a9f80a3280dcb7657bf25 | src/Dashboard/Views/BadConfig/Index.cshtml | src/Dashboard/Views/BadConfig/Index.cshtml | @using Dashboard
@using Microsoft.WindowsAzure.Jobs
@{
ViewBag.Title = "Configuration Error";
}
<h2>Bad Config</h2>
<p>
The configuration is not properly set for the Windows Azure Web Jobs SDK Dashboard.
In your configuration (such as web.config), you must set a connection string named <i>@JobHost.LoggingConnecti... | @using Dashboard
@using Microsoft.WindowsAzure.Jobs
@{
ViewBag.Title = "Configuration Error";
}
<h2>Bad Config</h2>
<p>
The configuration is not properly set for the Windows Azure Web Jobs SDK Dashboard.
In your configuration (such as web.config), you must set a connection string named <i>@JobHost.LoggingConnecti... | Fix connectionStrings section attribute in BadConfig doc page | Fix connectionStrings section attribute in BadConfig doc page
| C# | mit | vasanthangel4/azure-webjobs-sdk,Azure/azure-webjobs-sdk,shrishrirang/azure-webjobs-sdk,Azure/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,vasanthangel4/azure-webjobs-sdk,brendankowitz/azure-webjobs-sdk,oliver-feng/azure-webjobs-sdk,shrishrirang/azure-webjobs-sdk,brendankowitz/azure-webjobs-sdk,shrishrirang/azure-webjobs-... |
a9dfe2065a6fd456e3ffe306b046a3a08890231f | RepoZ.UI.Mac.Story/StringCommandHandler.cs | RepoZ.UI.Mac.Story/StringCommandHandler.cs | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
namespace RepoZ.UI.Mac.Story
{
public class StringCommandHandler
{
private Dictionary<string, Action> _commands = new Dictionary<string, Action>();
private StringBuilder _helpBuilder = new StringBuilder();
... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
namespace RepoZ.UI.Mac.Story
{
public class StringCommandHandler
{
private Dictionary<string, Action> _commands = new Dictionary<string, Action>();
private StringBuilder _helpBuilder = new StringBuilder();
... | Enhance the Mac command reference text a bit | Enhance the Mac command reference text a bit
| C# | mit | awaescher/RepoZ,awaescher/RepoZ |
356e0f42d34cd5ff11767f8f584ead235aa8bc0e | Source/Controllers/MailController.cs | Source/Controllers/MailController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ActionMailer.Net.Mvc;
using RationalVote.Models;
using System.Configuration;
namespace RationalVote.Controllers
{
public class MailController : MailerBase
{
public static string GetFromEmail( string purpose )
{
return ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ActionMailer.Net.Mvc;
using RationalVote.Models;
using System.Configuration;
namespace RationalVote.Controllers
{
public class MailController : MailerBase
{
public static string GetFromEmail( string purpose )
{
return ... | Use site title in email subject for exception handler. | Use site title in email subject for exception handler.
| C# | mit | IanNorris/RationalVote,IanNorris/RationalVote |
50e741ea0b59cc94d6e43d4939676906576718a2 | test/InfoCarrier.Core.EFCore.FunctionalTests/BuiltInDataTypesInfoCarrierTest.cs | test/InfoCarrier.Core.EFCore.FunctionalTests/BuiltInDataTypesInfoCarrierTest.cs | namespace InfoCarrier.Core.EFCore.FunctionalTests
{
using Microsoft.EntityFrameworkCore.Specification.Tests;
using Xunit;
public class BuiltInDataTypesInfoCarrierTest : BuiltInDataTypesTestBase<BuiltInDataTypesInfoCarrierFixture>
{
public BuiltInDataTypesInfoCarrierTest(BuiltInDataTypesInfoCar... | namespace InfoCarrier.Core.EFCore.FunctionalTests
{
using System.Linq;
using Microsoft.EntityFrameworkCore.Specification.Tests;
using Xunit;
public class BuiltInDataTypesInfoCarrierTest : BuiltInDataTypesTestBase<BuiltInDataTypesInfoCarrierFixture>
{
public BuiltInDataTypesInfoCarrierTest(... | Use SequenceEqual instead of operator== for comparison of arrays in 'Can_perform_query_with_max_length' test | Use SequenceEqual instead of operator== for comparison of arrays in 'Can_perform_query_with_max_length' test
| C# | mit | azabluda/InfoCarrier.Core |
d5b8ccf222f8bfeb7c9d54a85c4e4f82f949421e | auth0/04-Calling-API/server/src/WebAPIApplication/Controllers/ValuesController.cs | auth0/04-Calling-API/server/src/WebAPIApplication/Controllers/ValuesController.cs | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace WebAPIApplication.Controllers
{
[Route("api/[controller]")]
public class ValuesController : Controller
{
[HttpGet]
[Route("ping")]
public string Ping()
{
return "All good. You don... | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace WebAPIApplication.Controllers
{
[Route("api/[controller]")]
public class ValuesController : Controller
{
[HttpGet]
[Route("ping")]
public dynamic Ping()
{
return new {
... | Return JSON object from Values controller | Return JSON object from Values controller
| C# | unlicense | peterblazejewicz/ng-templates,peterblazejewicz/ng-templates,peterblazejewicz/ng-templates,peterblazejewicz/ng-templates |
234224e8d93a6c9ebc7e4532206d79677db2de6c | src/Scriban/Syntax/ScriptCaptureStatement.cs | src/Scriban/Syntax/ScriptCaptureStatement.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 Scriban.Runtime;
namespace Scriban.Syntax
{
[ScriptSyntax("capture statement", "capture <variable> ... end")]
public class ScriptC... | // 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 Scriban.Runtime;
namespace Scriban.Syntax
{
[ScriptSyntax("capture statement", "capture <variable> ... end")]
public class ScriptC... | Make sure a capture will not leave the TemplateContext in an unbalanced state if an exception occurs | Make sure a capture will not leave the TemplateContext in an unbalanced state if an exception occurs
| C# | bsd-2-clause | lunet-io/scriban,textamina/scriban |
7a9fe3554d13c42c5e48b320c7c04cc7228c3d92 | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Autofac.Tests.Configuration")]
[assembly: AssemblyDescription("")]
| using System.Reflection;
[assembly: AssemblyTitle("Autofac.Tests.Configuration")]
| Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major. | Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major.
| C# | mit | jango2015/Autofac.Configuration,autofac/Autofac.Configuration |
3c19009759bc19fb90dc0af5b8a981d845537c33 | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Autofac.Tests.Integration.Mvc")]
[assembly: AssemblyDescription("")]
| using System.Reflection;
[assembly: AssemblyTitle("Autofac.Tests.Integration.Mvc")]
| Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major. | Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major.
| C# | mit | dparra0007/Autofac.Mvc,autofac/Autofac.Mvc,jango2015/Autofac.Mvc |
932d6658a47d4d0926a9219353b090dcbb2a1ff0 | src/SFA.DAS.EmployerFinance.Api/Startup.cs | src/SFA.DAS.EmployerFinance.Api/Startup.cs | using System.Configuration;
using Microsoft.Owin;
using Microsoft.Owin.Security.ActiveDirectory;
using Owin;
using SFA.DAS.EmployerFinance.Api;
[assembly: OwinStartup(typeof(Startup))]
namespace SFA.DAS.EmployerFinance.Api
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
... | using System.Configuration;
using Microsoft.Owin;
using Microsoft.Owin.Security.ActiveDirectory;
using Owin;
using SFA.DAS.EmployerFinance.Api;
[assembly: OwinStartup(typeof(Startup))]
namespace SFA.DAS.EmployerFinance.Api
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
... | Rename app setting for finance api audiences | Rename app setting for finance api audiences
| C# | mit | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice |
71c703ad6c1058edf6146a1af5f9f5c655eb7b57 | source/CroquetAustraliaWebsite.Application/app/Infrastructure/PublicNavigationBar.cs | source/CroquetAustraliaWebsite.Application/app/Infrastructure/PublicNavigationBar.cs | using System.Collections.Generic;
namespace CroquetAustraliaWebsite.Application.App.Infrastructure
{
public static class PublicNavigationBar
{
public static IEnumerable<NavigationItem> GetNavigationItems()
{
return new[]
{
new NavigationItem("Contact Us"... | using System.Collections.Generic;
namespace CroquetAustraliaWebsite.Application.App.Infrastructure
{
public static class PublicNavigationBar
{
public static IEnumerable<NavigationItem> GetNavigationItems()
{
return new[]
{
new NavigationItem("Contact Us"... | Add 'Board Meeting Minutes' to navigation bar | Add 'Board Meeting Minutes' to navigation bar
| C# | mit | croquet-australia/croquet-australia.com.au,croquet-australia/croquet-australia.com.au,croquet-australia/croquet-australia-website,croquet-australia/croquet-australia.com.au,croquet-australia/website-application,croquet-australia/website-application,croquet-australia/croquet-australia-website,croquet-australia/website-a... |
5d964a0fb8abd58aa30759fc69c391febaf502b2 | Abc.NCrafts.Quizz/Performance/Questions/028/Answer1.cs | Abc.NCrafts.Quizz/Performance/Questions/028/Answer1.cs | using System;
using System.Linq;
namespace Abc.NCrafts.Quizz.Performance.Questions._028
{
[CorrectAnswer(Difficulty = Difficulty.Medium)]
public class Answer1
{
public static void Run()
{
// begin
var primes = Enumerable.Range(0, 10 * 1000)
... | using System;
using System.Linq;
namespace Abc.NCrafts.Quizz.Performance.Questions._028
{
[CorrectAnswer(Difficulty = Difficulty.Medium)]
public class Answer1
{
public static void Run()
{
// begin
var primes = Enumerable.Range(0, 10 * 1000)
... | Fix answer 28 to include square roots in prime test | Fix answer 28 to include square roots in prime test
| C# | mit | Abc-Arbitrage/Abc.NCrafts.AllocationQuiz |
558f8172e487d62acceca5b87da241bfceb11ea2 | tests/SocksSharp.Tests/ProxyClientTests.cs | tests/SocksSharp.Tests/ProxyClientTests.cs | using System;
using System.Diagnostics;
using Microsoft.Extensions.Configuration;
using Xunit;
using SocksSharp;
using SocksSharp.Proxy;
namespace SocksSharp.Tests
{
public class ProxyClientTests
{
private ProxySettings proxySettings;
private void GatherTestConfiguration()
{
... | using System;
using System.Diagnostics;
using Microsoft.Extensions.Configuration;
using Xunit;
using SocksSharp;
using SocksSharp.Proxy;
namespace SocksSharp.Tests
{
public class ProxyClientTests
{
private Uri baseUri = new Uri("http://httpbin.org/");
private ProxySettings proxySettings;
... | Add base uri to tests | Add base uri to tests
| C# | mit | extremecodetv/SocksSharp |
cab75b4de0a28a59043ee989b6e0f6ebbde50d44 | Cogito.Composition/ExportOrderAttribute.cs | Cogito.Composition/ExportOrderAttribute.cs | using System;
using System.ComponentModel.Composition;
namespace Cogito.Composition
{
/// <summary>
/// Attaches an Order metadata property to the export.
/// </summary>
[MetadataAttribute]
public class ExportOrderAttribute :
Attribute
{
readonly int order;
/// <summ... | using System;
using System.ComponentModel.Composition;
namespace Cogito.Composition
{
/// <summary>
/// Attaches an Order metadata property to the export.
/// </summary>
[MetadataAttribute]
public class ExportOrderAttribute :
Attribute,
IOrderedExportMetadata
{
/// <s... | Check Azure configuration more carefully. Add contracts for some base classes. Fix ExportOrder. | Check Azure configuration more carefully.
Add contracts for some base classes.
Fix ExportOrder.
| C# | mit | wasabii/Cogito,wasabii/Cogito |
988a11fa8cbe4998f678f957af6516ee93faef6d | test/UnitTests/LongExtensionsUnitTests.cs | test/UnitTests/LongExtensionsUnitTests.cs | namespace DarkSky.UnitTests.Extensions
{
using System;
using NodaTime;
using Xunit;
using static DarkSky.Extensions.LongExtensions;
public class LongExtensionsUnitTests
{
public static System.Collections.Generic.IEnumerable<object[]> GetDateTimeOffsets()
{
yield return new object[] { DateTimeOffset.MinVa... | namespace DarkSky.UnitTests.Extensions
{
using System;
using NodaTime;
using Xunit;
using static DarkSky.Extensions.LongExtensions;
public class LongExtensionsUnitTests
{
public static System.Collections.Generic.IEnumerable<object[]> GetDateTimeOffsets()
{
yield return new object[] { DateTimeOffset.MinVa... | Add unit test for empty timezone | chore(test): Add unit test for empty timezone
| C# | mit | amweiss/dark-sky-core |
f43f8cf6b95bebf5c18683acdb0e96a6ff731fb3 | osu.Game/Screens/Edit/Setup/SetupScreen.cs | osu.Game/Screens/Edit/Setup/SetupScreen.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Screens.Edit.Setup
{
public class SetupScreen : EditorScreen
{
public SetupScreen()
{
Child = new ScreenWhiteBox.U... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Game.Beatmaps.Drawa... | Add basic setup for song select screen | Add basic setup for song select screen
| C# | mit | smoogipoo/osu,UselessToucan/osu,peppy/osu,UselessToucan/osu,smoogipooo/osu,NeoAdonis/osu,peppy/osu-new,NeoAdonis/osu,ppy/osu,peppy/osu,smoogipoo/osu,peppy/osu,ppy/osu,ppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu |
1319e8a998eabee85285c44d62858c41512f412c | EOLib.IO/Repositories/PubFileRepository.cs | EOLib.IO/Repositories/PubFileRepository.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 AutomaticTypeMapper;
using EOLib.IO.Pub;
namespace EOLib.IO.Repositories
{
[MappedType(BaseType = typeof(IPubFileRepository), IsSingleton = true)]
[MappedT... | // 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 AutomaticTypeMapper;
using EOLib.IO.Pub;
namespace EOLib.IO.Repositories
{
[MappedType(BaseType = typeof(IPubFileRepository), IsSingleton = true)]
[MappedT... | Fix type mapping for IPubFileProvider | Fix type mapping for IPubFileProvider
| C# | mit | ethanmoffat/EndlessClient |
1c015e31f1f919e7b8221fab45a7e39e961a7c6f | Plugins/Wox.Plugin.BrowserBookmark/Main.cs | Plugins/Wox.Plugin.BrowserBookmark/Main.cs | using System.Collections.Generic;
using System.Linq;
using Wox.Plugin.BrowserBookmark.Commands;
using Wox.Plugin.SharedCommands;
namespace Wox.Plugin.BrowserBookmark
{
public class Main : IPlugin
{
private PluginInitContext context;
private List<Bookmark> cachedBookmarks = new List<Bo... | using System.Collections.Generic;
using System.Linq;
using Wox.Plugin.BrowserBookmark.Commands;
using Wox.Plugin.SharedCommands;
namespace Wox.Plugin.BrowserBookmark
{
public class Main : IPlugin, IReloadable
{
private PluginInitContext context;
private List<Bookmark> cachedBookmarks ... | Add IReloadable interface and method | Add IReloadable interface and method
| C# | mit | Wox-launcher/Wox,qianlifeng/Wox,qianlifeng/Wox,qianlifeng/Wox,Wox-launcher/Wox |
e1fa3e868a769ab6064ab707c3d9fb3af9fadc27 | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Skylight")]
[assembly: AssemblyDescription("An API by TakoMan02 for Everybody Edits")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("TakoMan02")]
[assembly: AssemblyProdu... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Skylight")]
[assembly: AssemblyDescription("An API by TakoMan02 for Everybody Edits")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("TakoMan02")]
[assembly: AssemblyProdu... | Change version number to v0.5.1.0 | Change version number to v0.5.1.0
| C# | mit | Seist/Skylight |
4533449ba6131a36c4263bc9529c5e0c21471ba9 | src/SQLite.Net/BlobSerializerDelegate.cs | src/SQLite.Net/BlobSerializerDelegate.cs | using System;
namespace SQLite.Net
{
public class BlobSerializerDelegate : IBlobSerializer
{
public delegate byte[] SerializeDelegate(object obj);
public delegate bool CanSerializeDelegate(Type type);
public delegate object DeserializeDelegate(byte[] data, Type type);
private ... | using System;
namespace SQLite.Net
{
public class BlobSerializerDelegate : IBlobSerializer
{
public delegate byte[] SerializeDelegate(object obj);
public delegate bool CanSerializeDelegate(Type type);
public delegate object DeserializeDelegate(byte[] data, Type type);
privat... | Rename fields name pattern to match rest of code | core/BlobSerializer: Rename fields name pattern to match rest of code
| C# | mit | TiendaNube/SQLite.Net-PCL,igrali/SQLite.Net-PCL,caseydedore/SQLite.Net-PCL,mattleibow/SQLite.Net-PCL,fernandovm/SQLite.Net-PCL,igrali/SQLite.Net-PCL,kreuzhofer/SQLite.Net-PCL,molinch/SQLite.Net-PCL,oysteinkrog/SQLite.Net-PCL |
e0a3df8344a1e51d18afc6a6844491d561d3198b | src/Ensconce.Cake/EnsconceFileUpdateExtensions.cs | src/Ensconce.Cake/EnsconceFileUpdateExtensions.cs | using Cake.Core.IO;
using Ensconce.Update;
using System.IO;
namespace Ensconce.Cake
{
public static class EnsconceFileUpdateExtensions
{
public static void TextSubstitute(this IFile file, FilePath fixedStructureFile)
{
var tagDictionary = fixedStructureFile == null ? TagDictionaryB... | using Cake.Core.IO;
using Ensconce.Update;
using System.IO;
namespace Ensconce.Cake
{
public static class EnsconceFileUpdateExtensions
{
public static void TextSubstitute(this IFile file, FilePath fixedStructureFile)
{
file.Path.TextSubstitute(fixedStructureFile);
}
... | Handle update based on a path object as well as the directory/file | Handle update based on a path object as well as the directory/file
| C# | mit | 15below/Ensconce,BlythMeister/Ensconce,BlythMeister/Ensconce,15below/Ensconce |
0ca87c03d6b9c621e2044ac3878a8453af904549 | BForms.Docs/Global.asax.cs | BForms.Docs/Global.asax.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using BForms.Models;
using BForms.Mvc;
namespace BForms.Docs
{
public class MvcApplication : System.Web.HttpApplication
{
protected void ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using BForms.Models;
using BForms.Mvc;
namespace BForms.Docs
{
public class MvcApplication : System.Web.HttpApplication
{
protected void ... | Revert "fixed mandatory field error message" | Revert "fixed mandatory field error message"
This reverts commit fe294ec07e8cf85ecea8f317b7aa2ee169bd2120.
| C# | mit | vtfuture/BForms,vtfuture/BForms,vtfuture/BForms |
9c3e74131f01a804661539b3f00f4010a4946390 | src/ServiceStack.Common/Web/HttpHeaders.cs | src/ServiceStack.Common/Web/HttpHeaders.cs | namespace ServiceStack.Common.Web
{
public static class HttpHeaders
{
public const string XParamOverridePrefix = "X-Param-Override-";
public const string XHttpMethodOverride = "X-Http-Method-Override";
public const string XUserAuthId = "X-UAId";
public const string X... | namespace ServiceStack.Common.Web
{
public static class HttpHeaders
{
public const string XParamOverridePrefix = "X-Param-Override-";
public const string XHttpMethodOverride = "X-Http-Method-Override";
public const string XUserAuthId = "X-UAId";
public const string XForwardedF... | Add a const string field for the If-None-Match HTTP header | Add a const string field for the If-None-Match HTTP header
| C# | bsd-3-clause | ZocDoc/ServiceStack,NServiceKit/NServiceKit,MindTouch/NServiceKit,NServiceKit/NServiceKit,nataren/NServiceKit,ZocDoc/ServiceStack,NServiceKit/NServiceKit,NServiceKit/NServiceKit,ZocDoc/ServiceStack,timba/NServiceKit,timba/NServiceKit,MindTouch/NServiceKit,nataren/NServiceKit,timba/NServiceKit,nataren/NServiceKit,ZocDoc... |
c66c36b53727bbafedfe9fe6472c5a8db88dd6b4 | WalletWasabi/Extensions/MemoryExtensions.cs | WalletWasabi/Extensions/MemoryExtensions.cs | using Nito.AsyncEx;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.Extensions.Caching.Memory
{
public static class MemoryExtensions
{
private static Dictionary<object, AsyncLock> AsyncLocks { get; } = new Dictionary<object, AsyncLock>();
priva... | using Nito.AsyncEx;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.Extensions.Caching.Memory
{
public static class MemoryExtensions
{
private static Dictionary<object, AsyncLock> AsyncLocks { get; } = new Dictionary<object, As... | Make sure to clean my dic. | Make sure to clean my dic.
| C# | mit | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet |
4ddddfcb6eaf000c5790913d888016de5e010598 | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Autofac.Tests.Integration.Web")]
[assembly: AssemblyDescription("")]
| using System.Reflection;
[assembly: AssemblyTitle("Autofac.Tests.Integration.Web")]
| Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major. | Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major.
| C# | mit | autofac/Autofac.Web |
4751601973861024ca9e46b0c8dbc16b2dd37a70 | source/XeroApi/Model/Journal.cs | source/XeroApi/Model/Journal.cs | using System;
namespace XeroApi.Model
{
public class Journal : EndpointModelBase
{
[ItemId]
public Guid JournalID { get; set; }
public DateTime JournalDate { get; set; }
public long JournalNumber { get; set; }
[ItemUpdatedDate]
public DateTime... | using System;
namespace XeroApi.Model
{
public class Journal : EndpointModelBase
{
[ItemId]
public Guid JournalID { get; set; }
public DateTime JournalDate { get; set; }
public long JournalNumber { get; set; }
[ItemUpdatedDate]
public DateTime... | Add SourceID and SourceType to journal | Add SourceID and SourceType to journal
| C# | mit | MatthewSteeples/XeroAPI.Net |
a0460b8216eedbf6dd02bde2f89ebb4ddf568447 | plugins/TrackableData.MySql.Tests/Database.cs | plugins/TrackableData.MySql.Tests/Database.cs | using System;
using System.Configuration;
using System.Data.SqlClient;
using MySql.Data.MySqlClient;
namespace TrackableData.MySql.Tests
{
public class Database : IDisposable
{
public Database()
{
var cstr = ConfigurationManager.ConnectionStrings["TestDb"].ConnectionString;
... | using System;
using System.Configuration;
using System.Data.SqlClient;
using MySql.Data.MySqlClient;
namespace TrackableData.MySql.Tests
{
public class Database : IDisposable
{
public Database()
{
var cstr = ConfigurationManager.ConnectionStrings["TestDb"].ConnectionString;
... | Fix bug to find non-existent sys db in mysql | Fix bug to find non-existent sys db in mysql
| C# | mit | SaladLab/TrackableData,SaladbowlCreative/TrackableData,SaladbowlCreative/TrackableData,SaladLab/TrackableData |
b306a7b0a8ce6c837b20ea0a25d6f9bb2adc2fa4 | src/Certify.Models/Config/ActionResult.cs | src/Certify.Models/Config/ActionResult.cs | namespace Certify.Models.Config
{
public class ActionResult
{
public ActionResult() { }
public ActionResult(string msg, bool isSuccess)
{
Message = msg;
IsSuccess = isSuccess;
}
public bool IsSuccess { get; set; }
public string Message { ... | namespace Certify.Models.Config
{
public class ActionResult
{
public ActionResult() { }
public ActionResult(string msg, bool isSuccess)
{
Message = msg;
IsSuccess = isSuccess;
}
public bool IsSuccess { get; set; }
public bool IsWarning { ... | Add IsWarning to action result | Add IsWarning to action result
| C# | mit | webprofusion/Certify |
2a8b84bd3deb0d7d6a8e8f0701e0d5521ee26206 | src/Cake.Frosting.Template/templates/cakefrosting/build/Program.cs | src/Cake.Frosting.Template/templates/cakefrosting/build/Program.cs | using System.Threading.Tasks;
using Cake.Core;
using Cake.Core.Diagnostics;
using Cake.Frosting;
public static class Program
{
public static int Main(string[] args)
{
return new CakeHost()
.UseContext<BuildContext>()
.UseWorkingDirectory("..")
.Run(args);
}
}
pu... | using System.Threading.Tasks;
using Cake.Core;
using Cake.Core.Diagnostics;
using Cake.Frosting;
public static class Program
{
public static int Main(string[] args)
{
return new CakeHost()
.UseContext<BuildContext>()
.Run(args);
}
}
public class BuildContext : FrostingConte... | Remove use of UseWorkingDirectory in default template | Remove use of UseWorkingDirectory in default template
| C# | mit | cake-build/cake,gep13/cake,patriksvensson/cake,devlead/cake,patriksvensson/cake,devlead/cake,gep13/cake,cake-build/cake |
bae1e37f3a917c61033cacb12f3a02526961bfd6 | bees-in-the-trap/Assets/Scripts/Upgrade.cs | bees-in-the-trap/Assets/Scripts/Upgrade.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum Upgrade {
NONE, ROBOT, NIGHTVISION, UNICORN, ZOMBIE, REDHAT, BEEARD
}
| using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum Upgrade {
NONE, ROBOT, NIGHTVISION, UNICORN, ZOMBIE, REDHAT, BEEARD, BEEBALL, SCHOOLBUZZ, BUZZFEED, BEACH, GUM, VISOR
}
| Add other upgrades to enum | Add other upgrades to enum
| C# | mit | makerslocal/LudumDare38 |
7616c7a6ab30877993a00bbaa53ac185d67a7aa8 | Swashbuckle.Core/Swagger/JsonPropertyExtensions.cs | Swashbuckle.Core/Swagger/JsonPropertyExtensions.cs | using System;
using System.ComponentModel.DataAnnotations;
using System.Reflection;
using Newtonsoft.Json.Serialization;
namespace Swashbuckle.Swagger
{
public static class JsonPropertyExtensions
{
public static bool IsRequired(this JsonProperty jsonProperty)
{
return jsonProperty.... | using System;
using System.ComponentModel.DataAnnotations;
using System.Reflection;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Swashbuckle.Swagger
{
public static class JsonPropertyExtensions
{
public static bool IsRequired(this JsonProperty jsonProperty)
{
... | Fix to also check the Required property of the JsonProperty when determining if a model property is required or optional. | Fix to also check the Required property of the JsonProperty when determining if a model property is required or optional.
| C# | bsd-3-clause | domaindrivendev/Swashbuckle,domaindrivendev/Swashbuckle,domaindrivendev/Swashbuckle |
ab598eafe1d92e5564b31432e45b86843bdf80ae | RedditSharpTests/AuthenticatedTestsFixture.cs | RedditSharpTests/AuthenticatedTestsFixture.cs | using Microsoft.Extensions.Configuration;
using Xunit;
namespace RedditSharpTests
{
public class AuthenticatedTestsFixture
{
public IConfigurationRoot Config { get; private set; }
public string AccessToken { get; private set; }
public RedditSharp.BotWebAgent WebAgent { get; set; }
... | using Microsoft.Extensions.Configuration;
using Xunit;
namespace RedditSharpTests
{
public class AuthenticatedTestsFixture
{
public IConfigurationRoot Config { get; private set; }
public string AccessToken { get; private set; }
public RedditSharp.BotWebAgent WebAgent { get; set; }
... | Set private.config to optional to fix unit tests on build server | Set private.config to optional to fix unit tests on build server
| C# | mit | CrustyJew/RedditSharp |
3b1fd660928db28de677b08ed168613b98aee6f4 | Scripts/GameApi/Messages/ServerTimeMessage.cs | Scripts/GameApi/Messages/ServerTimeMessage.cs | using System.Collections;
using System.Collections.Generic;
using LiteNetLib.Utils;
namespace LiteNetLibManager
{
public struct ServerTimeMessage : INetSerializable
{
public int serverUnixTime;
public float serverTime;
public void Deserialize(NetDataReader reader)
{
... | using System.Collections;
using System.Collections.Generic;
using LiteNetLib.Utils;
namespace LiteNetLibManager
{
public struct ServerTimeMessage : INetSerializable
{
public int serverUnixTime;
public void Deserialize(NetDataReader reader)
{
serverUnixTime = reader.GetPack... | Reduce packet size, remove bloated time codes | Reduce packet size, remove bloated time codes
| C# | mit | insthync/LiteNetLibManager,insthync/LiteNetLibManager |
a0f703f1334c0b25af0f524f85a61e2ab18afec6 | Core/Theraot/Threading/GCMonitor.internal.cs | Core/Theraot/Threading/GCMonitor.internal.cs | // Needed for Workaround
using System;
using System.Threading;
using Theraot.Collections.ThreadSafe;
namespace Theraot.Threading
{
public static partial class GCMonitor
{
private static class Internal
{
private static readonly WeakDelegateCollection _collectedEventHandlers;
... | // Needed for Workaround
using System;
using System.Threading;
using Theraot.Collections.ThreadSafe;
namespace Theraot.Threading
{
public static partial class GCMonitor
{
private static class Internal
{
private static readonly WeakDelegateCollection _collectedEventHandlers;
... | Rename refactor;: GCMonitor.work -> GCMonitor._work | Rename refactor;: GCMonitor.work -> GCMonitor._work
| C# | mit | theraot/Theraot |
7a6b4aefb7d0750d590fd7fe16b4afdb78415a64 | CardboardControl/Scripts/ParsedTouchData.cs | CardboardControl/Scripts/ParsedTouchData.cs | using UnityEngine;
using System.Collections;
/**
* Dealing with raw touch input from a Cardboard device
*/
public class ParsedTouchData {
private bool wasTouched = false;
public ParsedTouchData() {}
public void Update() {
wasTouched |= this.IsDown();
}
public bool IsDown() {
return Input.touchCou... | using UnityEngine;
using System.Collections;
/**
* Dealing with raw touch input from a Cardboard device
*/
public class ParsedTouchData {
private bool wasTouched = false;
public ParsedTouchData() {
Cardboard cardboard = CardboardGameObject().GetComponent<Cardboard>();
cardboard.TapIsTrigger = false;
}
... | Update for new version of Cardboard SDK | Update for new version of Cardboard SDK
| C# | mit | JScott/cardboard-controls |
bbce4451aa7693ee634b55081c705b4672ae93a2 | BTCPayServer.Abstractions/Security/AuthorizationFilterHandle.cs | BTCPayServer.Abstractions/Security/AuthorizationFilterHandle.cs | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
namespace BTCPayServer.Security;
public class AuthorizationFilterHandle
{
public AuthorizationHandlerContext Context { get; }
public PolicyRequirement Requirement { get; }
public HttpContext HttpContext { get; }
public bool Suc... | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
namespace BTCPayServer.Security;
public class AuthorizationFilterHandle
{
public AuthorizationHandlerContext Context { get; }
public PolicyRequirement Requirement { get; }
public HttpContext HttpContext { get; }
public bool Suc... | Add ability to mark auth handle as successful | Add ability to mark auth handle as successful
Without this, there is no way to let the handle finish with a successful state. I somehow missed to add this in #3977.
| C# | mit | btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver |
1905772d88235d4627f1520ae5243f512a57fe3c | src/platform/ICCSAXDelegator.cs | src/platform/ICCSAXDelegator.cs | /****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2008-2009 Jason Booth
Copyright (c) 2011-2012 openxlive.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files ... | /****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2008-2009 Jason Booth
Copyright (c) 2011-2012 openxlive.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files ... | Mark ICCSaxDelegator class as internal. | Mark ICCSaxDelegator class as internal.
| C# | mit | haithemaraissia/CocosSharp,netonjm/CocosSharp,netonjm/CocosSharp,mono/CocosSharp,MSylvia/CocosSharp,hig-ag/CocosSharp,haithemaraissia/CocosSharp,MSylvia/CocosSharp,mono/CocosSharp,hig-ag/CocosSharp,TukekeSoft/CocosSharp,zmaruo/CocosSharp,TukekeSoft/CocosSharp,zmaruo/CocosSharp |
23c9cac1e27a1836c40c54ccca36fba0b645e4ec | BoardGamesApi/Controllers/TempController.cs | BoardGamesApi/Controllers/TempController.cs | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
namespace BoardGamesApi.Controllers
{
[ApiExplorerSettings(IgnoreApi = true)]
public class TempController : Controller
{
private readonly IConfiguration _configuration;
publ... | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
namespace BoardGamesApi.Controllers
{
[ApiExplorerSettings(IgnoreApi = true)]
public class TempController : Controller
{
private readonly IConfiguration _configuration;
publ... | Fix the issue with settings name | Fix the issue with settings name
| C# | mit | miroslavpopovic/production-ready-apis-sample |
08358c24e29d513f6e29a9db93d2647976777565 | Source/Eto.Mac/Forms/Controls/MacButton.cs | Source/Eto.Mac/Forms/Controls/MacButton.cs | using Eto.Forms;
using MonoMac.AppKit;
using Eto.Drawing;
namespace Eto.Mac.Forms.Controls
{
public abstract class MacButton<TControl, TWidget, TCallback> : MacControl<TControl, TWidget, TCallback>, TextControl.IHandler
where TControl: NSButton
where TWidget: Control
where TCallback: Control.ICallback
{
publ... | using Eto.Forms;
using MonoMac.AppKit;
using Eto.Drawing;
namespace Eto.Mac.Forms.Controls
{
public abstract class MacButton<TControl, TWidget, TCallback> : MacControl<TControl, TWidget, TCallback>, TextControl.IHandler
where TControl: NSButton
where TWidget: Control
where TCallback: Control.ICallback
{
publ... | Allow Button.Text to be set to null | Mac: Allow Button.Text to be set to null
| C# | bsd-3-clause | l8s/Eto,l8s/Eto,bbqchickenrobot/Eto-1,PowerOfCode/Eto,l8s/Eto,bbqchickenrobot/Eto-1,PowerOfCode/Eto,PowerOfCode/Eto,bbqchickenrobot/Eto-1 |
1c74e56bab1679e7d42a52b7cc84126e66a10dad | osu.Game.Rulesets.Mania/ManiaInputManager.cs | osu.Game.Rulesets.Mania/ManiaInputManager.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.ComponentModel;
using osu.Framework.Input.Bindings;
using osu.Game.Rulesets.UI;
namespace osu.Game.Rulesets.Mania
{
public class ManiaInputMa... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.ComponentModel;
using osu.Framework.Input.Bindings;
using osu.Game.Rulesets.UI;
namespace osu.Game.Rulesets.Mania
{
public class ManiaInputMa... | Increase the point at which normal keys start in ManiaAction | Increase the point at which normal keys start in ManiaAction
| C# | mit | ppy/osu,UselessToucan/osu,EVAST9919/osu,DrabWeb/osu,peppy/osu-new,smoogipoo/osu,DrabWeb/osu,NeoAdonis/osu,ppy/osu,Frontear/osuKyzer,2yangk23/osu,smoogipoo/osu,peppy/osu,johnneijzen/osu,EVAST9919/osu,Nabile-Rahmani/osu,DrabWeb/osu,naoey/osu,ZLima12/osu,ppy/osu,peppy/osu,UselessToucan/osu,2yangk23/osu,NeoAdonis/osu,johnn... |
2fd2d0a852232c55602fa3dc2f2556546ffba97a | src/UnityExtension/Assets/Editor/GitHub.Unity/UI/LoadingView.cs | src/UnityExtension/Assets/Editor/GitHub.Unity/UI/LoadingView.cs | using System;
using System.Linq;
using System.Threading.Tasks;
using Octokit;
using Rackspace.Threading;
using UnityEditor;
using UnityEngine;
namespace GitHub.Unity
{
class LoadingView : Subview
{
private static readonly Vector2 viewSize = new Vector2(300, 250);
private bool isBusy;
... | using System;
using System.Linq;
using System.Threading.Tasks;
using Octokit;
using Rackspace.Threading;
using UnityEditor;
using UnityEngine;
namespace GitHub.Unity
{
class LoadingView : Subview
{
private static readonly Vector2 viewSize = new Vector2(300, 250);
private const string WindowTi... | Remove unused field, for now | Remove unused field, for now
| C# | mit | github-for-unity/Unity,github-for-unity/Unity,mpOzelot/Unity,github-for-unity/Unity,mpOzelot/Unity |
ca4c9ff43084f90f715f0ca4eb44c7d397fb39ea | src/Xamarin.Forms.OAuth/OAuthTestApp/OAuthTestApp/ResultPage.cs | src/Xamarin.Forms.OAuth/OAuthTestApp/OAuthTestApp/ResultPage.cs | using System;
using Xamarin.Forms;
using Xamarin.Forms.OAuth;
namespace OAuthTestApp
{
public class ResultPage : ContentPage
{
public ResultPage(AuthenticatonResult result, Action returnCallback)
{
var stack = new StackLayout
{
VerticalOptions = LayoutOp... | using System;
using Xamarin.Forms;
using Xamarin.Forms.OAuth;
using Xamarin.Forms.OAuth.Views;
namespace OAuthTestApp
{
public class ResultPage : ContentPage, IBackHandlingView
{
private readonly Action _returnCallback;
public ResultPage(AuthenticatonResult result, Action returnCallb... | Handle physical back button in result view | Handle physical back button in result view
| C# | mit | Bigsby/Xamarin.Forms.OAuth |
75f88f087620ac0609f5dd852a85b1094b602c8a | Sync/Program.cs | Sync/Program.cs | using Sync.Command;
using Sync.MessageFilter;
using Sync.Plugins;
using Sync.Source;
using Sync.Tools;
using System;
using System.Diagnostics;
using static Sync.Tools.IO;
namespace Sync
{
public static class Program
{
//public static I18n i18n;
static void Main(string[] args)
{
... | using Sync.Command;
using Sync.MessageFilter;
using Sync.Plugins;
using Sync.Source;
using Sync.Tools;
using System;
using System.Diagnostics;
using static Sync.Tools.IO;
namespace Sync
{
public static class Program
{
//public static I18n i18n;
static void Main(string[] args)
{
... | Move input block for thread safe | Move input block for thread safe
| C# | mit | Deliay/osuSync,Deliay/Sync |
045a611730a253c43330e932eb661f7fe262a2ad | AzureIoTHubConnectedServiceLibrary/Handler.VisualC.WAC.cs | AzureIoTHubConnectedServiceLibrary/Handler.VisualC.WAC.cs | using Microsoft.VisualStudio.ConnectedServices;
namespace AzureIoTHubConnectedService
{
[ConnectedServiceHandlerExport("Microsoft.AzureIoTHubService",
AppliesTo = "VisualC+WindowsAppContainer")]
internal class CppHandlerWAC : GenericAzureIoTHubServiceHandler
{
protected override HandlerManifes... | using Microsoft.VisualStudio.ConnectedServices;
namespace AzureIoTHubConnectedService
{
#if false // Disabled to a bug: https://github.com/Azure/azure-iot-sdks/issues/289
[ConnectedServiceHandlerExport("Microsoft.AzureIoTHubService",
AppliesTo = "VisualC+WindowsAppContainer")]
#endif
internal class CppHan... | Disable UWP C++ (for now) | Disable UWP C++ (for now)
| C# | mit | Azure/azure-iot-hub-vs-cs,Azure/azure-iot-hub-vs-cs,Azure/azure-iot-hub-vs-cs |
334fb7d4753386c6d534efe27e80e421a3b8a94f | osu.Game/Online/Multiplayer/IndexPlaylistScoresRequest.cs | osu.Game/Online/Multiplayer/IndexPlaylistScoresRequest.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.Collections.Generic;
using Newtonsoft.Json;
using osu.Game.Online.API;
namespace osu.Game.Online.Multiplayer
{
public class IndexPlaylistScoresRequest :... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using Newtonsoft.Json;
using osu.Framework.IO.Network;
using osu.Game.Extensions;
using osu.Game.Online.API;
using osu.Game.Online.API.R... | Add additional params to index request | Add additional params to index request
| C# | mit | UselessToucan/osu,peppy/osu-new,peppy/osu,smoogipoo/osu,peppy/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,peppy/osu,smoogipooo/osu,ppy/osu,NeoAdonis/osu |
168a7a588b62b3f087e1d6e9785b7e8eeb2f9959 | osu.Game/Rulesets/Difficulty/TimedDifficultyAttributes.cs | osu.Game/Rulesets/Difficulty/TimedDifficultyAttributes.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;
namespace osu.Game.Rulesets.Difficulty
{
/// <summary>
/// Wraps a <see cref="DifficultyAttributes"/> object and adds a time value for which the at... | // 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;
namespace osu.Game.Rulesets.Difficulty
{
/// <summary>
/// Wraps a <see cref="DifficultyAttributes"/> object and adds a time value for which the at... | Add xmldoc to ctor also | Add xmldoc to ctor also
| C# | mit | peppy/osu,NeoAdonis/osu,smoogipooo/osu,NeoAdonis/osu,ppy/osu,ppy/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,ppy/osu,NeoAdonis/osu |
82cb85bba1c0ba0e2ac8343f9f6716a6afbf9f82 | src/Orchard/Caching/Cache.cs | src/Orchard/Caching/Cache.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Orchard.Caching {
public class Cache<TKey, TResult> : ICache<TKey, TResult> {
private readonly Dictionary<TKey, CacheEntry> _entries;
public Cache() {
_entries = new Dictionary<TKey, CacheEntry>();
... | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
namespace Orchard.Caching {
public class Cache<TKey, TResult> : ICache<TKey, TResult> {
private readonly ConcurrentDictionary<TKey, CacheEntry> _entries;
public Cache() {
... | Fix concurrency issue accessing Dictionary instance | Fix concurrency issue accessing Dictionary instance
--HG--
branch : dev
| C# | bsd-3-clause | li0803/Orchard,xiaobudian/Orchard,austinsc/Orchard,smartnet-developers/Orchard,hbulzy/Orchard,harmony7/Orchard,m2cms/Orchard,Ermesx/Orchard,bigfont/orchard-continuous-integration-demo,qt1/Orchard,kouweizhong/Orchard,armanforghani/Orchard,OrchardCMS/Orchard,omidnasri/Orchard,MetSystem/Orchard,tobydodds/folklife,mgrowan/... |
d9521343fb8dcf5d1aea7958463ff186ec7abbf5 | FootballLeague/Services/UsersADSearcher.cs | FootballLeague/Services/UsersADSearcher.cs | using FootballLeague.Models;
using System.DirectoryServices;
namespace FootballLeague.Services
{
public class UsersADSearcher : IUsersADSearcher
{
public User LoadUserDetails(string userName)
{
var entry = new DirectoryEntry();
var searcher = new DirectorySearcher(entry... | using System.Linq;
using System.Web;
using FootballLeague.Models;
using System.DirectoryServices;
namespace FootballLeague.Services
{
public class UsersADSearcher : IUsersADSearcher
{
public User LoadUserDetails(string userName)
{
var entry = new DirectoryEntry();
var s... | Use local user when not in domain | Use local user when not in domain
| C# | mit | pecosk/football,pecosk/football |
377039400fa0456f15382a024020d43d061fc9ae | Assets/Teak/Editor/TeakPreProcessDefiner.cs | Assets/Teak/Editor/TeakPreProcessDefiner.cs | using UnityEditor;
using UnityEditor.Build;
#if UNITY_2018_1_OR_NEWER
using UnityEditor.Build.Reporting;
#endif
using UnityEngine;
class TeakPreProcessDefiner :
#if UNITY_2018_1_OR_NEWER
IPreprocessBuildWithReport
#else
IPreprocessBuild
#endif
{
public int callbackOrder { get { return 0; } }
public sta... | using UnityEditor;
using UnityEditor.Build;
#if UNITY_2018_1_OR_NEWER
using UnityEditor.Build.Reporting;
#endif
using UnityEngine;
using System.Collections.Generic;
class TeakPreProcessDefiner :
#if UNITY_2018_1_OR_NEWER
IPreprocessBuildWithReport
#else
IPreprocessBuild
#endif
{
public int callbackOrder {... | Use a set of defines, and some generics | Use a set of defines, and some generics
| C# | apache-2.0 | GoCarrot/teak-unity,GoCarrot/teak-unity,GoCarrot/teak-unity,GoCarrot/teak-unity,GoCarrot/teak-unity |
8783c703d8cbdf19d9b98b58b0d51f53512b0df4 | src/Stripe.Tests.XUnit/coupons/_fixture.cs | src/Stripe.Tests.XUnit/coupons/_fixture.cs | using System;
using System.Collections.Generic;
namespace Stripe.Tests.Xunit
{
public class coupons_fixture : IDisposable
{
public StripeCouponCreateOptions CouponCreateOptions { get; set; }
public StripeCouponUpdateOptions CouponUpdateOptions { get; set; }
public StripeCoupon Coupon {... | using System;
using System.Collections.Generic;
namespace Stripe.Tests.Xunit
{
public class coupons_fixture : IDisposable
{
public StripeCouponCreateOptions CouponCreateOptions { get; set; }
public StripeCouponUpdateOptions CouponUpdateOptions { get; set; }
public StripeCoupon Coupon {... | Add a detailed comment to explain why we test this | Add a detailed comment to explain why we test this
| C# | apache-2.0 | richardlawley/stripe.net,stripe/stripe-dotnet |
c62779b03739388c3ada79a6a030531cb36486f5 | src/NesZord.Core/Properties/AssemblyInfo.cs | src/NesZord.Core/Properties/AssemblyInfo.cs | using System.Resources;
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.
[ass... | using System.Resources;
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.
[ass... | Enable NesZord.Tests to se internal members of NesZord.Core | Enable NesZord.Tests to se internal members of NesZord.Core
| C# | apache-2.0 | rmterra/NesZord |
f1117eb95074884465d7964acb6115797dded84e | src/RazorLight/Extensions/TypeExtensions.cs | src/RazorLight/Extensions/TypeExtensions.cs | using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
namespace RazorLight.Extensions
{
public static class TypeExtensions
{
public static ExpandoObject ToExpando(this object anonymousObject)
{
... | using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
namespace RazorLight.Extensions
{
public static class TypeExtensions
{
public static ExpandoObject ToExpando(this object anonymousObject)
{
... | Add support for nested anonymous models | Add support for nested anonymous models
| C# | apache-2.0 | toddams/RazorLight,toddams/RazorLight |
74d724bb076a82e39b423f4d29ec3457ebf63c77 | src/Core/Extensions/FilterBooleanExtensions.cs | src/Core/Extensions/FilterBooleanExtensions.cs | using UnityEngine;
namespace PrepareLanding.Core.Extensions
{
public static class FilterBooleanExtensions
{
public static string ToStringHuman(this FilterBoolean filterBool)
{
switch (filterBool)
{
case FilterBoolean.AndFiltering:
ret... | using UnityEngine;
using Verse;
namespace PrepareLanding.Core.Extensions
{
public static class FilterBooleanExtensions
{
public static string ToStringHuman(this FilterBoolean filterBool)
{
switch (filterBool)
{
case FilterBoolean.AndFiltering:
... | Allow translation of boolean filtering text. | Allow translation of boolean filtering text.
| C# | mit | neitsa/PrepareLanding,neitsa/PrepareLanding |
d8b3ffa06e72f5ae415e8e402ace4a6839aa0ae3 | src/OpenSage.Game/Utilities/PlatformUtility.cs | src/OpenSage.Game/Utilities/PlatformUtility.cs | using System;
using System.Runtime.InteropServices;
namespace OpenSage.Utilities
{
public static class PlatformUtility
{
/// <summary>
/// Check if current platform is windows
/// </summary>
/// <returns></returns>
public static bool IsWindowsPlatform()
{
... | using System;
using System.Runtime.InteropServices;
namespace OpenSage.Utilities
{
public static class PlatformUtility
{
/// <summary>
/// Check if current platform is windows
/// </summary>
/// <returns></returns>
public static bool IsWindowsPlatform()
{
... | Use correct Gnome3 default DPI | Use correct Gnome3 default DPI
| C# | mit | feliwir/openSage,feliwir/openSage |
91d572235eaf43a2ca9eb1ad562849322cd43468 | Plugins/PluginScriptGenerator.cs | Plugins/PluginScriptGenerator.cs | using System.Text;
using TweetDuck.Plugins.Enums;
namespace TweetDuck.Plugins{
static class PluginScriptGenerator{
public static string GenerateConfig(PluginConfig config){
return config.AnyDisabled ? "window.TD_PLUGINS.disabled = [\""+string.Join("\",\"", config.DisabledPlugins)+"\"];" : stri... | using System.Globalization;
using TweetDuck.Plugins.Enums;
namespace TweetDuck.Plugins{
static class PluginScriptGenerator{
public static string GenerateConfig(PluginConfig config){
return config.AnyDisabled ? "window.TD_PLUGINS.disabled = [\""+string.Join("\",\"", config.DisabledPlugins)+"\"]... | Make $id and $token properties in plugin objects unmodifiable | Make $id and $token properties in plugin objects unmodifiable
| C# | mit | chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck |
634a77748ab4fc326e4d227ec84d7404d21f0b7d | src/OmniSharp.Abstractions/Models/Request.cs | src/OmniSharp.Abstractions/Models/Request.cs | using System.Collections.Generic;
using Newtonsoft.Json;
namespace OmniSharp.Models
{
public class Request : SimpleFileRequest
{
[JsonConverter(typeof(ZeroBasedIndexConverter))]
public int Line { get; set; }
[JsonConverter(typeof(ZeroBasedIndexConverter))]
public int Column { ge... | using System.Collections.Generic;
using Newtonsoft.Json;
namespace OmniSharp.Models
{
public class Request : SimpleFileRequest
{
[JsonConverter(typeof(ZeroBasedIndexConverter))]
public int Line { get; set; }
[JsonConverter(typeof(ZeroBasedIndexConverter))]
public int Column { ge... | Make ApplyChangesTogether automatically filled to false if not present. | Make ApplyChangesTogether automatically filled to false if not present.
| C# | mit | OmniSharp/omnisharp-roslyn,OmniSharp/omnisharp-roslyn |
426498a203d65c664829f8a255c5589ea9234782 | src/LibYear.Lib/FileTypes/ProjectJsonFile.cs | src/LibYear.Lib/FileTypes/ProjectJsonFile.cs | using System.Collections.Generic;
using System.IO;
using System.Linq;
using Newtonsoft.Json.Linq;
namespace LibYear.Lib.FileTypes
{
public class ProjectJsonFile : IProjectFile
{
private string _fileContents;
public string FileName { get; }
public IDictionary<string, PackageVersion> Pack... | using System.Collections.Generic;
using System.IO;
using System.Linq;
using Newtonsoft.Json.Linq;
namespace LibYear.Lib.FileTypes
{
public class ProjectJsonFile : IProjectFile
{
private string _fileContents;
public string FileName { get; }
public IDictionary<string, PackageVersion> Packages { get; }
private ... | Fix JSON file locking issue | Fix JSON file locking issue
| C# | mit | stevedesmond-ca/dotnet-libyear |
f0558a7b59d2a5904176a69f57834ca639d4850b | 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... | Add example for state init option to quick-start guide example project. | [DOC] Add example for state init option to quick-start guide example project.
| C# | apache-2.0 | Learnosity/learnosity-sdk-asp.net,Learnosity/learnosity-sdk-asp.net,Learnosity/learnosity-sdk-asp.net |
a6a67cf03159bc1085b2f9c1887f09ccaf59bba0 | DesktopWidgets/Widgets/RSSFeed/Metadata.cs | DesktopWidgets/Widgets/RSSFeed/Metadata.cs | namespace DesktopWidgets.Widgets.RSSFeed
{
public static class Metadata
{
public const string FriendlyName = "RSS Headlines";
}
} | namespace DesktopWidgets.Widgets.RSSFeed
{
public static class Metadata
{
public const string FriendlyName = "RSS Feed";
}
} | Change "RSS Headlines" widget name | Change "RSS Headlines" widget name
| C# | apache-2.0 | danielchalmers/DesktopWidgets |
93edc93c0cb26f3f6933b071b9f78b3614dcc58d | src/live.asp.net/Views/Shared/_AnalyticsHead.cshtml | src/live.asp.net/Views/Shared/_AnalyticsHead.cshtml | @using Microsoft.ApplicationInsights.Extensibility
@inject TelemetryConfiguration TelemetryConfiguration
<environment names="Production">
<script type="text/javascript">
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
... | @using Microsoft.ApplicationInsights.Extensibility
@inject TelemetryConfiguration TelemetryConfiguration
<environment names="Production">
<script type="text/javascript">
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
... | Add new Google Analytics tracking ID | Add new Google Analytics tracking ID | C# | mit | aspnet/live.asp.net,reactiveui/website,reactiveui/website,sejka/live.asp.net,pakrym/kudutest,aspnet/live.asp.net,pakrym/kudutest,reactiveui/website,aspnet/live.asp.net,reactiveui/website,sejka/live.asp.net |
4ee99a3fe2802f7263bc787c212ecf2b89d3002b | WordPressRestApi/Properties/AssemblyInfo.cs | WordPressRestApi/Properties/AssemblyInfo.cs | using System.Resources;
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... | using System.Resources;
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... | Package rename and add support for Media | Package rename and add support for Media
| C# | apache-2.0 | wbsimms/WordPressRestApi |
8cb2b512376e63c21e352b7326c98b8c1af37c66 | Common/Data/Custom/Intrinio/IntrinioConfig.cs | Common/Data/Custom/Intrinio/IntrinioConfig.cs | using System;
using QuantConnect.Parameters;
using QuantConnect.Util;
namespace QuantConnect.Data.Custom.Intrinio
{
/// <summary>
/// Auxiliary class to access all Intrinio API data.
/// </summary>
public static class IntrinioConfig
{
/// <summary>
/// </summary>
public... | using System;
using QuantConnect.Parameters;
using QuantConnect.Util;
namespace QuantConnect.Data.Custom.Intrinio
{
/// <summary>
/// Auxiliary class to access all Intrinio API data.
/// </summary>
public static class IntrinioConfig
{
/// <summary>
/// </summary>
public... | Increment Intrinio time between calls to 1 minute | Increment Intrinio time between calls to 1 minute
The actual implementation uses the Intrinio `historical_data` end point and ask for CSV format. At the moment of development, the key they provided and the one used in the test has a limit of 1 call per second for the historical_data` end point`, now the key only free ... | C# | apache-2.0 | StefanoRaggi/Lean,JKarathiya/Lean,AlexCatarino/Lean,jameschch/Lean,Jay-Jay-D/LeanSTP,kaffeebrauer/Lean,StefanoRaggi/Lean,StefanoRaggi/Lean,AlexCatarino/Lean,kaffeebrauer/Lean,jameschch/Lean,jameschch/Lean,JKarathiya/Lean,QuantConnect/Lean,kaffeebrauer/Lean,jameschch/Lean,JKarathiya/Lean,Jay-Jay-D/LeanSTP,kaffeebrauer/L... |
6fcd5b195bd07c05ddb19cfd5689f7cdba5525eb | src/conekta/conekta/Models/PaymentSource.cs | src/conekta/conekta/Models/PaymentSource.cs | using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace conekta
{
public class PaymentSource : Resource
{
public string id { get; set; }
public string type { get; set; }
/* In case card token */
public string token_id { get; set; }
/* In case card object*/
p... | using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace conekta
{
public class PaymentSource : Resource
{
public string id { get; set; }
public string type { get; set; }
/* In case card token */
public string token_id { get; set; }
/* In case card object*/
p... | Add missing attributes to paymentSource | Add missing attributes to paymentSource | C# | mit | conekta/conekta-.net |
135df8c9cdb8287a2ca408492ca7306a9db1e1a2 | dist/Vidyano.Web2/Web2ControllerFactory.cs | dist/Vidyano.Web2/Web2ControllerFactory.cs | using System.Web.Http;
using System.Web.Routing;
namespace Vidyano.Web2
{
public static class Web2ControllerFactory
{
public static void MapVidyanoWeb2Route(this RouteCollection routes, string routeTemplate = "web2/")
{
routes.MapHttpRoute("VidyanoWeb2 Vulcanize", routeTemplate + "... | using System.Web.Http;
using System.Web.Routing;
namespace Vidyano.Web2
{
public static class Web2ControllerFactory
{
public static void MapVidyanoWeb2Route(this RouteCollection routes, string routeTemplate = "web2/")
{
routes.MapHttpRoute("VidyanoWeb2 Vulcanize", routeTemplate + "... | Handle MapVidyanoWeb2Route for HttpRouteCollection as well | Handle MapVidyanoWeb2Route for HttpRouteCollection as well
| C# | mit | 2sky/Vidyano,jmptrader/Vidyano,jmptrader/Vidyano,2sky/Vidyano,2sky/Vidyano,2sky/Vidyano,2sky/Vidyano,jmptrader/Vidyano |
3358ab9f8abde79becfd4bca2a56361170aef2e1 | osu.Game.Rulesets.Osu.Tests/OsuDifficultyCalculatorTest.cs | osu.Game.Rulesets.Osu.Tests/OsuDifficultyCalculatorTest.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Difficulty;
using osu.Game.Rulesets.Osu.Difficulty;
using osu.Game.Tests.Beatmaps;
namespace osu.... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Difficulty;
using osu.Game.Rulesets.Osu.Difficulty;
using osu.Game.Tests.Beatmaps;
namespace osu.... | Adjust diffcalc test expected value | Adjust diffcalc test expected value
The difference is caused by the reworked calculateLength() of SliderPath. This comes as a result of the increased accuracy of path lengthenings due to calculating the final position relative to the second-to-last point, rather than relative to the last point.
| C# | mit | 2yangk23/osu,EVAST9919/osu,ppy/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,smoogipooo/osu,peppy/osu,johnneijzen/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu-new,2yangk23/osu,peppy/osu,EVAST9919/osu,UselessToucan/osu,johnneijzen/osu |
3fee889036a322d67dec019e533e893cbf06d752 | Shippo/Track.cs | Shippo/Track.cs | using System;
using System.Collections;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Shippo {
[JsonObject (MemberSerialization.OptIn)]
public class Track : ShippoId {
[JsonProperty (PropertyName = "carrier")]
public string Carrier { get; set; }
[JsonProperty (Prop... | using System;
using System.Collections;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Shippo {
[JsonObject (MemberSerialization.OptIn)]
public class Track : ShippoId
{
[JsonProperty (PropertyName = "carrier")]
private string Carrier;
[JsonProperty (PropertyName... | Remove redundant getters and setters | Remove redundant getters and setters
| C# | apache-2.0 | goshippo/shippo-csharp-client |
d71b25589e6e404036a4522762b98847dac17c81 | OctoAwesome/OctoAwesome/PhysicalProperties.cs | OctoAwesome/OctoAwesome/PhysicalProperties.cs | namespace OctoAwesome
{
/// <summary>
/// Repräsentiert die physikalischen Eigenschaften eines Blocks/Items/...
/// </summary>
public class PhysicalProperties
{
/// <summary>
/// Härte
/// </summary>
public float Hardness { get; set; }
/// <summary>
... | namespace OctoAwesome
{
/// <summary>
/// Repräsentiert die physikalischen Eigenschaften eines Blocks/Items/...
/// </summary>
public class PhysicalProperties
{
/// <summary>
/// Härte, welche Materialien können abgebaut werden
/// </summary>
public float Hardness { ... | Add comments to physical props | Add comments to physical props
* Add comments to the physical props so we know in future what we find out today 😀
Co-authored-by: susch19 <bae0fb0a2bea97e664e26778477eb5557a713d80@ist-einmalig.de>
| C# | mit | OctoAwesome/octoawesome,OctoAwesome/octoawesome |
6ed95029837b3051682c1f2d75a796293a65230e | osu.Framework/Bindables/ILeasedBindable.cs | osu.Framework/Bindables/ILeasedBindable.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Framework.Bindables
{
/// <summary>
/// An interface that represents a read-only leased bindable.
/// </summary>
public interface ILeasedBin... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Framework.Bindables
{
/// <summary>
/// An interface that represents a read-only leased bindable.
/// </summary>
public interface ILeasedBin... | Add generic version of interface | Add generic version of interface
| C# | mit | peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework |
7522fd495560e0ada2f59be5cb45de6d69fa3fca | MoreLinq/MoreEnumerable.cs | MoreLinq/MoreEnumerable.cs | #region License and Terms
// MoreLINQ - Extensions to LINQ to Objects
// Copyright (c) 2008 Jonathan Skeet. All rights reserved.
//
// 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
//
// ... | #region License and Terms
// MoreLINQ - Extensions to LINQ to Objects
// Copyright (c) 2008 Jonathan Skeet. All rights reserved.
//
// 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
//
// ... | Remove file structure comment from doc summary | Remove file structure comment from doc summary
| C# | apache-2.0 | ddpruitt/morelinq,ddpruitt/morelinq,morelinq/MoreLINQ,morelinq/MoreLINQ,fsateler/MoreLINQ,fsateler/MoreLINQ |
15fad097aa95bfdbf1f681685bfafbf1d05b4aa6 | Runner.cs | Runner.cs | using System;
using System.Linq;
using System.Reflection;
namespace TDDUnit {
class Runner {
public Runner(Type exceptType) {
Suite suite = new Suite();
m_result = new Result();
foreach (Type t in Assembly.GetEntryAssembly().GetTypes()) {
if (t.Name.StartsWith("Test") && t.Name != exc... | using System;
using System.Linq;
using System.Reflection;
namespace TDDUnit {
class Runner {
public Runner(Type callingType) {
Suite suite = new Suite();
m_result = new Result();
Type[] forbiddenTypes = new Type[] {
callingType
, typeof (TDDUnit.WasRunObj)
, typeof (TDDUnit... | Add test cases based on inheritance from Case | Add test cases based on inheritance from Case
Make the Runner object add test cases based on their inheritance from
the base Case class. With this method, we have to forbid the object
from adding the tests of its calling type (since they're already
being run), and of a couple of helper types that we use to te... | C# | apache-2.0 | yawaramin/TDDUnit |
fea782a2b3d7c2564798a54f52473dc3bc4c07be | src/Stripe.net/Entities/StripeCoupon.cs | src/Stripe.net/Entities/StripeCoupon.cs | namespace Stripe
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
public class StripeCoupon : StripeEntityWithId, ISupportMetadata
{
[JsonProperty("object")]
public string Object { get; set; }
[JsonProperty("amount_o... | namespace Stripe
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
public class StripeCoupon : StripeEntityWithId, ISupportMetadata
{
[JsonProperty("object")]
public string Object { get; set; }
[JsonProperty("amount_o... | Fix the Coupon resource as percent_off is now a decimal | Fix the Coupon resource as percent_off is now a decimal
| C# | apache-2.0 | stripe/stripe-dotnet,richardlawley/stripe.net |
4395d77667afd7a9106a7a37d08531bcc14d3a5b | MitternachtWeb/Startup.cs | MitternachtWeb/Startup.cs | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace MitternachtWeb {
public class Startup {
public Startup(IConfiguration configuration) {
Configuration = co... | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Hosting;
using System.Linq;
namespace MitternachtWeb {
public class St... | Add the MitternachtBot instance and its services to the ASP.NET services. | Add the MitternachtBot instance and its services to the ASP.NET services.
| C# | mit | Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW |
152a782cc3dcbec3c015c5046da112d9762a53c1 | PhotoOrganizer/Program.cs | PhotoOrganizer/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using CommandLine.Text;
namespace PhotoOrganizer
{
class Program
{
static void Main(string[] args)
{
var opts = new CommandLineOptions();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using CommandLine.Text;
namespace PhotoOrganizer
{
class Program
{
static void Main(string[] args)
{
var opts = new CommandLineOptions();
... | Add warning on delete from source | Add warning on delete from source
| C# | mit | rgregg/photo-organizer |
5871b9af2368a2473a8e8c6620cbeb95682ef01c | src/Orchard.Web/Program.cs | src/Orchard.Web/Program.cs | using System.IO;
using Microsoft.AspNetCore.Hosting;
using Orchard.Hosting;
using Orchard.Web;
namespace Orchard.Console
{
public class Program
{
public static void Main(string[] args)
{
var currentDirectory = Directory.GetCurrentDirectory();
var host = new WebHostBuil... | using System.IO;
using Microsoft.AspNetCore.Hosting;
using Orchard.Hosting;
using Orchard.Web;
namespace Orchard.Console
{
public class Program
{
public static void Main(string[] args)
{
var currentDirectory = Directory.GetCurrentDirectory();
var host = new WebHostBuil... | Revert "make command line host non blocking" | Revert "make command line host non blocking"
This reverts commit ac8634448e72602545e0c886403ab185b89d75d6.
It prevented the web process to be started
| C# | bsd-3-clause | xkproject/Orchard2,petedavis/Orchard2,petedavis/Orchard2,xkproject/Orchard2,alexbocharov/Orchard2,lukaskabrt/Orchard2,xkproject/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2,xkproject/Orchard2,stevetayloruk/Orchard2,jtkech/Orchard2,alexbocharov/Orchard2,yiji/Orchard2,jtkech/Orchard2,lukaskabrt/Orchard2,Orchard... |
15d33d4a03eab711d3312719af12d63198da94dd | sample-app/CafeTests/AddingEventHandlers.cs | sample-app/CafeTests/AddingEventHandlers.cs | using Cafe.Tab;
using Edument.CQRS;
using Events.Cafe;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFrontend;
namespace CafeTests
{
[TestFixture]
public class AddingEventHandlers
{
[Test]
... | using Cafe.Tab;
using Edument.CQRS;
using Events.Cafe;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFrontend;
namespace CafeTests
{
[TestFixture]
public class AddingEventHandlers
{
private static... | Refactor the arrange part of the test | Refactor the arrange part of the test
| C# | bsd-3-clause | GoodSoil/cqrs-starter-kit,GoodSoil/cqrs-starter-kit |
9f353507afdafb767241f50e6b4b5d3bc5055090 | test/test-library/EnvironmentTests.cs | test/test-library/EnvironmentTests.cs | using Xunit;
using Squirrel;
using Squirrel.Nodes;
namespace Tests
{
public class EnvironmentTests
{
private static readonly string TestVariableName = "x";
private static readonly INode TestVariableValue = new IntegerNode(1);
[Fact]
public void TestGetValueFromCurrentEnvironmen... | using Xunit;
using Squirrel;
using Squirrel.Nodes;
namespace Tests
{
public class EnvironmentTests
{
private static readonly string TestVariableName = "x";
private static readonly INode TestVariableValue = new IntegerNode(1);
[Fact]
public void TestCanGetValueFromCurrentEnviron... | Create negative test for getting values from nested environments | Create negative test for getting values from nested environments
| C# | mit | escamilla/squirrel |
5a2c8b29151d186570f36323835c8c0c2618fec2 | src/ChessVariantsTraining/Models/Variant960/Clock.cs | src/ChessVariantsTraining/Models/Variant960/Clock.cs | using MongoDB.Bson.Serialization.Attributes;
using System.Diagnostics;
namespace ChessVariantsTraining.Models.Variant960
{
public class Clock
{
Stopwatch stopwatch;
[BsonElement("secondsLeftAfterLatestMove")]
public double SecondsLeftAfterLatestMove
{
get;
... | using MongoDB.Bson.Serialization.Attributes;
using System.Diagnostics;
namespace ChessVariantsTraining.Models.Variant960
{
public class Clock
{
Stopwatch stopwatch;
[BsonElement("secondsLeftAfterLatestMove")]
public double SecondsLeftAfterLatestMove
{
get;
... | Reset stopwatch on Start instead of Pause | Reset stopwatch on Start instead of Pause
| C# | agpl-3.0 | Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training |
fbf3c0130bc9776f30e1044222e47a4b568f17b0 | NBi.genbiL/Parser/Action.cs | NBi.genbiL/Parser/Action.cs | using NBi.GenbiL.Action;
using Sprache;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBi.GenbiL.Parser
{
class Action
{
public readonly static Parser<IAction> Parser =
(
from sentence in Case.Parse... | using NBi.GenbiL.Action;
using Sprache;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBi.GenbiL.Parser
{
class Action
{
public readonly static Parser<IAction> Parser =
(
from sentence in Case.Parse... | Add VariableParser to the main parser | Add VariableParser to the main parser
| C# | apache-2.0 | Seddryck/NBi,Seddryck/NBi |
115e08d0c86a2620ac86ab6e4e48940f0a85b904 | Wox.Infrastructure/Http/HttpRequest.cs | Wox.Infrastructure/Http/HttpRequest.cs | using System;
using System.IO;
using System.Net;
using System.Text;
using Wox.Plugin;
namespace Wox.Infrastructure.Http
{
public class HttpRequest
{
public static string Get(string url, string encoding = "UTF8")
{
return Get(url, encoding, HttpProxy.Instance);
}
pr... | using System;
using System.IO;
using System.Net;
using System.Text;
using Wox.Plugin;
namespace Wox.Infrastructure.Http
{
public class HttpRequest
{
public static string Get(string url, string encoding = "UTF-8")
{
return Get(url, encoding, HttpProxy.Instance);
}
p... | Fix a http request issues. | Fix a http request issues.
| C# | mit | Wox-launcher/Wox,qianlifeng/Wox,qianlifeng/Wox,qianlifeng/Wox,lances101/Wox,Wox-launcher/Wox,lances101/Wox |
489014e018183b1c6a0c1a82dd6b87fa6a5d7542 | NBi.Core/Batch/SqlServer/BatchRunCommand.cs | NBi.Core/Batch/SqlServer/BatchRunCommand.cs | using Microsoft.SqlServer.Management.Smo;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBi.Core.Batch.SqlServer
{
class BatchRunCommand : IDecorationCommandImplementation
... | using Microsoft.SqlServer.Management.Smo;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBi.Core.Batch.SqlServer
{
class BatchRunCommand : IDecoration... | Add trace to check effective bug | Add trace to check effective bug
| C# | apache-2.0 | Seddryck/NBi,Seddryck/NBi |
f6303a28558cba4a0eee8b4b5695d18789d4e4f4 | osu.Game/Screens/BlurrableBackgroundScreen.cs | osu.Game/Screens/BlurrableBackgroundScreen.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Transforms;
using osu.Game.Graphics.Backgrounds;
using osuTK;
namespace osu.Game.Screens
{
public abstrac... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Transforms;
using osu.Game.Graphics.Backgrounds;
using osuTK;
namespace osu.Game.Screens
{
public abstrac... | Fix songselect blur potentially never being applied | Fix songselect blur potentially never being applied
| C# | mit | 2yangk23/osu,peppy/osu,UselessToucan/osu,ppy/osu,naoey/osu,ppy/osu,smoogipoo/osu,johnneijzen/osu,smoogipoo/osu,EVAST9919/osu,peppy/osu,smoogipoo/osu,EVAST9919/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,naoey/osu,ppy/osu,peppy/osu-new,ZLima12/osu,NeoAdonis/osu,DrabWeb/osu,NeoAdonis/osu,peppy/osu,johnneijzen/o... |
f2aa695836cbf98827b64dc290ac9b14cda90c4a | src/DbLocalizationProvider/DataAnnotations/ModelMetadataLocalizationHelper.cs | src/DbLocalizationProvider/DataAnnotations/ModelMetadataLocalizationHelper.cs | using System;
using DbLocalizationProvider.Internal;
namespace DbLocalizationProvider.DataAnnotations
{
internal class ModelMetadataLocalizationHelper
{
internal static string GetTranslation(string resourceKey)
{
var result = resourceKey;
if(!ConfigurationContext.Current... | using System;
using DbLocalizationProvider.Internal;
namespace DbLocalizationProvider.DataAnnotations
{
internal class ModelMetadataLocalizationHelper
{
internal static string GetTranslation(string resourceKey)
{
var result = resourceKey;
if(!ConfigurationContext.Current... | Reformat code in metdata provider | Reformat code in metdata provider
| C# | apache-2.0 | valdisiljuconoks/LocalizationProvider |
88b5567bcabd3a7db4115d74b4e31ab78ab60751 | tests/cs/delegate-typedef/DelegateTypedef.cs | tests/cs/delegate-typedef/DelegateTypedef.cs | using System;
public delegate int IntMap(int x);
public static class Program
{
private static int Apply(IntMap f, int x)
{
return f(x);
}
private static int Square(int x)
{
return x * x;
}
public static void Main()
{
Console.WriteLine(Apply(Square, 10));
}... | using System;
public delegate T2 Map<T1, T2>(T1 x);
public static class Program
{
private static int Apply(Map<int, int> f, int x)
{
return f(x);
}
private static int Square(int x)
{
return x * x;
}
public static void Main()
{
Console.WriteLine(Apply(Square, 1... | Make the delegate test more challenging | Make the delegate test more challenging
| C# | mit | jonathanvdc/ecsc |
8518535395703aeae8a0a6440c6492bed675ff3a | postalcodefinder/postalcodefinder/Properties/AssemblyInfo.cs | postalcodefinder/postalcodefinder/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("pos... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("pos... | Update company name and copyright. | Update company name and copyright.
| C# | apache-2.0 | M15sy/postalcodefinder,martincostello/postalcodefinder,martincostello/postalcodefinder,TeamArachne/postalcodefinder,TeamArachne/postalcodefinder,M15sy/postalcodefinder |
c1093ac52150af7fac615c3c0ad958c2108998dc | ReverseWords/LinkedListInOrderInsertion/LinkedList.cs | ReverseWords/LinkedListInOrderInsertion/LinkedList.cs | namespace LinkedListInOrderInsertion
{
using System;
using System.Collections.Generic;
public class LinkedList
{
private Element Head = null;
private Element Iterator = new Element();
internal void Add(int value)
{
Element insertedElement = new Element { V... | namespace LinkedListInOrderInsertion
{
using System;
using System.Collections.Generic;
public class LinkedList
{
private Element Head = null;
private Element Iterator = new Element();
internal void Add(int value)
{
Element insertedElement = new Element { V... | Print in reversed order method | Print in reversed order method
| C# | apache-2.0 | ozim/CakeStuff |
c71f98bd0689661127645b8d1678e017b145d64a | osu.Framework/Graphics/DrawableExtensions.cs | osu.Framework/Graphics/DrawableExtensions.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;
namespace osu.Framework.Graphics
{
/// <summary>
/// Holds extension methods for <see cref="Drawable"/>.
/// </summary>
public static class... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Development;
using osu.Framework.Graphics.Containers;
namespace osu.Framework.Graphics
{
/// <summary>
/// Holds extension meth... | Add extension methods to run guaranteed synchronous disposal | Add extension methods to run guaranteed synchronous disposal
Intended to be a temporary resolution to cases we need to ensure
components are disposed on the update thread. Should be used from
methods like `Screen.OnExiting` to force immediate cleanup of a child
drawable.
| C# | mit | peppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework |
9bf20da25f074cb1e84a1e3912d22c035cb2fa48 | Orders.com.Core/Extensions/DateExtensions.cs | Orders.com.Core/Extensions/DateExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public static class Extensions
{
public static DayResult Days(this int days)
{
return new DayResult(days);
}
public static YearResult Years(this int years)
{
retur... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public static class Extensions
{
public static MinuteResult Minutes(this int minutes)
{
return new MinuteResult(minutes);
}
public static DayResult Days(this int days)
{
... | Add support for minutes in date extensions | Add support for minutes in date extensions
| C# | mit | ahanusa/facile.net,peasy/Samples,ahanusa/Peasy.NET,peasy/Samples,peasy/Peasy.NET,peasy/Samples |
bfa275ad1c32e0cda7eab918a8de14d7269f0491 | osu.Game/Users/UserStatistics.cs | osu.Game/Users/UserStatistics.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using Newtonsoft.Json;
namespace osu.Game.Users
{
public class UserStatistics
{
[JsonProperty(@"level")]
public LevelInfo Level;
... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using Newtonsoft.Json;
namespace osu.Game.Users
{
public class UserStatistics
{
[JsonProperty(@"level")]
public LevelInfo Level;
... | Change some small classes to struct to avoid potential null check. | Change some small classes to struct to avoid potential null check.
| C# | mit | UselessToucan/osu,johnneijzen/osu,EVAST9919/osu,UselessToucan/osu,2yangk23/osu,ppy/osu,naoey/osu,DrabWeb/osu,smoogipoo/osu,naoey/osu,EVAST9919/osu,2yangk23/osu,ZLima12/osu,peppy/osu-new,Damnae/osu,smoogipooo/osu,ppy/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,Drezi126/osu,ZLima12/osu,Nabile-Rahmani/osu,johnneijzen/osu,pe... |
cbde90e5ed1119332cd5b19f6958fdfc5814a544 | ConsoleTesting/WhistTest.cs | ConsoleTesting/WhistTest.cs | // WhistTest.cs
// <copyright file="WhistTest.cs"> This code is protected under the MIT License. </copyright>
using System;
using CardGames.Whist;
namespace ConsoleTesting
{
/// <summary>
/// The whist test class
/// </summary>
public class WhistTest : IGameTest
{
/// <summary>... | // WhistTest.cs
// <copyright file="WhistTest.cs"> This code is protected under the MIT License. </copyright>
using System;
using CardGames.Whist;
namespace ConsoleTesting
{
/// <summary>
/// The whist test class
/// </summary>
public class WhistTest : IGameTest
{
/// <summary>... | Add english as well as german | Add english as well as german | C# | mit | ashfordl/cards |
c87d27a7ce47ec4208c60a4aec188081e03d105a | Build/AssemblyInfoCommon.cs | Build/AssemblyInfoCommon.cs | // <copyright>
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// The following assembly information is common to all Python Tools for Visual
// Studio assemblies.
// If you g... | // <copyright>
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// The following assembly information is common to all Python Tools for Visual
// Studio assemblies.
// If you g... | Update the Copyright year to 2013 | Update the Copyright year to 2013
| C# | apache-2.0 | fjxhkj/PTVS,fjxhkj/PTVS,jkorell/PTVS,modulexcite/PTVS,gomiero/PTVS,int19h/PTVS,DinoV/PTVS,gilbertw/PTVS,DinoV/PTVS,msunardi/PTVS,denfromufa/PTVS,DinoV/PTVS,jkorell/PTVS,Microsoft/PTVS,gilbertw/PTVS,huguesv/PTVS,jkorell/PTVS,DEVSENSE/PTVS,zooba/PTVS,mlorbetske/PTVS,DEVSENSE/PTVS,dut3062796s/PTVS,fjxhkj/PTVS,Habatchii/PT... |
b28ff45d8f126fcd62f048945ba017ff68b57e8b | osu!StreamCompanion/Code/Core/Loggers/SentryLogger.cs | osu!StreamCompanion/Code/Core/Loggers/SentryLogger.cs | using System;
using System.Collections.Generic;
using osu_StreamCompanion.Code.Helpers;
using Sentry;
using StreamCompanionTypes.Enums;
using StreamCompanionTypes.Interfaces.Services;
namespace osu_StreamCompanion.Code.Core.Loggers
{
public class SentryLogger : IContextAwareLogger
{
public static stri... | using System;
using System.Collections.Generic;
using osu_StreamCompanion.Code.Helpers;
using Sentry;
using StreamCompanionTypes.Enums;
using StreamCompanionTypes.Interfaces.Services;
namespace osu_StreamCompanion.Code.Core.Loggers
{
public class SentryLogger : IContextAwareLogger
{
public static stri... | Update sentry to send data necessary for linking events with users | Misc: Update sentry to send data necessary for linking events with users
Example event data that is being sent: https://gist.github.com/Piotrekol/147a93588aaeb489011cc79983dca90e
| C# | mit | Piotrekol/StreamCompanion,Piotrekol/StreamCompanion |
2c1c2530972922640e393f9e28c0f423818a44cc | src/Slack.Webhooks/Properties/AssemblyInfo.cs | src/Slack.Webhooks/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Sl... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Sl... | Make internals visible to the testing project | Make internals visible to the testing project
| C# | mit | nerdfury/Slack.Webhooks,nerdfury/Slack.Webhooks |
a64aa5bafc690ea044c1675d6361d78b22b39ad7 | src/SFA.DAS.EmployerUsers.Domain/Auditing/AccountLockedAuditMessage.cs | src/SFA.DAS.EmployerUsers.Domain/Auditing/AccountLockedAuditMessage.cs | using System.Collections.Generic;
using SFA.DAS.Audit.Types;
namespace SFA.DAS.EmployerUsers.Domain.Auditing
{
public class AccountLockedAuditMessage : EmployerUsersAuditMessage
{
public AccountLockedAuditMessage(User user)
{
Category = "ACCOUNT_LOCKED";
Descr... | using System.Collections.Generic;
using SFA.DAS.Audit.Types;
namespace SFA.DAS.EmployerUsers.Domain.Auditing
{
public class AccountLockedAuditMessage : EmployerUsersAuditMessage
{
public AccountLockedAuditMessage(User user)
{
Category = "ACCOUNT_LOCKED";
Descr... | Add IsLocked to audit for account locked message | Add IsLocked to audit for account locked message
| C# | mit | SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers |
482e34cd95cf01a54cee426bb25cbbd027f38531 | src/FluentMigrator.Runner/Generators/Jet/JetQuoter.cs | src/FluentMigrator.Runner/Generators/Jet/JetQuoter.cs | using System;
using FluentMigrator.Runner.Generators.Generic;
namespace FluentMigrator.Runner.Generators.Jet
{
public class JetQuoter : GenericQuoter
{
public override string OpenQuote { get { return "["; } }
public override string CloseQuote { get { return "]"; } }
public override s... | using System;
using FluentMigrator.Runner.Generators.Generic;
namespace FluentMigrator.Runner.Generators.Jet
{
public class JetQuoter : GenericQuoter
{
public override string OpenQuote { get { return "["; } }
public override string CloseQuote { get { return "]"; } }
public override s... | Change date format to iso format | Change date format to iso format
| C# | apache-2.0 | daniellee/fluentmigrator,FabioNascimento/fluentmigrator,MetSystem/fluentmigrator,dealproc/fluentmigrator,lcharlebois/fluentmigrator,bluefalcon/fluentmigrator,KaraokeStu/fluentmigrator,fluentmigrator/fluentmigrator,fluentmigrator/fluentmigrator,barser/fluentmigrator,mstancombe/fluentmig,DefiSolutions/fluentmigrator,toha... |
7e5a2f1710946038d91ee3a204c4c8205a57b7b7 | mscorlib/system/notsupportedexception.cs | mscorlib/system/notsupportedexception.cs | // ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*=============================================================================
**
** Class: NotSupportedException
**
**
** Purpose: For methods that should be implemented on subclasses.
**
**
===================================... | // ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*=============================================================================
**
** Class: NotSupportedException
**
**
** Purpose: For methods that should be implemented on subclasses.
**
**
===================================... | Make NotSupportedException partial to allow XI to add an helper method | [mscorlib] Make NotSupportedException partial to allow XI to add an helper method
| C# | mit | esdrubal/referencesource,evincarofautumn/referencesource,mono/referencesource,ludovic-henry/referencesource,directhex/referencesource,stormleoxia/referencesource |
1b0e7cb1da116e33303d7873c40500ce4dc21db9 | SupportManager.Web/Infrastructure/ApiKey/ApiKeyAuthenticationHandler.cs | SupportManager.Web/Infrastructure/ApiKey/ApiKeyAuthenticationHandler.cs | using System.Data.Entity;
using System.Linq;
using System.Security.Claims;
using System.Text.Encodings.Web;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using SupportManager.DAL;
namespace SupportManager.Web.Infrastruc... | using System.Data.Entity;
using System.Linq;
using System.Security.Claims;
using System.Text.Encodings.Web;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using SupportManager.DAL;
namespace SupportManager.Web.Infrastruc... | Support API Key authentication using header | Support API Key authentication using header
| C# | mit | mycroes/SupportManager,mycroes/SupportManager,mycroes/SupportManager |
0801ebc93bd8844aea371f922a424902dbec0377 | test/Telegram.Bot.Tests.Unit/Serialization/MethodNameTests.cs | test/Telegram.Bot.Tests.Unit/Serialization/MethodNameTests.cs | using Newtonsoft.Json;
using Telegram.Bot.Requests;
using Xunit;
namespace Telegram.Bot.Tests.Unit.Serialization
{
public class MethodNameTests
{
[Fact(DisplayName = "Should serialize method name in webhook responses")]
public void Should_Serialize_MethodName_In_Webhook_Responses()
{
... | using Newtonsoft.Json;
using Telegram.Bot.Requests;
using Xunit;
namespace Telegram.Bot.Tests.Unit.Serialization
{
public class MethodNameTests
{
[Fact(DisplayName = "Should serialize method name in webhook responses")]
public void Should_Serialize_MethodName_In_Webhook_Responses()
{
... | Remove var keyword in tests | Remove var keyword in tests
| C# | mit | TelegramBots/telegram.bot,MrRoundRobin/telegram.bot |
b01aa1f6c994781550b8ac3b9cc016d28ba3dfe1 | Source/Reflection/fsTypeLookup.cs | Source/Reflection/fsTypeLookup.cs | using System;
using System.Reflection;
namespace FullSerializer.Internal {
/// <summary>
/// Provides APIs for looking up types based on their name.
/// </summary>
internal static class fsTypeLookup {
public static Type GetType(string typeName) {
//--
// see
... | using System;
using System.Reflection;
namespace FullSerializer.Internal {
/// <summary>
/// Provides APIs for looking up types based on their name.
/// </summary>
internal static class fsTypeLookup {
/// <summary>
/// Attempts to lookup the given type. Returns null if the type lookup ... | Fix buggy type lookup when Type.FindType fails | Fix buggy type lookup when Type.FindType fails
| C# | mit | nuverian/fullserializer,jacobdufault/fullserializer,shadowmint/fullserializer,jagt/fullserializer,Ksubaka/fullserializer,lazlo-bonin/fullserializer,shadowmint/fullserializer,jagt/fullserializer,karlgluck/fullserializer,Ksubaka/fullserializer,shadowmint/fullserializer,darress/fullserializer,Ksubaka/fullserializer,jacobd... |
cac8255904a3381233d8f276266f6d95d5528b59 | Framework/Lokad.Cqrs.Azure.Tests/MiscTests.cs | Framework/Lokad.Cqrs.Azure.Tests/MiscTests.cs | using Lokad.Cqrs.Build.Engine;
using NUnit.Framework;
namespace Lokad.Cqrs
{
[TestFixture]
public sealed class MiscTests
{
// ReSharper disable InconsistentNaming
[Test]
public void Azure_queues_regex_is_valid()
{
Assert.IsTrue(AzureEngineModule.QueueName.IsMatch... | using Lokad.Cqrs.Build.Engine;
using NUnit.Framework;
namespace Lokad.Cqrs
{
[TestFixture]
public sealed class MiscTests
{
// ReSharper disable InconsistentNaming
[Test]
public void Azure_queues_regex_is_valid()
{
Assert.IsTrue(AzureEngineModule.QueueName.IsMatch... | Verify that "to-project" is a valid queue name | Verify that "to-project" is a valid queue name
| C# | bsd-3-clause | modulexcite/lokad-cqrs |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.