commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
43201625c4eed27bfa19c63c38bcda26fb371538 | Fix typo in GetOptimalStringAlignmentDistance doc | MarinAtanasov/AppBrix.NetCore,MarinAtanasov/AppBrix | Modules/AppBrix.Text/IStringDistanceService.cs | Modules/AppBrix.Text/IStringDistanceService.cs | // Copyright (c) MarinAtanasov. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the project root for license information.
//
namespace AppBrix.Text
{
/// <summary>
/// Service for getting the distance between strings.
/// </summary>
public interface IStringDistanceServi... | // Copyright (c) MarinAtanasov. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the project root for license information.
//
namespace AppBrix.Text
{
/// <summary>
/// Service for getting the distance between strings.
/// </summary>
public interface IStringDistanceServi... | mit | C# |
977fffb4697d0bb4e8c6cfa3b76dbc30ffd0211d | Add OrganizationName to OrderAddressDetails (#166) | Viincenttt/MollieApi,Viincenttt/MollieApi | Mollie.Api/Models/Order/OrderAddressDetails.cs | Mollie.Api/Models/Order/OrderAddressDetails.cs | namespace Mollie.Api.Models.Order {
public class OrderAddressDetails : AddressObject {
/// <summary>
/// The person’s organization, if applicable.
/// </summary>
public string OrganizationName { get; set; }
/// <summary>
/// The title of the person, for example Mr. ... | namespace Mollie.Api.Models.Order {
public class OrderAddressDetails : AddressObject {
/// <summary>
/// The title of the person, for example Mr. or Mrs..
/// </summary>
public string Title { get; set; }
/// <summary>
/// The given name (first name) of the person.
... | mit | C# |
db4033d52f3f74742206f716480f166fae457521 | Improve PluralConverter for XAML | rudyhuyn/PluralNet | PluralNet.Shared/Converters/PluralConverter.cs | PluralNet.Shared/Converters/PluralConverter.cs | #if WINRT || SILVERLIGHT
using System;
using System.Globalization;
#if WINRT
using Windows.ApplicationModel.Resources;
using Windows.UI.Xaml.Data;
#elif SILVERLIGHT
using System.Windows.Data;
using System.Resources;
#endif
namespace Huyn.PluralNet.Converters
{
public class PluralConverter : IValueConverter
... | #if WINRT || SILVERLIGHT
using Huyn.PluralNet;
using System;
using System.Globalization;
#if WINRT
using Windows.ApplicationModel.Resources;
using Windows.UI.Xaml.Data;
#endif
#if SILVERLIGHT
using System.Windows.Data;
using System.Resources;
#endif
namespace Huyn.PluralNet.Converters
{
public class PluralConve... | mit | C# |
13dd4face4095db334d02db702f3a4d49c704bb8 | clean up | dkataskin/bstrkr | bstrkr.mobile/bstrkr.tests/MainViewModelTests.cs | bstrkr.mobile/bstrkr.tests/MainViewModelTests.cs | using System;
using System.Threading;
using NUnit.Framework;
using bstrkr.core.config;
using bstrkr.core.services.location;
using bstrkr.core.spatial;
using bstrkr.mvvm.viewmodels;
using bstrkr.tests.infrastructure.services;
namespace bstrkr.mobile.tests
{
[TestFixture]
public class MainViewModelTests
{
privat... | using System;
using System.Threading;
using NUnit.Framework;
using bstrkr.core.config;
using bstrkr.core.services.location;
using bstrkr.core.spatial;
using bstrkr.mvvm.viewmodels;
using bstrkr.mvvm.viewmodels;
using bstrkr.tests.infrastructure.services;
namespace bstrkr.mobile.tests
{
[TestFixture]
public class ... | bsd-2-clause | C# |
89e7ba48c01676495eb2e03993d367e9931df546 | Extend interface to support non filesystem based entries. | McNeight/SharpZipLib | src/Zip/IEntryFactory.cs | src/Zip/IEntryFactory.cs | // IEntryFactory.cs
//
// Copyright 2006 John Reilly
//
// Copyright (C) 2001 Free Software Foundation, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the Lice... | // IEntryFactory.cs
//
// Copyright 2006 John Reilly
//
// Copyright (C) 2001 Free Software Foundation, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the Lice... | mit | C# |
7fafaebcf606a8c9b35648d8315dbfc58f1d3d01 | Fix for older C# version. (#100) | jesterret/ReClass.NET,KN4CK3R/ReClass.NET,KN4CK3R/ReClass.NET,jesterret/ReClass.NET,jesterret/ReClass.NET,KN4CK3R/ReClass.NET | ReClass.NET/Extensions/XAttributeExtensions.cs | ReClass.NET/Extensions/XAttributeExtensions.cs | using System;
using System.Xml.Linq;
namespace ReClassNET.Extensions
{
public static class XAttributeExtensions
{
public static TEnum GetEnumValue<TEnum>(this XAttribute attribute) where TEnum : struct
{
TEnum @enum = default(TEnum);
if (attribute != null)
{
Enum.TryParse(attribute.Value, out @enum... | using System;
using System.Xml.Linq;
namespace ReClassNET.Extensions
{
public static class XAttributeExtensions
{
public static TEnum GetEnumValue<TEnum>(this XAttribute attribute) where TEnum : struct, Enum
{
TEnum @enum = default;
if (attribute != null)
{
Enum.TryParse(attribute.Value, out @enum)... | mit | C# |
ca20a57c2a4b3a491468708b2e797006a36a01eb | Add change missed in #6106. (#6119) | yevhen/orleans,ElanHasson/orleans,hoopsomuah/orleans,dotnet/orleans,veikkoeeva/orleans,dotnet/orleans,amccool/orleans,waynemunro/orleans,yevhen/orleans,ElanHasson/orleans,ibondy/orleans,jason-bragg/orleans,waynemunro/orleans,ReubenBond/orleans,galvesribeiro/orleans,galvesribeiro/orleans,ibondy/orleans,hoopsomuah/orlean... | Samples/3.0/HelloWorld/src/SiloHost/Program.cs | Samples/3.0/HelloWorld/src/SiloHost/Program.cs | using System.Net;
using System.Threading.Tasks;
using HelloWorld.Grains;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Orleans;
using Orleans.Configuration;
using Orleans.Hosting;
namespace OrleansSiloHost
{
public class Program
{
... | using System.Net;
using System.Threading.Tasks;
using HelloWorld.Grains;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Orleans;
using Orleans.Configuration;
using Orleans.Hosting;
namespace OrleansSiloHost
{
public class Program
{
... | mit | C# |
fc9229f562fa115f3e0d18bcb2bf661074157d2a | Update test cases again | ViveportSoftware/vita_core_csharp,ViveportSoftware/vita_core_csharp | source/Htc.Vita.Core.Tests/TestCase.UsbManager.cs | source/Htc.Vita.Core.Tests/TestCase.UsbManager.cs | using System;
using Htc.Vita.Core.IO;
using Htc.Vita.Core.Runtime;
using Xunit;
namespace Htc.Vita.Core.Tests
{
public partial class TestCase
{
[Fact]
public void UsbManager_Default_0_GetDevices()
{
if (!Platform.IsWindows)
{
return;
... | using System;
using Htc.Vita.Core.IO;
using Htc.Vita.Core.Runtime;
using Xunit;
namespace Htc.Vita.Core.Tests
{
public partial class TestCase
{
[Fact]
public void UsbManager_Default_0_GetDevices()
{
if (!Platform.IsWindows)
{
return;
... | mit | C# |
82cadea3f23d2af8d1da6f92a48b5a2f0b784d2f | Fix issues with endpoint add of alert controller. | ZooPin/CK-Glouton,ZooPin/CK-Glouton,ZooPin/CK-Glouton,ZooPin/CK-Glouton | src/CK.Glouton.Web/Controllers/AlertController.cs | src/CK.Glouton.Web/Controllers/AlertController.cs | using CK.Glouton.Model.Server.Handlers.Implementation;
using CK.Glouton.Model.Services;
using Microsoft.AspNetCore.Mvc;
namespace CK.Glouton.Web.Controllers
{
[Route( "api/alert" )]
public class AlertController : Controller
{
private readonly IAlertService _alertService;
public AlertContr... | using CK.Glouton.Model.Server.Handlers.Implementation;
using CK.Glouton.Model.Services;
using Microsoft.AspNetCore.Mvc;
namespace CK.Glouton.Web.Controllers
{
[Route( "api/alert" )]
public class AlertController : Controller
{
private readonly IAlertService _alertService;
public AlertContr... | mit | C# |
cc322956d7d0a196e4159c7b9ed3b4f3aecf77c0 | Set version 0.9.1 | hazzik/DelegateDecompiler,jaenyph/DelegateDecompiler,morgen2009/DelegateDecompiler | src/DelegateDecompiler/Properties/AssemblyInfo.cs | src/DelegateDecompiler/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: Assembly... | 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: Assembly... | mit | C# |
a171f004407218ca227cd128e8fd72e88cdb63cc | Fix broken link | martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site | src/LondonTravel.Site/Views/Shared/_Footer.cshtml | src/LondonTravel.Site/Views/Shared/_Footer.cshtml | @model SiteOptions
<hr />
<footer>
<p class="hidden-sm hidden-xs">
© @Model.Metadata.Author.Name @DateTimeOffset.UtcNow.Year |
<a asp-route="PrivacyPolicy" title="View the London Travel Alexa skill's Privacy Policy">
Privacy Policy
</a>
|
<a asp-route="Terms... | @model SiteOptions
<hr />
<footer>
<p class="hidden-sm hidden-xs">
© @Model.Metadata.Author.Name @DateTimeOffset.UtcNow.Year |
<a asp-route="PrivacyPolicy" title="View the London Travel Alexa skill's Privacy Policy">
Privacy Policy
</a>
|
<a asp-route="Terms... | apache-2.0 | C# |
ed366dc423d6755f8821d4adb1c9903816223e55 | Add 7 | wallyjue/online_judge,wallyjue/online_judge,wallyjue/online_judge,wallyjue/online_judge,wallyjue/online_judge | leetcode/C_sharp/online_judge/leetcode/easy/Problem_7.cs | leetcode/C_sharp/online_judge/leetcode/easy/Problem_7.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace online_judge.leetcode.easy
{
class Problem_7
{
public int Reverse(int x)
{
bool isNegative = x < 0;
int[] numbers = new int[10];
int decimals = 0;
int ret = 0;
... | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace online_judge.leetcode.easy
{
class Problem_7
{
public int Reverse(int x)
{
for(int radix = 0; radix < 10; radix++)
{
}
return 0;
}
}
}
| mit | C# |
f439ab6eaa61ddfb8ac37390756432657e615c0d | Fix async warning in toggle block comment. | bartdesmet/roslyn,davkean/roslyn,jmarolf/roslyn,ErikSchierboom/roslyn,brettfo/roslyn,sharwell/roslyn,physhi/roslyn,AlekseyTs/roslyn,CyrusNajmabadi/roslyn,panopticoncentral/roslyn,brettfo/roslyn,reaction1989/roslyn,diryboy/roslyn,genlu/roslyn,stephentoub/roslyn,bartdesmet/roslyn,abock/roslyn,davkean/roslyn,gafter/roslyn... | src/EditorFeatures/Core/Implementation/CommentSelection/ToggleBlockCommentCommandHandler.cs | src/EditorFeatures/Core/Implementation/CommentSelection/ToggleBlockCommentCommandHandler.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.ComponentModel.Composition;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CommentSelection;
u... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.ComponentModel.Composition;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CommentSelection;
u... | mit | C# |
6724a4cdb5d49521564c028f7fb4df74a62c1936 | test cosmetics. | modulexcite/lokad-cqrs | Framework/Lokad.Cqrs.Tests/Feature.AtomicStorage/Run_all_AtomicStorage_scenarios_on_Azure.cs | Framework/Lokad.Cqrs.Tests/Feature.AtomicStorage/Run_all_AtomicStorage_scenarios_on_Azure.cs | using System;
using Lokad.Cqrs.Build.Engine;
using Microsoft.WindowsAzure;
using NUnit.Framework;
// ReSharper disable InconsistentNaming
namespace Lokad.Cqrs.Feature.AtomicStorage
{
[TestFixture]
public sealed class Run_all_AtomicStorage_scenarios_on_Azure
{
[Test]
public vo... | using System;
using Lokad.Cqrs.Build.Engine;
using Microsoft.WindowsAzure;
using NUnit.Framework;
// ReSharper disable InconsistentNaming
namespace Lokad.Cqrs.Feature.AtomicStorage
{
[TestFixture]
public sealed class Run_all_AtomicStorage_scenarios_on_Azure
{
[Test]
public vo... | bsd-3-clause | C# |
4009952d05b3de80661f122ae299d748ddd92fae | Update VariablesExtension.cs | kasubram/vsts-agent,Microsoft/vsts-agent,lkillgore/vsts-agent,kasubram/vsts-agent,Microsoft/vsts-agent,Microsoft/vsts-agent,Microsoft/vsts-agent,lkillgore/vsts-agent,lkillgore/vsts-agent,lkillgore/vsts-agent,kasubram/vsts-agent,kasubram/vsts-agent | src/Agent.Worker/Extensions/VariablesExtension.cs | src/Agent.Worker/Extensions/VariablesExtension.cs | // TODO: Delete this file. This file unnecessarily starts a new convention (extensions namespace and variables extentension class for a function that is called from exactly one place).
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using Microsoft.TeamFoundation.DistributedTask.WebApi;
//n... | //using System;
//using System.Collections.Generic;
//using System.Linq;
//using Microsoft.TeamFoundation.DistributedTask.WebApi;
//namespace Microsoft.VisualStudio.Services.Agent.Worker.Extensions
//{
// public static class VariablesExtension
// {
// public static Dictionary<string, VariableValue> ToJobC... | mit | C# |
401cc6f0998de4150e82493558810b24a33bb8ca | update extension impl | dotnetcore/CAP,ouraspnet/cap,dotnetcore/CAP,dotnetcore/CAP | src/DotNetCore.CAP.MySql/ICapTransaction.MySql.cs | src/DotNetCore.CAP.MySql/ICapTransaction.MySql.cs | using System.Data;
using System.Diagnostics;
using Microsoft.EntityFrameworkCore.Storage;
// ReSharper disable once CheckNamespace
namespace DotNetCore.CAP
{
public class MySqlCapTransaction : CapTransactionBase
{
public MySqlCapTransaction(IDispatcher dispatcher) : base(dispatcher)
{
... | using System.Data;
using System.Diagnostics;
using Microsoft.EntityFrameworkCore.Storage;
// ReSharper disable once CheckNamespace
namespace DotNetCore.CAP
{
public class MySqlCapTransaction : CapTransactionBase
{
public MySqlCapTransaction(IDispatcher dispatcher) : base(dispatcher) { }
publi... | mit | C# |
7319c5fe9ab1ff0edddb0458abcb36cc0f7a6f0f | Fix PrintView path | InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform | InfinniPlatform.FlowDocument/PrintView/PrintViewApi.cs | InfinniPlatform.FlowDocument/PrintView/PrintViewApi.cs | using System;
using System.IO;
using InfinniPlatform.Core.Extensions;
using InfinniPlatform.Core.Metadata;
using InfinniPlatform.Core.PrintView;
using InfinniPlatform.Sdk.Dynamic;
using InfinniPlatform.Sdk.PrintView;
using InfinniPlatform.Sdk.Serialization;
namespace InfinniPlatform.FlowDocument.PrintView
{
/// ... | using System;
using System.IO;
using InfinniPlatform.Core.Extensions;
using InfinniPlatform.Core.Metadata;
using InfinniPlatform.Core.PrintView;
using InfinniPlatform.Sdk.Dynamic;
using InfinniPlatform.Sdk.PrintView;
using InfinniPlatform.Sdk.Serialization;
namespace InfinniPlatform.FlowDocument.PrintView
{
/// ... | agpl-3.0 | C# |
04fbc1a60c428fdf8716b7d9ca32fdcff5752ef1 | Add Blob property to ContentAddressableStorage | studio-nine/Nine.Storage,yufeih/Nine.Storage | src/Portable/Storage/ContentAddressableStorage.cs | src/Portable/Storage/ContentAddressableStorage.cs | namespace Nine.Storage
{
using System;
using System.IO;
using System.Security.Cryptography;
using System.Threading;
using System.Threading.Tasks;
public class ContentAddressableStorage : IContentAddressableStorage
{
private readonly IBlobStorage blob;
public IBlobStorage B... | namespace Nine.Storage
{
using System;
using System.IO;
using System.Security.Cryptography;
using System.Threading;
using System.Threading.Tasks;
public class ContentAddressableStorage : IContentAddressableStorage
{
private readonly IBlobStorage blob;
public ContentAddress... | mit | C# |
4eb25c6b34f7c6585d3215c879b6ebd6cbc56c41 | Remove unused using | ZLima12/osu-framework,ppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,peppy/osu-framework | osu.Framework/Statistics/DotNetRuntimeListener.cs | osu.Framework/Statistics/DotNetRuntimeListener.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Diagnostics.Tracing;
namespace osu.Framework.Statistics
{
// https://medium.com/criteo-labs/c-in-process-clr-event-listeners-with-net-core-2-2-ef4075c14... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Diagnostics;
using System.Diagnostics.Tracing;
namespace osu.Framework.Statistics
{
// https://medium.com/criteo-labs/c-in-process-clr-event-listeners-w... | mit | C# |
96c23d2a627ed60902897579f86b86c82a92f588 | Add override to fix left/right arrow control | EVAST9919/osu,Nabile-Rahmani/osu,ppy/osu,peppy/osu,ZLima12/osu,DrabWeb/osu,DrabWeb/osu,2yangk23/osu,smoogipooo/osu,johnneijzen/osu,2yangk23/osu,naoey/osu,peppy/osu,UselessToucan/osu,ZLima12/osu,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,EVAST9919/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,naoey/osu,NeoA... | osu.Game/Graphics/UserInterface/FocusedTextBox.cs | osu.Game/Graphics/UserInterface/FocusedTextBox.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 OpenTK.Graphics;
using OpenTK.Input;
using osu.Framework.Input;
using System;
namespace osu.Game.Graphics.UserInterface
{
/// <summary>
/// A ... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK.Graphics;
using OpenTK.Input;
using osu.Framework.Input;
using System;
namespace osu.Game.Graphics.UserInterface
{
/// <summary>
/// A ... | mit | C# |
84b3b1f8b7afeb4a427ff38c6edf0f889cd05e6c | Change assembly version to be major version | smithab/azure-sdk-for-net,jamestao/azure-sdk-for-net,shahabhijeet/azure-sdk-for-net,SiddharthChatrolaMs/azure-sdk-for-net,DheerendraRathor/azure-sdk-for-net,ahosnyms/azure-sdk-for-net,stankovski/azure-sdk-for-net,AzureAutomationTeam/azure-sdk-for-net,brjohnstmsft/azure-sdk-for-net,r22016/azure-sdk-for-net,r22016/azure-... | src/ResourceManagement/Network/Microsoft.Azure.Management.Network/Properties/AssemblyInfo.cs | src/ResourceManagement/Network/Microsoft.Azure.Management.Network/Properties/AssemblyInfo.cs | //
// Copyright (c) Microsoft. 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
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable la... | //
// Copyright (c) Microsoft. 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
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable la... | apache-2.0 | C# |
faed763192b92599f84d59f961c924f369eaac6c | Print the number of differences in the exception message | jamesfoster/DeepEqual | src/DeepEqual/Syntax/ObjectExtensions.cs | src/DeepEqual/Syntax/ObjectExtensions.cs | namespace DeepEqual.Syntax
{
using System;
using System.Diagnostics.Contracts;
using System.Text;
public static class ObjectExtensions
{
[Pure]
public static bool IsDeepEqual(this object actual, object expected)
{
var comparison = new ComparisonBuilder().Create();
return IsDeepEqual(actual, expected... | namespace DeepEqual.Syntax
{
using System;
using System.Diagnostics.Contracts;
using System.Text;
public static class ObjectExtensions
{
[Pure]
public static bool IsDeepEqual(this object actual, object expected)
{
var comparison = new ComparisonBuilder().Create();
return IsDeepEqual(actual, expected... | mit | C# |
4e706e947ddad9c6075de6a11a0cd1cbe33c9be3 | Fix signature validation to handle query params | plivo/plivo-dotnet,plivo/plivo-dotnet | src/Plivo/Utilities/XPlivoSignatureV2.cs | src/Plivo/Utilities/XPlivoSignatureV2.cs | using System;
using System.Security.Cryptography;
using System.Text;
namespace Plivo.Utilities
{
public static class XPlivoSignatureV2
{
/// <summary>
/// Compute X-Plivo-Signature-V2
/// </summary>
/// <param name="uri"></param>
/// <param name="nonce"></param>
... | using System;
using System.Security.Cryptography;
using System.Text;
namespace Plivo.Utilities
{
public static class XPlivoSignatureV2
{
/// <summary>
/// Compute X-Plivo-Signature-V2
/// </summary>
/// <param name="uri"></param>
/// <param name="nonce"></param>
... | mit | C# |
7641ca3722650ac1f6576cc62f64631494191677 | Handle change to cookie parser. | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | test/MusicStore.Spa.Test/ShoppingCartTest.cs | test/MusicStore.Spa.Test/ShoppingCartTest.cs | using System.Collections.Generic;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Core;
using Microsoft.AspNet.Http.Core.Collections;
using Xunit;
namespace MusicStore.Models
{
public class ShoppingCartTest
{
[Fact]
public void GetCartId_ReturnsCartIdFromCookies()
{
... | using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Core;
using Microsoft.AspNet.Http.Core.Collections;
using Xunit;
namespace MusicStore.Models
{
public class ShoppingCartTest
{
[Fact]
public void GetCartId_ReturnsCartIdFromCookies()
{
// Arrange
var cartI... | apache-2.0 | C# |
c8b5e7950f467e25a872bc1d1b9a574c562304b1 | 添加注释。 | yoyocms/YoYoCms.AbpProjectTemplate,yoyocms/YoYoCms.AbpProjectTemplate,yoyocms/YoYoCms.AbpProjectTemplate | src/YoYoCms.AbpProjectTemplate.EntityFramework/EntityFramework/AbpProjectTemplateDbContext.cs | src/YoYoCms.AbpProjectTemplate.EntityFramework/EntityFramework/AbpProjectTemplateDbContext.cs | using System.Data.Common;
using System.Data.Entity;
using Abp.Zero.EntityFramework;
using YoYoCms.AbpProjectTemplate.Authorization.Roles;
using YoYoCms.AbpProjectTemplate.Authorization.Users;
using YoYoCms.AbpProjectTemplate.Chat;
using YoYoCms.AbpProjectTemplate.EntityMapper.BinaryObjects;
using YoYoCms.AbpProjectTem... | using System.Data.Common;
using System.Data.Entity;
using Abp.Zero.EntityFramework;
using YoYoCms.AbpProjectTemplate.Authorization.Roles;
using YoYoCms.AbpProjectTemplate.Authorization.Users;
using YoYoCms.AbpProjectTemplate.Chat;
using YoYoCms.AbpProjectTemplate.EntityMapper.BinaryObjects;
using YoYoCms.AbpProjectTem... | apache-2.0 | C# |
a5625331a0603c76729b1b6922c59ff3a9e74c0f | Fix problem with invalid whitespaces and lower characters in input license key code | patchkit-net/patchkit-patcher-unity,patchkit-net/patchkit-patcher-unity,patchkit-net/patchkit-patcher-unity,mohsansaleem/patchkit-patcher-unity,patchkit-net/patchkit-patcher-unity,mohsansaleem/patchkit-patcher-unity | src/Assets/Scripts/Licensing/KeyLicenseObtainer.cs | src/Assets/Scripts/Licensing/KeyLicenseObtainer.cs | using System;
using System.Threading;
using UnityEngine;
using UnityEngine.UI;
namespace PatchKit.Unity.Patcher.Licensing
{
public class KeyLicenseObtainer : MonoBehaviour, ILicenseObtainer
{
private State _state = State.None;
private KeyLicense _keyLicense;
private Animator _animato... | using System;
using System.Threading;
using UnityEngine;
using UnityEngine.UI;
namespace PatchKit.Unity.Patcher.Licensing
{
public class KeyLicenseObtainer : MonoBehaviour, ILicenseObtainer
{
private State _state = State.None;
private KeyLicense _keyLicense;
private Animator _animato... | mit | C# |
4e09518059e5a787633aceaa08fd19e85e6a3717 | fix for #17 | esskar/Serialize.Linq | src/Serialize.Linq/Nodes/ListInitExpressionNode.cs | src/Serialize.Linq/Nodes/ListInitExpressionNode.cs | using System.Linq.Expressions;
using System.Runtime.Serialization;
using Serialize.Linq.Interfaces;
using Serialize.Linq.Internals;
namespace Serialize.Linq.Nodes
{
#region DataContract
#if !SERIALIZE_LINQ_OPTIMIZE_SIZE
[DataContract]
#else
[DataContract(Name = "LI")]
#endif
#endregion
public clas... | using System.Linq.Expressions;
using System.Runtime.Serialization;
using Serialize.Linq.Interfaces;
using Serialize.Linq.Internals;
namespace Serialize.Linq.Nodes
{
#region DataContract
#if !SERIALIZE_LINQ_OPTIMIZE_SIZE
[DataContract]
#else
[DataContract(Name = "LI")]
#endif
#endregion
public clas... | mit | C# |
4089ab789a16d4d4fb6eb7d58401b09ce78d9e02 | Revert "Added form initialization method in Presenter" | BartoszBaczek/WorkshopRequestsManager | Project/WorkshopManager/WorkshopManager/Forms/RequestsDatabaseView/RequestsDatabasePresenter.cs | Project/WorkshopManager/WorkshopManager/Forms/RequestsDatabaseView/RequestsDatabasePresenter.cs | namespace WorkshopManager.Forms.RequestsDatabaseView
{
public class RequestsDatabasePresenter
{
public RequestsDatabasePresenter(IRequestsDatabaseView view)
{
}
}
}
| using System;
namespace WorkshopManager.Forms.RequestsDatabaseView
{
public class RequestsDatabasePresenter
{
private IRequestsDatabaseView _view;
public RequestsDatabasePresenter(IRequestsDatabaseView view)
{
_view = view;
_view.Presenter = this;
... | mit | C# |
cf61f531bd3a6e4eadb50060125e5e8a435fd6f8 | Add INPUT union memory alignment test | vbfox/pinvoke,AArnott/pinvoke,jmelosegui/pinvoke | src/User32.Tests/User32Facts.cs | src/User32.Tests/User32Facts.cs | // Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runti... | // Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runti... | mit | C# |
33e44181c1d044f4c5a04a3a495290725df69d2a | Disable cached partials if in preview mode | marcemarc/Umbraco-CMS,bjarnef/Umbraco-CMS,abryukhov/Umbraco-CMS,mattbrailsford/Umbraco-CMS,robertjf/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,umbraco/Umbraco-CMS,umbraco/Umbraco-CMS,KevinJump/Umbraco-CMS,dawoe/Umbraco-CMS,umbraco/Umbraco-CMS,dawoe/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,KevinJump/Umbraco-CMS,dawoe/Um... | src/Umbraco.Web/CacheHelperExtensions.cs | src/Umbraco.Web/CacheHelperExtensions.cs | using System;
using System.Web;
using System.Web.Caching;
using System.Web.Mvc;
using System.Web.Mvc.Html;
using Umbraco.Core.Cache;
namespace Umbraco.Web
{
/// <summary>
/// Extension methods for the cache helper
/// </summary>
public static class CacheHelperExtensions
{
public const st... | using System;
using System.Web;
using System.Web.Caching;
using System.Web.Mvc;
using System.Web.Mvc.Html;
using Umbraco.Core.Cache;
namespace Umbraco.Web
{
/// <summary>
/// Extension methods for the cache helper
/// </summary>
public static class CacheHelperExtensions
{
public const st... | mit | C# |
04097853cdfe93c776ef5bfa796c894e01c90d75 | Fix JavaScript loading in production | martincostello/website,martincostello/website,martincostello/website,martincostello/website | src/Website/Views/Shared/_Scripts.cshtml | src/Website/Views/Shared/_Scripts.cshtml | @model BowerVersions
<environment names="Development">
<script src="~/lib/jquery/dist/jquery.js" asp-append-version="true"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.js" asp-append-version="true"></script>
<script src="~/lib/jquery.lazyload/jquery.lazyload.min.js" asp-append-version="true"></... | @model BowerVersions
<environment names="Development">
<script src="~/lib/jquery/dist/jquery.js" asp-append-version="true"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.js" asp-append-version="true"></script>
<script src="~/lib/jquery.lazyload/jquery.lazyload.min.js" asp-append-version="true"></... | apache-2.0 | C# |
148ff561cdd079896f00b435646ab2cb389d391c | Add I8 and UI8 fields to the VariantType enum | jbevain/cecil,mono/cecil,fnajera-rac-de/cecil | Mono.Cecil/VariantType.cs | Mono.Cecil/VariantType.cs | //
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Copyright (c) 2008 - 2015 Jb Evain
// Copyright (c) 2008 - 2011 Novell, Inc.
//
// Licensed under the MIT/X11 license.
//
namespace Mono.Cecil {
public enum VariantType {
None = 0,
I2 = 2,
I4 = 3,
R4 = 4,
R8 = 5,
CY = 6,
Date = 7,
BStr = 8,
Disp... | //
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Copyright (c) 2008 - 2015 Jb Evain
// Copyright (c) 2008 - 2011 Novell, Inc.
//
// Licensed under the MIT/X11 license.
//
namespace Mono.Cecil {
public enum VariantType {
None = 0,
I2 = 2,
I4 = 3,
R4 = 4,
R8 = 5,
CY = 6,
Date = 7,
BStr = 8,
Disp... | mit | C# |
4db6c1606874d23472d587fed3decc80e02b41e4 | Improve U2F view | btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver | BTCPayServer/Views/Manage/U2FAuthentication.cshtml | BTCPayServer/Views/Manage/U2FAuthentication.cshtml | @model BTCPayServer.U2F.Models.U2FAuthenticationViewModel
@{
ViewData.SetActivePageAndTitle(ManageNavPages.U2F, "Registered U2F devices");
}
<partial name="_StatusMessage" />
<form asp-action="AddU2FDevice" method="get">
<table class="table table-lg mb-4">
<thead>
<tr>
<th>... | @model BTCPayServer.U2F.Models.U2FAuthenticationViewModel
@{
ViewData.SetActivePageAndTitle(ManageNavPages.U2F, "Manage your registered U2F devices");
}
<partial name="_StatusMessage" />
<h4>Registered U2F Devices</h4>
<form asp-action="AddU2FDevice" method="get">
<table class="table table-lg">
<thead>... | mit | C# |
41289acd9ab2e3a7b5f23b4160d31f6c2a3a5c21 | refactor event save+load tests | Pondidum/Ledger,Pondidum/Ledger | Ledger.Stores.Postgres.Tests/EventSaveLoadTests.cs | Ledger.Stores.Postgres.Tests/EventSaveLoadTests.cs | using System;
using System.Linq;
using Shouldly;
using TestsDomain.Events;
using Xunit;
namespace Ledger.Stores.Postgres.Tests
{
public class EventSaveLoadTests : PostgresTestBase
{
private readonly PostgresEventStore<Guid> _store;
public EventSaveLoadTests()
{
CleanupTables();
var create = new Cre... | using System;
using System.Linq;
using Shouldly;
using TestsDomain.Events;
using Xunit;
namespace Ledger.Stores.Postgres.Tests
{
public class EventSaveLoadTests : PostgresTestBase
{
public EventSaveLoadTests()
{
CleanupTables();
var create = new CreateGuidKeyedTablesCommand(ConnectionString);
create.Ex... | lgpl-2.1 | C# |
f42ea0fc6bd6741a1cf8b9528a6a0e319aeff570 | Add boat move logic | Powersource/boat-ggj17 | Assets/GameLogic.cs | Assets/GameLogic.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class GameLogic : MonoBehaviour {
public GameObject myFishToSpawn;
public GameObject wavePrefab;
public float minSpawnDelay = 1.5f;
public float maxSpawnDelay = 2.5f;
private float myNextSpawn... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class GameLogic : MonoBehaviour {
public GameObject myFishToSpawn;
public GameObject wavePrefab;
public float minSpawnDelay = 1.5f;
public float maxSpawnDelay = 2.5f;
private float myNextSpawn... | mit | C# |
f552d2313b6d5fe7ceed65318db809b9831efb58 | add trace stack in Coroutine -> resume | zhukunqian/slua-1,soulgame/slua,haolly/slua_source_note,Roland0511/slua,dayongxie/slua,angeldnd/slua,lingkeyang/slua,dayongxie/slua,LacusCon/slua,angeldnd/slua,chiuan/slua,chiuan/slua,jiangzhhhh/slua,yaukeywang/slua,jiangzhhhh/slua,DebugClub/slua,Salada/slua,Salada/slua,lingkeyang/slua,haolly/slua_source_note,thing-nac... | Assets/Slua/Script/Coroutine.cs | Assets/Slua/Script/Coroutine.cs | // The MIT License (MIT)
// Copyright 2015 Siney/Pangweiwei siney@yeah.net
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the... | // The MIT License (MIT)
// Copyright 2015 Siney/Pangweiwei siney@yeah.net
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the right... | mit | C# |
123f1dbe39075e798b72eabbefd1d053e3a48df2 | build non profit tables and add to items table | kevinphelps/base-rest | BaseDomain/Models/BaseDomain.cs | BaseDomain/Models/BaseDomain.cs | using BaseDomain.General;
using General;
using System;
using System.ComponentModel.DataAnnotations;
using System.Net;
namespace BaseDomain.Models
{
public abstract class BaseDomain : IDomain
{
[Key]
public int Id { get; private set; }
public DateTime UtcDateCreated { get; private set;... | using BaseDomain.General;
using General;
using System;
using System.Net;
namespace BaseDomain.Models
{
public abstract class BaseDomain : IDomain
{
public int Id { get; private set; }
public DateTime UtcDateCreated { get; private set; }
public DateTime UtcDateModified { get; private ... | mit | C# |
77cc99331f2b0a1db9f6421c7908b5227034dd2e | Add short link to Service | KpdApps/KpdApps.Common.MsCrm2015 | BasePluginAction.cs | BasePluginAction.cs | using System;
using Microsoft.Xrm.Sdk;
namespace KpdApps.Common.MsCrm2015
{
public class BasePluginAction
{
public PluginState State { get; set; }
public IOrganizationService Service => State.Service;
public BasePluginAction(PluginState state)
{
State = state;
... | using System;
namespace KpdApps.Common.MsCrm2015
{
public class BasePluginAction
{
public PluginState State { get; set; }
public BasePluginAction(PluginState state)
{
State = state;
}
public virtual void Execute()
{
throw new NotImpleme... | mit | C# |
97ea1a3f3200404c94a5cdc42bd15326be7841f3 | Remove unused NullGestureMachine class. | rubyu/CreviceApp,rubyu/CreviceApp | CreviceApp/GM.GestureMachine.cs | CreviceApp/GM.GestureMachine.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Crevice.GestureMachine
{
using System.Threading;
using System.Drawing;
using Crevice.Core.FSM;
using Crevice.Core.Events;
using Crevice.Threading;
public class Gesture... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Crevice.GestureMachine
{
using System.Threading;
using System.Drawing;
using Crevice.Core.FSM;
using Crevice.Core.Events;
using Crevice.Threading;
public class NullGes... | mit | C# |
5ae642d42b38a951150dd6de5cdabc8629bd052a | Make Group.Participants an ICollection | ermau/Tempest.Social | Desktop/Tempest.Social/Group.cs | Desktop/Tempest.Social/Group.cs | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace Tempest.Social
{
public class Group
{
public Group (int id)
{
Id = id;
}
public Group (int id, IEnumerable<string> participants)
: this (id)
{
if (participants == null)
throw new ArgumentNullExcep... | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace Tempest.Social
{
public class Group
{
public Group (int id)
{
Id = id;
}
public Group (int id, IEnumerable<string> participants)
: this (id)
{
if (participants == null)
throw new ArgumentNullExcep... | mit | C# |
7c39a9a794e4284d3261035b94c0690328b014b9 | fix gameover | enpel/ggj2017-deliciousset | UnityProject/Assets/Scripts/State/GameOverState.cs | UnityProject/Assets/Scripts/State/GameOverState.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UniRx;
using UnityEngine.SceneManagement;
using System.Linq;
public class GameOverState : SceneState
{
[SerializeField]
SceneState nextState;
public override void Initialize ()
{
base.Initialize ();
UIManager.Instance.Switc... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UniRx;
using UnityEngine.SceneManagement;
public class GameOverState : SceneState
{
[SerializeField]
SceneState nextState;
public override void Initialize ()
{
base.Initialize ();
UIManager.Instance.SwitchPhase (UIPhase.GAM... | mit | C# |
07ff547da3fe0c55ecf3142eac5c954183bbaa02 | add comment on allowed LINQ usage | isse-augsburg/ssharp,maul-esel/ssharp,isse-augsburg/ssharp,isse-augsburg/ssharp,maul-esel/ssharp,isse-augsburg/ssharp,isse-augsburg/ssharp,maul-esel/ssharp,maul-esel/ssharp | models/SelfOrganizingPillProduction/Modeling/Recipe.cs | models/SelfOrganizingPillProduction/Modeling/Recipe.cs | using System.Collections.Generic;
using System.Linq;
namespace SelfOrganizingPillProduction.Modeling
{
/// <summary>
/// Describes how a container should be processed.
/// </summary>
public class Recipe
{
/// <summary>
/// Creates a new recipe with the specified sequence of ingredi... | using System.Collections.Generic;
using System.Linq;
namespace SelfOrganizingPillProduction.Modeling
{
/// <summary>
/// Describes how a container should be processed.
/// </summary>
public class Recipe
{
/// <summary>
/// Creates a new recipe with the specified sequence of ingredi... | mit | C# |
4bcab1d57fe2803e95bf366f5488a311eef16435 | Clarify the apparently unused generic type parameter. | damiensawyer/cassette,andrewdavey/cassette,BluewireTechnologies/cassette,honestegg/cassette,honestegg/cassette,BluewireTechnologies/cassette,damiensawyer/cassette,andrewdavey/cassette,damiensawyer/cassette,honestegg/cassette,andrewdavey/cassette | src/Cassette/Configuration/IFileSearchModifier.cs | src/Cassette/Configuration/IFileSearchModifier.cs | namespace Cassette.Configuration
{
// ReSharper disable UnusedTypeParameter
// The T type parameter makes it easy to distinguish between file search modifiers for the different type of bundles
public interface IFileSearchModifier<T>
where T : Bundle
// ReSharper restore UnusedTypeParameter
{
... | namespace Cassette.Configuration
{
public interface IFileSearchModifier<T>
{
void Modify(FileSearch fileSearch);
}
} | mit | C# |
0072842b13aee54d5f1519f8732b5cb282f2a5f4 | Add test. | JetBrains/Nitra,rsdn/nitra,rsdn/nitra,JetBrains/Nitra | Tests/!Positive/Json-2.cs | Tests/!Positive/Json-2.cs | // REFERENCE: Json.Grammar.dll
using N2;
using N2.Tests;
using System;
using System.IO;
namespace Sample.Json.Cs
{
class Program
{
static void Main()
{
Test(@"{ : 1}");
Test(@"{ a }");
Test(@"{ a: }");
Test(@"{ a:, }");
Test(@"{ 'a':, a:1}")
}
... | // REFERENCE: Json.Grammar.dll
using N2;
using N2.Tests;
using System;
using System.IO;
namespace Sample.Json.Cs
{
class Program
{
static void Main()
{
Test(@"{ : 1}");
Test(@"{ a }");
Test(@"{ a: }");
Test(@"{ a:, }");
}
static void Test(string text)... | apache-2.0 | C# |
afa31ac8b25d9ed3fac1d5531cb83c897e876b4f | Add option for allowed user roles | mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,pranavkm/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototy... | src/Glimpse.Server.Web/GlimpseServerWebOptions.cs | src/Glimpse.Server.Web/GlimpseServerWebOptions.cs | using System;
using System.Collections.Generic;
namespace Glimpse.Server
{
public class GlimpseServerWebOptions
{
public GlimpseServerWebOptions()
{
AllowedUserRoles = new List<string>();
}
public bool AllowRemote { get; set; }
public IList<string> Allowed... | using System;
namespace Glimpse.Server
{
public class GlimpseServerWebOptions
{
public bool AllowRemote { get; set; }
}
} | mit | C# |
cbe6125a10081ab232c363acff36aa3bd8b477d2 | handle errors in event chanel consumers | LykkeCity/MT,LykkeCity/MT,LykkeCity/MT | src/MarginTrading.Services/Events/EventChannel.cs | src/MarginTrading.Services/Events/EventChannel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Autofac;
using Common;
using Common.Log;
namespace MarginTrading.Services.Events
{
public class EventChannel<TEventArgs> : IEventChannel<TEventArgs>, IDisposable
{
private IComponentContext _container;
private readonly IL... | using System;
using System.Collections.Generic;
using System.Linq;
using Autofac;
namespace MarginTrading.Services.Events
{
public class EventChannel<TEventArgs> : IEventChannel<TEventArgs>, IDisposable
{
private IComponentContext _container;
private IEventConsumer<TEventArgs>[] _consumers;
... | mit | C# |
ff5c6882632d7a5b87006446ab78e53f3e356e23 | bump version | cuongtranba/DateTimeExtensions,kappy/DateTimeExtensions,cuongtranba/DateTimeExtensions,cuongtranba/DateTimeExtensions | DateTimeExtensions/Properties/AssemblyInfo.cs | DateTimeExtensions/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System;
// 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: Ass... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System;
// 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: Ass... | apache-2.0 | C# |
278584de99e416aed21ef3034a88d072d61de2c4 | Disable optimisations validator (in line with framework project) | NeoAdonis/osu,smoogipooo/osu,peppy/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,peppy/osu-new,smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu | osu.Game.Benchmarks/Program.cs | osu.Game.Benchmarks/Program.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 BenchmarkDotNet.Configs;
using BenchmarkDotNet.Running;
namespace osu.Game.Benchmarks
{
public static class Program
{
public static void Main(stri... | // 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 BenchmarkDotNet.Running;
namespace osu.Game.Benchmarks
{
public static class Program
{
public static void Main(string[] args)
{
... | mit | C# |
b63a90966ba260c5122203c4b06299d2af40aa52 | Remove misplaced access modifier in interface specification | ppy/osu,smoogipooo/osu,ppy/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu | osu.Game/Scoring/IScoreInfo.cs | osu.Game/Scoring/IScoreInfo.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Game.Beatmaps;
using osu.Game.Database;
using osu.Game.Rulesets;
using osu.Game.Users;
namespace osu.Game.Scoring
{
public interface IScoreIn... | // 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.Game.Beatmaps;
using osu.Game.Database;
using osu.Game.Rulesets;
using osu.Game.Users;
namespace osu.Game.Scoring
{
public interface IScoreIn... | mit | C# |
df5bf741b163717721c330e9827014c0bd27efd4 | Implement basic constant folding of Add operator in ConstantFoldingExprBuilder. This fixes several tests that depend on this behaviour. | symbooglix/symbooglix,symbooglix/symbooglix,symbooglix/symbooglix | src/Symbooglix/Expr/ConstantFoldingExprBuilder.cs | src/Symbooglix/Expr/ConstantFoldingExprBuilder.cs | using System;
using Microsoft.Boogie;
using Microsoft.Basetypes;
using System.Collections.Generic;
using System.Diagnostics;
namespace Symbooglix
{
public class ConstantFoldingExprBuilder : DecoratorExprBuilder
{
public ConstantFoldingExprBuilder(IExprBuilder underlyingBuilder) : base(underlyingBuilde... | using System;
namespace Symbooglix
{
public class ConstantFoldingExprBuilder : DecoratorExprBuilder
{
public ConstantFoldingExprBuilder(IExprBuilder underlyingBuilder) : base(underlyingBuilder)
{
}
// TODO Overload methods that we can constant fold
}
}
| bsd-2-clause | C# |
a365d56d84672dd9af64d95c9eddf1b607eb7ce3 | use != | NServiceBusSqlPersistence/NServiceBus.SqlPersistence | src/SqlPersistence/SynchronizedStorage/StorageAdapter.cs | src/SqlPersistence/SynchronizedStorage/StorageAdapter.cs | using System;
using System.Data.Common;
using System.Data.SqlClient;
using System.Threading.Tasks;
using System.Transactions;
using NServiceBus;
using NServiceBus.Extensibility;
using NServiceBus.Outbox;
using NServiceBus.Persistence;
using NServiceBus.Transport;
class StorageAdapter : ISynchronizedStorageAdapter
{
... | using System;
using System.Data.Common;
using System.Data.SqlClient;
using System.Threading.Tasks;
using System.Transactions;
using NServiceBus;
using NServiceBus.Extensibility;
using NServiceBus.Outbox;
using NServiceBus.Persistence;
using NServiceBus.Transport;
class StorageAdapter : ISynchronizedStorageAdapter
{
... | mit | C# |
f194d693d6e9b7d1a3c77be5dc93e386b8bd9ed7 | add comment for empty method required to implement interface | fluffynuts/PeanutButter,fluffynuts/PeanutButter,fluffynuts/PeanutButter | source/Utils/PeanutButter.DuckTyping/Extensions/DictionaryWrappingNameValueCollectionEnumerator.cs | source/Utils/PeanutButter.DuckTyping/Extensions/DictionaryWrappingNameValueCollectionEnumerator.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace PeanutButter.DuckTyping.Extensions
{
// TODO: add expllicit tests around this class, which is currently only tested by indirection
/// <summary>
/// Wraps a NameValueCollection in a Dictionary interface
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace PeanutButter.DuckTyping.Extensions
{
// TODO: add expllicit tests around this class, which is currently only tested by indirection
/// <summary>
/// Wraps a NameValueCollection in a Dictionary interface
... | bsd-3-clause | C# |
8fba75eeb36ba4e1ce18fe7dfc549133ae8e1f73 | Add a few compile time features to calling a field on a string literal... - Crash at COMPILE TIME if you call .join and explain that the string joiner is done by calling .join on a list with a string as an argument. - Crash at COMPILE TIME when you call .size and redirect the user to .length - Swap out string.length wi... | blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon | csharp/Crayon/ParseTree/DotStep.cs | csharp/Crayon/ParseTree/DotStep.cs | using System.Linq;
namespace Crayon.ParseTree
{
internal class DotStep : Expression
{
public Expression Root { get; set; }
public Token DotToken { get; private set; }
public Token StepToken { get; private set; }
public DotStep(Expression root, Token dotToken, Token stepToken)
: base(root.Firs... | using System.Linq;
namespace Crayon.ParseTree
{
internal class DotStep : Expression
{
public Expression Root { get; set; }
public Token DotToken { get; private set; }
public Token StepToken { get; private set; }
public DotStep(Expression root, Token dotToken, Token stepToken)
: base(root.Firs... | mit | C# |
8735897526b4fee856a089f13afd0c48ca78c5d4 | Remove XML formatter | thack/CodeForAmerica,thack/CodeForAmerica | 2013February/ApiProxy/API/App_Start/WebApiConfig.cs | 2013February/ApiProxy/API/App_Start/WebApiConfig.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
namespace API
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
config.Routes.MapHttpRoute(
name: "DefaultApi",
route... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
namespace API
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
config.Routes.MapHttpRoute(
name: "DefaultApi",
route... | mit | C# |
b18f5b0562da4d179ca191d7ce5aa065bd23c742 | Declare storage permission at assembly level | ZLima12/osu-framework,ppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework | osu.Framework.Android/Properties/AssemblyInfo.cs | osu.Framework.Android/Properties/AssemblyInfo.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.Runtime.CompilerServices;
using Android.App;
// We publish our internal attributes to other sub-projects of the framework.
// Note, that we omit visual tes... | // 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.Runtime.CompilerServices;
// We publish our internal attributes to other sub-projects of the framework.
// Note, that we omit visual tests as they are mean... | mit | C# |
434d7d1809d1c72436fa41aeb15088522bb030de | Replace piecewise linear function + rebalance | ppy/osu,2yangk23/osu,DrabWeb/osu,smoogipoo/osu,NeoAdonis/osu,DrabWeb/osu,peppy/osu,smoogipooo/osu,UselessToucan/osu,UselessToucan/osu,2yangk23/osu,DrabWeb/osu,EVAST9919/osu,NeoAdonis/osu,EVAST9919/osu,ppy/osu,ppy/osu,naoey/osu,johnneijzen/osu,NeoAdonis/osu,naoey/osu,UselessToucan/osu,johnneijzen/osu,smoogipoo/osu,peppy... | osu.Game.Rulesets.Osu/Difficulty/Skills/Speed.cs | osu.Game.Rulesets.Osu/Difficulty/Skills/Speed.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;
using osu.Game.Rulesets.Osu.Difficulty.Preprocessing;
using osuTK;
namespace osu.Game.Rulesets.Osu.Difficulty.Skills
{
/// <summary>
/// Represen... | // 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;
using osu.Game.Rulesets.Osu.Difficulty.Preprocessing;
using osuTK;
namespace osu.Game.Rulesets.Osu.Difficulty.Skills
{
/// <summary>
/// Represen... | mit | C# |
06cde2b0c22feca53459df4213f46eb82ca6d0c1 | remove unused using directive | UselessToucan/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,peppy/osu-new,UselessToucan/osu,ppy/osu,EVAST9919/osu,EVAST9919/osu,smoogipooo/osu,NeoAdonis/osu,peppy/osu,johnneijzen/osu,2yangk23/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,ppy/osu,NeoAdonis/osu,2yangk23/osu,johnneijzen/osu | osu.Game.Rulesets.Osu/Skinning/LegacyCursor.cs | osu.Game.Rulesets.Osu/Skinning/LegacyCursor.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Skinning;
using osu.Game.Rulesets.Osu.UI.Cursor;
using osuTK;
namespace osu.Game.Rulesets.Os... | // 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.Game.Skinning;
using osu.Game.Rulesets.Osu.UI.Cursor;
usi... | mit | C# |
0e1236b0f1e40cbc3cdf37ffd9fc7584ef4a4154 | Update Viktor.cs | FireBuddy/adevade | AdEvade/AdEvade/Data/Spells/SpecialSpells/Viktor.cs | AdEvade/AdEvade/Data/Spells/SpecialSpells/Viktor.cs | using System;
using EloBuddy;
using EloBuddy.SDK;
namespace AdEvade.Data.Spells.SpecialSpells
{
class Viktor : IChampionPlugin
{
static Viktor()
{
}
public const string ChampionName = "Viktor";
public string GetChampionName()
{
return ChampionName;
... | using System;
using EloBuddy;
using EloBuddy.SDK;
namespace AdEvade.Data.Spells.SpecialSpells
{
class Viktor : IChampionPlugin
{
static Viktor()
{
}
public const string ChampionName = "Viktor";
public string GetChampionName()
{
return ChampionName;
... | mit | C# |
e0d9f1bc2e87e3aab94b215e3d7c8dcf3eedf0e9 | Add rank to evals list | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Views/Evaluations/List.cshtml | Battery-Commander.Web/Views/Evaluations/List.cshtml | @model IEnumerable<Evaluation>
<h2>Evaluations @Html.ActionLink("Add New", "New", "Evaluations", null, new { @class = "btn btn-default" })</h2>
<table class="table table-striped">
<thead>
<tr>
<th>@Html.DisplayNameFor(_ => _.FirstOrDefault().Ratee.Rank)</th>
<th>@Html.DisplayNameF... | @model IEnumerable<Evaluation>
<h2>Evaluations @Html.ActionLink("Add New", "New", "Evaluations", null, new { @class = "btn btn-default" })</h2>
<table class="table table-striped">
<thead>
<tr>
<th>@Html.DisplayNameFor(_ => _.FirstOrDefault().Ratee)</th>
<th>@Html.DisplayNameFor(_ ... | mit | C# |
9fc3556cf879b05415280132ecd19ba5a6234596 | Add some more tests. | srivatsn/MSBuildSdkDiffer | MSBuildSdkDiffer.Tests/PropertiesDiffTests.cs | MSBuildSdkDiffer.Tests/PropertiesDiffTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MSBuildSdkDiffer.Tests.Mocks;
using Xunit;
namespace MSBuildSdkDiffer.Tests
{
public class PropertiesDiffTests
{
[Theory]
[InlineData("A=B", "A", "A=B", "A", null, null)]
[InlineData("A=B", "A",... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MSBuildSdkDiffer.Tests.Mocks;
using Xunit;
namespace MSBuildSdkDiffer.Tests
{
public class PropertiesDiffTests
{
[Theory]
[InlineData("A=B", "A", "A=B", "A", null, null)]
[InlineData("A=B", "A",... | mit | C# |
546e9f7b2ada33a3b68bc74440c4aa631e37345c | Fix mistake in registration (method not on interface) | csf-dev/CSF.Screenplay,csf-dev/CSF.Screenplay,csf-dev/CSF.Screenplay | CSF.Screenplay/Scenarios/IServiceRegistryBuilder.cs | CSF.Screenplay/Scenarios/IServiceRegistryBuilder.cs | using System;
namespace CSF.Screenplay.Scenarios
{
/// <summary>
/// Builder service which assists in the creation of service registrations.
/// </summary>
public interface IServiceRegistryBuilder
{
/// <summary>
/// Registers a service which will be used across all scenarios within a test run.
/... | using System;
namespace CSF.Screenplay.Scenarios
{
/// <summary>
/// Builder service which assists in the creation of service registrations.
/// </summary>
public interface IServiceRegistryBuilder
{
/// <summary>
/// Registers a service which will be used across all scenarios within a test run.
/... | mit | C# |
e29d78a8a56df7663232e56e2ce025445bcdb759 | Hide getters from NodeMethods | mcintyre321/Noodles,mcintyre321/Noodles | Noodles/NodeMethodExtensions.cs | Noodles/NodeMethodExtensions.cs | using System.Collections.Generic;
using System.Linq;
using Noodles.Models;
using Noodles.Requests;
namespace Noodles
{
public static class NodeMethodExtensions
{
public static IEnumerable<NodeMethod> NodeMethods(this object o, Resource resource)
{
return NodeMethodsReflectionLogic.Y... | using System.Collections.Generic;
using System.Linq;
using Noodles.Models;
using Noodles.Requests;
namespace Noodles
{
public static class NodeMethodExtensions
{
public static IEnumerable<NodeMethod> NodeMethods(this object o, Resource resource)
{
return NodeMethodsReflectionLogic.Y... | mit | C# |
14ab71003ce6325d43adcd2133100cefc8d422f8 | Upgrade OData WebAPI Version to 5.6.0 | lungisam/WebApi,chimpinano/WebApi,abkmr/WebApi,congysu/WebApi,scz2011/WebApi,chimpinano/WebApi,lewischeng-ms/WebApi,yonglehou/WebApi,scz2011/WebApi,LianwMS/WebApi,congysu/WebApi,lungisam/WebApi,lewischeng-ms/WebApi,abkmr/WebApi,yonglehou/WebApi,LianwMS/WebApi | OData/src/CommonAssemblyInfo.cs | OData/src/CommonAssemblyInfo.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
#if !BUILD_GENERATED_VERSION
[assembly: AssemblyCompany("... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
#if !BUILD_GENERATED_VERSION
[assembly: AssemblyCompany("... | mit | C# |
2e7d8eaeaf3bbf7244c6668d43446e5a10f926b1 | Make base abstract | dlidstrom/Snittlistan,dlidstrom/Snittlistan,dlidstrom/Snittlistan | Snittlistan/Controllers/AbstractController.cs | Snittlistan/Controllers/AbstractController.cs | using System;
using System.Globalization;
using System.Linq;
using System.Threading;
using System.Web;
using System.Web.Mvc;
using Elmah;
using Raven.Client;
using Snittlistan.Models;
namespace Snittlistan.Controllers
{
public abstract class AbstractController : Controller
{
/// <summary>
/// Ini... | using System;
using System.Globalization;
using System.Linq;
using System.Threading;
using System.Web;
using System.Web.Mvc;
using Elmah;
using Raven.Client;
using Snittlistan.Models;
namespace Snittlistan.Controllers
{
public class AbstractController : Controller
{
/// <summary>
/// Initializes ... | mit | C# |
746150f276cca81e06d067aa1db20be89af1ebb4 | implement LocalConfigurationFeature.ConfigurationFileIsNull | config-r/config-r | src/ConfigR.Roslyn.CSharp/Internal/StringExtensions.cs | src/ConfigR.Roslyn.CSharp/Internal/StringExtensions.cs | // <copyright file="StringExtensions.cs" company="ConfigR contributors">
// Copyright (c) ConfigR contributors. (configr.net@gmail.com)
// </copyright>
namespace ConfigR.Roslyn.CSharp.Internal
{
using System;
using System.IO;
using ConfigR.Sdk;
public static class StringExtensions
{
... | // <copyright file="StringExtensions.cs" company="ConfigR contributors">
// Copyright (c) ConfigR contributors. (configr.net@gmail.com)
// </copyright>
namespace ConfigR.Roslyn.CSharp.Internal
{
using System;
using System.IO;
using ConfigR.Sdk;
public static class StringExtensions
{
... | mit | C# |
9fb471c5daf7d7213f2f5929a438997c6cf23f7a | add more tests | gaochundong/Redola | Tests/Redola.Rpc.TestHttpServer/TestModule.cs | Tests/Redola.Rpc.TestHttpServer/TestModule.cs | using System;
using Happer.Http;
namespace Redola.Rpc.TestHttpServer
{
public class TestModule : Module
{
private HelloClient _helloService;
public TestModule(HelloClient helloService)
{
_helloService = helloService;
Get["/empty"] = x =>
{
... | using Happer.Http;
namespace Redola.Rpc.TestHttpServer
{
public class TestModule : Module
{
private HelloClient _helloService;
public TestModule(HelloClient helloService)
{
_helloService = helloService;
Get["/hello"] = x =>
{
var re... | mit | C# |
23ea01b37326963b5ebf68bbcc1edd51c66a28d6 | Fix ctor, we must use initWithCoder when loading from a storyboard | a9upam/monotouch-samples,andypaul/monotouch-samples,a9upam/monotouch-samples,albertoms/monotouch-samples,robinlaide/monotouch-samples,kingyond/monotouch-samples,xamarin/monotouch-samples,a9upam/monotouch-samples,sakthivelnagarajan/monotouch-samples,sakthivelnagarajan/monotouch-samples,xamarin/monotouch-samples,nelzomal... | TextKitDemo/TextKitDemo/CollectionViewCell.cs | TextKitDemo/TextKitDemo/CollectionViewCell.cs | using System;
using CoreGraphics;
using Foundation;
using UIKit;
namespace TextKitDemo
{
public partial class CollectionViewCell : UICollectionViewCell
{
public CollectionViewCell (IntPtr handle) : base (handle)
{
Initialize ();
}
[Export ("initWithCoder:")]
public CollectionViewCell (NSCoder coder) :... | using System;
using CoreGraphics;
using Foundation;
using UIKit;
namespace TextKitDemo
{
public partial class CollectionViewCell : UICollectionViewCell
{
public CollectionViewCell (IntPtr handle) : base (handle)
{
BackgroundColor = UIColor.DarkGray;
Layer.CornerRadius = 5;
UIApplication.Notifications.... | mit | C# |
ad0cee99433b0451903a7445e0e9a6ba7462cf6e | add Host in TracingAnnotationNames | vostok/core | Vostok.Core/Tracing/TracingAnnotationNames.cs | Vostok.Core/Tracing/TracingAnnotationNames.cs | namespace Vostok.Tracing
{
public static class TracingAnnotationNames
{
public const string Operation = "operation";
public const string Service = "service";
public const string Component = "component";
public const string Kind = "kind";
public const string Host = "host"... | namespace Vostok.Tracing
{
public static class TracingAnnotationNames
{
public const string Operation = "operation";
public const string Service = "service";
public const string Component = "component";
public const string Kind = "kind";
public const string ClusterStrat... | mit | C# |
2a2ac31e08213726703be7580ba462646a94e51f | Update "Shelf" | DRFP/Personal-Library | _Build/PersonalLibrary/Library/Model/Shelf.cs | _Build/PersonalLibrary/Library/Model/Shelf.cs | using SQLite;
namespace Library.Model {
[Table("Shelves")]
public class Shelf {
[PrimaryKey, AutoIncrement]
public int slfID { get; set; }
public string slfName { get; set; }
}
} | using SQLite;
namespace Library.Model {
[Table("Shelves")]
public class Shelf {
[PrimaryKey, AutoIncrement]
public int slfID { get; set; }
public string slfName { get; set; }
}
} | mit | C# |
855769f582524bc656cdf658dd2c4cc675e1e0c2 | fix FacadeMethod for overloaded method names | AlejandroCano/extensions,AlejandroCano/extensions,MehdyKarimpour/extensions,signumsoftware/extensions,signumsoftware/framework,MehdyKarimpour/extensions,signumsoftware/framework,signumsoftware/extensions | Signum.Entities.Extensions/Basics/FacadeMethodDN.cs | Signum.Entities.Extensions/Basics/FacadeMethodDN.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Signum.Utilities;
using System.Reflection;
using System.Linq.Expressions;
using System.ServiceModel;
namespace Signum.Entities.Basics
{
[Serializable]
public class FacadeMethodDN : IdentifiableEntity
{... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Signum.Utilities;
using System.Reflection;
using System.Linq.Expressions;
namespace Signum.Entities.Basics
{
[Serializable]
public class FacadeMethodDN : IdentifiableEntity
{
private FacadeMeth... | mit | C# |
c2d4f488bdbbe4fa249d5be192d2eaa45ac88a99 | Change to call new API | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EmployerAccounts/Commands/UnsubscribeProviderEmail/UnsubscribeProviderEmailQueryHandler.cs | src/SFA.DAS.EmployerAccounts/Commands/UnsubscribeProviderEmail/UnsubscribeProviderEmailQueryHandler.cs | using System.Threading.Tasks;
using MediatR;
using SFA.DAS.EmployerAccounts.Configuration;
using SFA.DAS.EmployerAccounts.Interfaces;
namespace SFA.DAS.EmployerAccounts.Commands.UnsubscribeProviderEmail
{
public class UnsubscribeProviderEmailQueryHandler : AsyncRequestHandler<UnsubscribeProviderEmailQuery>
{
... | using System.Threading.Tasks;
using MediatR;
using SFA.DAS.EmployerAccounts.Configuration;
using SFA.DAS.EmployerAccounts.Interfaces;
namespace SFA.DAS.EmployerAccounts.Commands.UnsubscribeProviderEmail
{
public class UnsubscribeProviderEmailQueryHandler : AsyncRequestHandler<UnsubscribeProviderEmailQuery>
{
... | mit | C# |
3bb77eaf2a29c5f69a752fb1805732ffc544d4ef | Add capacity construct to JsonArray and Add function to enable collection initializers | AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp | src/AngleSharp/Html/Forms/Submitters/Json/JsonArray.cs | src/AngleSharp/Html/Forms/Submitters/Json/JsonArray.cs | namespace AngleSharp.Html.Forms.Submitters.Json
{
using AngleSharp.Text;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
sealed class JsonArray : JsonElement, IEnumerable<JsonElement>
{
private readonly List<JsonElement> _elements;
... | namespace AngleSharp.Html.Forms.Submitters.Json
{
using AngleSharp.Text;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
sealed class JsonArray : JsonElement, IEnumerable<JsonElement>
{
private readonly List<JsonElement> _elements = new L... | mit | C# |
30e0aebfa26bba9e3d4cf0f294a3b248524fa95e | Add author name | christianacca/Cache-Abstraction,christianacca/Cache-Abstraction | src/CcAcca.CacheAbstraction/Properties/AssemblyInfo.cs | src/CcAcca.CacheAbstraction/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("Cc... | 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("Cc... | mit | C# |
c0eea7b99387bb288a58e23172ce56e05365ac43 | Refactor WhenParsingTestResultFiles so that multiple result files are possible | dirkrombauts/pickles,dirkrombauts/pickles,blorgbeard/pickles,picklesdoc/pickles,ludwigjossieaux/pickles,irfanah/pickles,irfanah/pickles,picklesdoc/pickles,magicmonty/pickles,ludwigjossieaux/pickles,blorgbeard/pickles,magicmonty/pickles,picklesdoc/pickles,blorgbeard/pickles,picklesdoc/pickles,ludwigjossieaux/pickles,mag... | src/Pickles/Pickles.Test/WhenParsingTestResultFiles.cs | src/Pickles/Pickles.Test/WhenParsingTestResultFiles.cs | using System;
using System.IO.Abstractions;
using System.IO.Abstractions.TestingHelpers;
using System.Linq;
using System.Reflection;
using Autofac;
using StreamReader = System.IO.StreamReader;
namespace PicklesDoc.Pickles.Test
{
public abstract class WhenParsingTestResultFiles<TResults> : BaseFixture
{
... | using System;
using System.IO.Abstractions.TestingHelpers;
using System.Reflection;
using Autofac;
using StreamReader = System.IO.StreamReader;
namespace PicklesDoc.Pickles.Test
{
public abstract class WhenParsingTestResultFiles<TResults> : BaseFixture
{
private readonly string resultsFileName;
... | apache-2.0 | C# |
b087bb08ba53c7877ed43c359c38bf03b98e0dd6 | fix authorization path | Soluto/tweek,Soluto/tweek,Soluto/tweek,Soluto/tweek,Soluto/tweek,Soluto/tweek | Tweek.ApiService.NetCore/Security/AuthorizationDecider.cs | Tweek.ApiService.NetCore/Security/AuthorizationDecider.cs | using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using Engine;
using Engine.Core.Context;
using Engine.DataTypes;
using FSharpUtils.Newtonsoft;
using LanguageExt.Trans;
using LanguageExt.SomeHelp;
using LanguageExt.Trans.Linq;
using LanguageExt;
using static LanguageExt.Prelude;
name... | using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using Engine;
using Engine.Core.Context;
using Engine.DataTypes;
using FSharpUtils.Newtonsoft;
using LanguageExt.Trans;
using LanguageExt.SomeHelp;
using LanguageExt.Trans.Linq;
using LanguageExt;
using static LanguageExt.Prelude;
name... | mit | C# |
5561f9dbc07c46d594bbb5d5d162664b3a8f8bf3 | Update IMetricTelemeter.cs | tiksn/TIKSN-Framework | TIKSN.Core/Analytics/Telemetry/IMetricTelemeter.cs | TIKSN.Core/Analytics/Telemetry/IMetricTelemeter.cs | using System.Threading.Tasks;
namespace TIKSN.Analytics.Telemetry
{
public interface IMetricTelemeter
{
Task TrackMetricAsync(string metricName, decimal metricValue);
}
}
| using System.Threading.Tasks;
namespace TIKSN.Analytics.Telemetry
{
public interface IMetricTelemeter
{
Task TrackMetric(string metricName, decimal metricValue);
}
}
| mit | C# |
ca7585d90c5592df5dc1054007768f776c3fb2e5 | Use lower memorylimits value for appveyor build. | dlemstra/Magick.NET,dlemstra/Magick.NET | Tests/Magick.NET.Tests/Core/ResourceLimitsTests.cs | Tests/Magick.NET.Tests/Core/ResourceLimitsTests.cs | //=================================================================================================
// Copyright 2013-2017 Dirk Lemstra <https://magick.codeplex.com/>
//
// Licensed under the ImageMagick License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a c... | //=================================================================================================
// Copyright 2013-2017 Dirk Lemstra <https://magick.codeplex.com/>
//
// Licensed under the ImageMagick License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a c... | apache-2.0 | C# |
ab32c1ba5f78115b18fa0e6c8c08b9f3aecad6a5 | Update NewAzureNetworkWatcherProtocolConfiguration.cs | ClogenyTechnologies/azure-powershell,AzureAutomationTeam/azure-powershell,ClogenyTechnologies/azure-powershell,ClogenyTechnologies/azure-powershell,AzureAutomationTeam/azure-powershell,AzureAutomationTeam/azure-powershell,AzureAutomationTeam/azure-powershell,ClogenyTechnologies/azure-powershell,AzureAutomationTeam/azur... | src/ResourceManager/Network/Commands.Network/NetworkWatcher/NewAzureNetworkWatcherProtocolConfiguration.cs | src/ResourceManager/Network/Commands.Network/NetworkWatcher/NewAzureNetworkWatcherProtocolConfiguration.cs | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | apache-2.0 | C# |
d263bcdd2d78c36e3bb4ac0e716140d954c5a0ee | Add ProcessorInfo.sustainedClockSpeedInGhz | carbon/Amazon | src/Amazon.Ec2/Models/Instances/ProcessorInfo.cs | src/Amazon.Ec2/Models/Instances/ProcessorInfo.cs | using System.Xml.Serialization;
namespace Amazon.Ec2
{
public sealed class ProcessorInfo
{
[XmlElement("sustainedClockSpeedInGhz")]
public double? SustainedClockSpeedInGhz { get; set; }
[XmlArray("supportedArchitectures")]
[XmlArrayItem("item")]
public strin... | #nullable disable
using System.Xml.Serialization;
namespace Amazon.Ec2
{
public sealed class ProcessorInfo
{
[XmlArray("supportedArchitectures")]
[XmlArrayItem("item")]
public string[] SupportedArchitectures { get; set; }
}
} | mit | C# |
2047baf8bc6470c7406dcafcce9f6ee773f9be7f | Allow the status to be any object instead of just a string. | lynxx131/dotnet.microservice | src/Dotnet.Microservice/Health/HealthResponse.cs | src/Dotnet.Microservice/Health/HealthResponse.cs | using System;
namespace Dotnet.Microservice.Health
{
/// <summary>
/// Represents a health check response
/// </summary>
public struct HealthResponse
{
public readonly bool IsHealthy;
public readonly object Response;
private HealthResponse(bool isHealthy, object statusObje... | using System;
namespace Dotnet.Microservice.Health
{
/// <summary>
/// Represents a health check response
/// </summary>
public struct HealthResponse
{
public readonly bool IsHealthy;
public readonly string Message;
private HealthResponse(bool isHealthy, string statusMessa... | isc | C# |
bdbb86945886d932f249ca1e9bf6ab7af0016ac9 | add ct | AsynkronIT/protoactor-dotnet | src/Proto.Actor/Utils/ConcurrentKeyValueStore.cs | src/Proto.Actor/Utils/ConcurrentKeyValueStore.cs | // -----------------------------------------------------------------------
// <copyright file="ConcurrentKeyValueStore.cs" company="Asynkron AB">
// Copyright (C) 2015-2021 Asynkron AB All rights reserved
// </copyright>
// -----------------------------------------------------------------------
using System.Threa... | // -----------------------------------------------------------------------
// <copyright file="ConcurrentKeyValueStore.cs" company="Asynkron AB">
// Copyright (C) 2015-2021 Asynkron AB All rights reserved
// </copyright>
// -----------------------------------------------------------------------
using System.Threa... | apache-2.0 | C# |
266646d353ba806d765f2dc86e882d7fa1a131ad | Fix issue #2 | WebApiContrib/WebApiContrib.IoC.Ninject,WebApiContrib/WebApiContrib.IoC.Ninject | src/WebApiContrib.IoC.Ninject/NinjectResolver.cs | src/WebApiContrib.IoC.Ninject/NinjectResolver.cs | using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Web.Http.Dependencies;
using Ninject;
using Ninject.Syntax;
namespace WebApiContrib.IoC.Ninject
{
/// <summary>
/// Updated from https://gist.github.com/2417226/040dd842d3dadb810065f1edad7f2594eaebe806
/// </summary>
... | using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Web.Http.Dependencies;
using Ninject;
using Ninject.Syntax;
namespace WebApiContrib.IoC.Ninject
{
/// <summary>
/// Updated from https://gist.github.com/2417226/040dd842d3dadb810065f1edad7f2594eaebe806
/// </summary>
... | mit | C# |
0b42533da9819954842f815897b38ad640ccd481 | Add NuGet restore to cake build | iivchenko/Wem-Studio | Build/build.cake | Build/build.cake | Task("NuGet")
.Does(() =>
{
NuGetRestore("../Src/WEMMS.sln");
});
Task("Default")
.IsDependentOn("NuGet")
.Does(() =>
{
MSBuild("../Src/WEMMS.sln");
});
RunTarget("Default"); | Task("Default")
.Does(() =>
{
MSBuild("..\\Src\\WEMMS.sln");
});
RunTarget("Default"); | mit | C# |
156933880ed8fda83a43716daa7f18561b19e95d | add entry point for CloudBuild. | sassembla/Miyamasu,sassembla/Miyamasu | Assets/MiyamasuTestRunner/Editor/MiyamasuTestIgniter.cs | Assets/MiyamasuTestRunner/Editor/MiyamasuTestIgniter.cs | using UnityEditor;
using UnityEngine;
namespace Miyamasu {
/*
Run tests when Initialize on load.
this thread is Unity Editor's MainThread, is ≒ Unity Player's MainThread.
*/
[InitializeOnLoad] public class MiyamasuTestIgniter {
static MiyamasuTestIgniter () {
#if CLOUDBUILD
{
Debug.Log("in cloudbui... | using UnityEditor;
using UnityEngine;
namespace Miyamasu {
/*
Run tests when Initialize on load.
this thread is Unity Editor's MainThread, is ≒ Unity Player's MainThread.
*/
[InitializeOnLoad] public class MiyamasuTestIgniter {
static MiyamasuTestIgniter () {
#if CLOUDBUILD
{
Debug.Log("in cloudbui... | mit | C# |
77c0a1d8ba6c3e514a10d78a15c5438a9ffef6b1 | check more previous packets for sReturnToLobby | neowutran/OpcodeSearcher | DamageMeter.Core/Heuristic/S_PREPARE_RETURN_TO_LOBBY.cs | DamageMeter.Core/Heuristic/S_PREPARE_RETURN_TO_LOBBY.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tera;
using Tera.Game.Messages;
namespace DamageMeter.Heuristic
{
public class S_PREPARE_RETURN_TO_LOBBY : AbstractPacketHeuristic
{
public new void Process(ParsedMessage message)
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tera.Game.Messages;
namespace DamageMeter.Heuristic
{
public class S_PREPARE_RETURN_TO_LOBBY : AbstractPacketHeuristic
{
public new void Process(ParsedMessage message)
{
... | mit | C# |
9fae02a317ea3a5b0fb223c75ad75b18ff88a193 | Fix compilation of ApplicationTest | Forage/gstreamer-sharp,Forage/gstreamer-sharp,freedesktop-unofficial-mirror/gstreamer__gstreamer-sharp,Forage/gstreamer-sharp,freedesktop-unofficial-mirror/gstreamer__gstreamer-sharp,Forage/gstreamer-sharp,gstreamer-sharp/gstreamer-sharp,GStreamer/gstreamer-sharp,freedesktop-unofficial-mirror/gstreamer__gstreamer-sharp... | tests/ApplicationTest.cs | tests/ApplicationTest.cs | //
// ApplicationTest.cs: NUnit Test Suite for gstreamer-sharp
//
// Authors:
// Aaron Bockover (abockover@novell.com)
//
// (C) 2006 Novell, Inc.
//
using System;
using NUnit.Framework;
[TestFixture]
public class ApplicationTest
{
[Test]
public void Init()
{
Gst.Application.Init();
Gst.... | //
// ApplicationTest.cs: NUnit Test Suite for gstreamer-sharp
//
// Authors:
// Aaron Bockover (abockover@novell.com)
//
// (C) 2006 Novell, Inc.
//
using System;
using NUnit.Framework;
[TestFixture]
public class ApplicationTest
{
[Test]
public void Init()
{
Gst.Application.Init();
Gst.... | lgpl-2.1 | C# |
12a315799fb50404d1bed10923415d423813ed0f | order by name | bendetat/Listy-Azure,bendetat/Listy-Azure | src/Listy.Web/Controllers/Api/ListsController.cs | src/Listy.Web/Controllers/Api/ListsController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Listy.Data.Entities;
using NHibernate;
namespace Listy.Web.Controllers.Api
{
public class ListsController : ApiController
{
private readonly ISessionFactory _session... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Listy.Data.Entities;
using NHibernate;
namespace Listy.Web.Controllers.Api
{
public class ListsController : ApiController
{
private readonly ISessionFactory _session... | apache-2.0 | C# |
54a162e3843649a94be8a94f683107ca2c1623fb | 处理返回对应的异常消息。 :exclamation: | Zongsoft/Zongsoft.Web | src/Http/ExceptionFilter.cs | src/Http/ExceptionFilter.cs | /*
* Authors:
* 钟峰(Popeye Zhong) <zongsoft@gmail.com>
*
* Copyright (C) 2016 Zongsoft Corporation <http://www.zongsoft.com>
*
* This file is part of Zongsoft.Web.
*
* Zongsoft.Web is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publ... | /*
* Authors:
* 钟峰(Popeye Zhong) <zongsoft@gmail.com>
*
* Copyright (C) 2016 Zongsoft Corporation <http://www.zongsoft.com>
*
* This file is part of Zongsoft.Web.
*
* Zongsoft.Web is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publ... | lgpl-2.1 | C# |
38d5e7085515159593bc16cdef7d6fb97fe607dc | Add Roles Index View link to Admin Index View.. | Programazing/Open-School-Library,Programazing/Open-School-Library | src/Open-School-Library/Views/Admin/Index.cshtml | src/Open-School-Library/Views/Admin/Index.cshtml | @*
For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
}
<div class="panel-body">
<h3>Administrator Links:</h3>
<br />
<ul style="list-style: none;">
<li>
<a asp-controller="Roles" asp-action="Index">Roles</a>
<... | @*
For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
}
| mit | C# |
164e88774ea4429525b593432d2fc253c4c59eea | update version | prodot/ReCommended-Extension | Sources/ReCommendedExtension/Properties/AssemblyInfo.cs | Sources/ReCommendedExtension/Properties/AssemblyInfo.cs | using System.Reflection;
using ReCommendedExtension;
// 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(ZoneMarker.ExtensionName)]
[assembly: AssemblyDescript... | using System.Reflection;
using ReCommendedExtension;
// 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(ZoneMarker.ExtensionName)]
[assembly: AssemblyDescript... | apache-2.0 | C# |
d0f8fdb79d41069e2af3898369e22e71d195c097 | Fix unit test failing in Debug11 configuration. | pratikkagda/nuget,jmezach/NuGet2,jmezach/NuGet2,jholovacs/NuGet,indsoft/NuGet2,chocolatey/nuget-chocolatey,indsoft/NuGet2,ctaggart/nuget,alluran/node.net,alluran/node.net,GearedToWar/NuGet2,mrward/NuGet.V2,atheken/nuget,dolkensp/node.net,OneGet/nuget,RichiCoder1/nuget-chocolatey,indsoft/NuGet2,anurse/NuGet,mrward/nuget... | src/Core/Utility/UriUtility.cs | src/Core/Utility/UriUtility.cs | using System;
using System.IO;
using System.IO.Packaging;
using System.Linq;
namespace NuGet
{
internal static class UriUtility
{
/// <summary>
/// Converts a uri to a path. Only used for local paths.
/// </summary>
internal static string GetPath(Uri uri)
{
... | using System;
using System.IO;
using System.IO.Packaging;
using System.Linq;
namespace NuGet
{
internal static class UriUtility
{
/// <summary>
/// Converts a uri to a path. Only used for local paths.
/// </summary>
internal static string GetPath(Uri uri)
{
... | apache-2.0 | C# |
00efed2c39d67d0d5f4c5b0d21509ebea2fef205 | Add colours for tick judgements | ppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu-new,UselessToucan/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,ppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu | osu.Game/Screens/Play/HUD/HitErrorMeters/HitErrorMeter.cs | osu.Game/Screens/Play/HUD/HitErrorMeters/HitErrorMeter.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics;
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Scoring;
us... | // 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.Containers;
using osu.Game.Graphics;
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Scoring;
us... | mit | C# |
34cd75945bb872a47c560d3724b936ab8a9d524e | return SetDeviceToken | growthbeat/growthbeat-unity,growthbeat/growthbeat-unity,SIROK/growthbeat-unity,SIROK/growthbeat-unity | source/Assets/Plugins/Growthbeat/GrowthPush.cs | source/Assets/Plugins/Growthbeat/GrowthPush.cs | //
// GrowthPush.cs
// Growthbeat-unity
//
// Created by Baekwoo Chung on 2015/06/15.
// Copyright (c) 2015年 SIROK, Inc. All rights reserved.
//
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
public class GrowthPush {
private s... | //
// GrowthPush.cs
// Growthbeat-unity
//
// Created by Baekwoo Chung on 2015/06/15.
// Copyright (c) 2015年 SIROK, Inc. All rights reserved.
//
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
public class GrowthPush {
private s... | apache-2.0 | C# |
c6086669512365de27a51c45d16f94f8af636f8e | Fix refunder authorization | ucdavis/CRP,ucdavis/CRP,ucdavis/CRP | CRP.Mvc/Controllers/Helpers/Filter/RolesFilter.cs | CRP.Mvc/Controllers/Helpers/Filter/RolesFilter.cs | using System;
using System.Web.Mvc;
using CRP.Controllers.Helpers;
namespace CRP.Controllers.Filter
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
public class AdminOnlyAttribute : AuthorizeAttribute
{
public AdminOnlyAttribute()
{
Roles = RoleNames.Admin;... | using System;
using System.Web.Mvc;
using CRP.Controllers.Helpers;
namespace CRP.Controllers.Filter
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
public class AdminOnlyAttribute : AuthorizeAttribute
{
public AdminOnlyAttribute()
{
Roles = RoleNames.Admin;... | mit | C# |
58af2c918136d6935845032bbd5fc5dd31c64ff5 | Fix puzzle | martincostello/project-euler | src/ProjectEuler/Puzzles/Puzzle092.cs | src/ProjectEuler/Puzzles/Puzzle092.cs | // Copyright (c) Martin Costello, 2015. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.ProjectEuler.Puzzles;
/// <summary>
/// A class representing the solution to <c>https://projecteuler.net/problem... | // Copyright (c) Martin Costello, 2015. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.ProjectEuler.Puzzles;
/// <summary>
/// A class representing the solution to <c>https://projecteuler.net/problem... | apache-2.0 | C# |
a7fd882d7aeeae8c03256fa7e34e0c02e40ade8a | Fix path to SPARQL test suite files | BrightstarDB/BrightstarDB,BrightstarDB/BrightstarDB,BrightstarDB/BrightstarDB,BrightstarDB/BrightstarDB | src/core/BrightstarDB.InternalTests/TestPaths.cs | src/core/BrightstarDB.InternalTests/TestPaths.cs | using System.IO;
using NUnit.Framework;
namespace BrightstarDB.InternalTests
{
internal static class TestPaths
{
public static string DataPath => Path.Combine(TestContext.CurrentContext.TestDirectory, "..\\..\\..\\..\\BrightstarDB.Tests\\Data\\");
}
}
| using System.IO;
using NUnit.Framework;
namespace BrightstarDB.InternalTests
{
internal static class TestPaths
{
public static string DataPath => Path.Combine(TestContext.CurrentContext.TestDirectory, "..\\..\\..\\BrightstarDB.Tests\\Data\\");
}
}
| mit | C# |
8f3fa7cd2661a282a31fbd9eb514d86bce2f872e | Move initialization logic to ctor | mstrother/BmpListener | BmpListener/Bmp/BmpHeader.cs | BmpListener/Bmp/BmpHeader.cs | using System;
using Newtonsoft.Json;
using System.Linq;
using BmpListener;
namespace BmpListener.Bmp
{
public class BmpHeader
{
public BmpHeader(byte[] data)
{
Version = data.First();
//if (Version != 3)
//{
// throw new Exception("invalid BMP... | using System;
using Newtonsoft.Json;
namespace BmpListener.Bmp
{
public class BmpHeader
{
public BmpHeader(byte[] data)
{
ParseBytes(data);
}
public byte Version { get; private set; }
[JsonIgnore]
public uint Length { get; private set; }
p... | mit | C# |
da750a74fc91d26ba39205201a33ac1d6b5b49fb | Add xmldoc mention of valid `OnlineID` values | smoogipoo/osu,ppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipooo/osu,ppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,peppy/osu,peppy/osu-new,smoogipoo/osu | osu.Game/Database/IHasOnlineID.cs | osu.Game/Database/IHasOnlineID.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable enable
namespace osu.Game.Database
{
public interface IHasOnlineID
{
/// <summary>
/// The server-side ID representing this instance, i... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable enable
namespace osu.Game.Database
{
public interface IHasOnlineID
{
/// <summary>
/// The server-side ID representing this instance, i... | mit | C# |
15fbca6b767bc629203c752607332cb6ecc738c5 | Tweak display of BloomMetadataEditorDialog (BL-7381) | BloomBooks/BloomDesktop,gmartin7/myBloomFork,StephenMcConnel/BloomDesktop,gmartin7/myBloomFork,gmartin7/myBloomFork,StephenMcConnel/BloomDesktop,BloomBooks/BloomDesktop,StephenMcConnel/BloomDesktop,StephenMcConnel/BloomDesktop,BloomBooks/BloomDesktop,BloomBooks/BloomDesktop,BloomBooks/BloomDesktop,gmartin7/myBloomFork,... | src/BloomExe/Edit/BloomMetadataEditorDialog.cs | src/BloomExe/Edit/BloomMetadataEditorDialog.cs | using System;
using System.Windows.Forms;
using SIL.Windows.Forms.ClearShare;
using SIL.Windows.Forms.ClearShare.WinFormsUI;
using L10NSharp;
namespace Bloom.Edit
{
public class BloomMetadataEditorDialog : MetadataEditorDialog
{
public CheckBox _replaceCopyrightCheckbox;
public BloomMetadataEditorDialog(Metadat... | using System;
using System.Windows.Forms;
using SIL.Windows.Forms.ClearShare;
using SIL.Windows.Forms.ClearShare.WinFormsUI;
using L10NSharp;
namespace Bloom.Edit
{
public class BloomMetadataEditorDialog : MetadataEditorDialog
{
public CheckBox _replaceCopyrightCheckbox;
public BloomMetadataEditorDialog(Metadat... | mit | C# |
0925a8413bb672b9aac5d98bf0e19ccd6913c114 | fix get author by id | QubizSolutions/mvc5-ng2-material2,QubizSolutions/mvc5-ng2-material2,QubizSolutions/mvc5-ng2-material2,QubizSolutions/mvc5-ng2-material2 | src/DA/Repositories/Author/AuthorRepository.cs | src/DA/Repositories/Author/AuthorRepository.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tesseract.DA.Author;
using Tesseract.DA.Author.Contract;
namespace Tesseract.DA.Repositories
{
public class AuthorRepository : BaseRepository<Author.Entity.Author>, IAuthorRepository
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tesseract.DA.Author;
using Tesseract.DA.Author.Contract;
namespace Tesseract.DA.Repositories
{
public class AuthorRepository : BaseRepository<Author.Entity.Author>, IAuthorRepository
{
... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.