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 |
|---|---|---|---|---|---|---|---|---|---|
4fad711221e30aa4a0f0702b99ade16795f1ceb0 | Conditional-Statements-Homework/CheckPlayCard/CheckPlayCard.cs | Conditional-Statements-Homework/CheckPlayCard/CheckPlayCard.cs | /*Problem 3. Check for a Play Card
Classical play cards use the following signs to designate the card face: `2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K and A.
Write a program that enters a string and prints “yes” if it is a valid card sign or “no” otherwise. Examples:
character Valid card sign?
5 yes
1 ... | /*Problem 3. Check for a Play Card
Classical play cards use the following signs to designate the card face: `2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K and A.
Write a program that enters a string and prints “yes” if it is a valid card sign or “no” otherwise. Examples:
character Valid card sign?
5 yes
1 ... | Update to Problem 3. Check for a Play Card | Update to Problem 3. Check for a Play Card
| C# | mit | SimoPrG/CSharpPart1Homework |
3fcc0fa2a1fe52bdc0d668e340ea7afa680e1262 | src/CSharpClient/Bit.CSharpClient.Rest/ViewModel/Implementations/BitHttpClientHandler.cs | src/CSharpClient/Bit.CSharpClient.Rest/ViewModel/Implementations/BitHttpClientHandler.cs | using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace Bit.ViewModel.Implementations
{
public class BitHttpClientHandler : HttpClientHandler
{
protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, Can... | using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace Bit.ViewModel.Implementations
{
public class BitHttpClientHandler :
#if Android
Xamarin.Android.Net.AndroidClientHandler
#elif iOS
NSUrlSessionHandler
#else
HttpClientH... | Use AndroidClientHandler for android & NSUrlSessionHandler for iOS by default in bit cs client | Use AndroidClientHandler for android & NSUrlSessionHandler for iOS by default in bit cs client
| C# | mit | bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework |
f6aa3efa928cbcc18f5fc7d03bc86842b543fded | Csla20Test/Csla.Test/DataBinding/DataBindingApp/ListObject.cs | Csla20Test/Csla.Test/DataBinding/DataBindingApp/ListObject.cs | using System;
using System.Collections.Generic;
using System.Text;
using Csla.Core;
using Csla;
namespace DataBindingApp
{
[Serializable()]
public class ListObject : BusinessListBase<ListObject, ListObject.DataObject>
{
[Serializable()]
public class DataObject : BusinessBase<DataObject>
... | using System;
using System.Collections.Generic;
using System.Text;
using Csla.Core;
using Csla;
namespace DataBindingApp
{
[Serializable()]
public class ListObject : BusinessListBase<ListObject, ListObject.DataObject>
{
[Serializable()]
public class DataObject : BusinessBase<DataObject>
... | Make sure GetIdValue returns a unique value per object. | Make sure GetIdValue returns a unique value per object.
| C# | mit | ronnymgm/csla-light,ronnymgm/csla-light,BrettJaner/csla,jonnybee/csla,JasonBock/csla,MarimerLLC/csla,rockfordlhotka/csla,JasonBock/csla,MarimerLLC/csla,rockfordlhotka/csla,BrettJaner/csla,jonnybee/csla,rockfordlhotka/csla,JasonBock/csla,ronnymgm/csla-light,jonnybee/csla,MarimerLLC/csla,BrettJaner/csla |
9f88c4875ae34786ebe17a88f2117e632f5fd852 | src/ConsoleApp/Table.cs | src/ConsoleApp/Table.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace ConsoleApp
{
public class Table
{
private readonly string tableName;
private readonly IEnumerable<Column> columns;
public Table(string tableName, IEnumerable<Column> columns)
{
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace ConsoleApp
{
public class Table
{
private readonly string tableName;
private readonly IEnumerable<Column> columns;
public Table(string tableName, IEnumerable<Column> columns)
{
... | Fix namespace & class name | Fix namespace & class name
| C# | mit | TeamnetGroup/schema2fm |
7e492c36cd98a82140a70fb5712f60b05552a6db | ExRam.Gremlinq.Providers.CosmosDb.Tests/GroovySerializationTest.cs | ExRam.Gremlinq.Providers.CosmosDb.Tests/GroovySerializationTest.cs | using System;
using System.Linq;
using ExRam.Gremlinq.Core.Tests;
using FluentAssertions;
using Xunit;
using static ExRam.Gremlinq.Core.GremlinQuerySource;
namespace ExRam.Gremlinq.Providers.CosmosDb.Tests
{
public class GroovySerializationTest : GroovySerializationTest<CosmosDbGroovyGremlinQueryElementVisitor>
... | using System;
using System.Linq;
using ExRam.Gremlinq.Core.Tests;
using FluentAssertions;
using Xunit;
using static ExRam.Gremlinq.Core.GremlinQuerySource;
namespace ExRam.Gremlinq.Providers.CosmosDb.Tests
{
public class GroovySerializationTest : GroovySerializationTest<CosmosDbGroovyGremlinQueryElementVisitor>
... | Bring back integration test for CosmosDb. | Bring back integration test for CosmosDb.
| C# | mit | ExRam/ExRam.Gremlinq |
93fb70e0c8bcb4c2d37aef5ef6701aee7709b779 | Octokit/Helpers/EnumExtensions.cs | Octokit/Helpers/EnumExtensions.cs | using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Octokit.Internal;
namespace Octokit
{
static class EnumExtensions
{
[SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase")]
internal static string ToParameter(this Enum prop)
{
... | using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Reflection;
using Octokit.Internal;
namespace Octokit
{
static class EnumExtensions
{
[SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase")]
internal static string ToParameter(this ... | Add back in the reflection namespace | Add back in the reflection namespace | C# | mit | shiftkey-tester-org-blah-blah/octokit.net,hitesh97/octokit.net,daukantas/octokit.net,naveensrinivasan/octokit.net,gdziadkiewicz/octokit.net,thedillonb/octokit.net,editor-tools/octokit.net,shana/octokit.net,shiftkey-tester/octokit.net,mminns/octokit.net,shiftkey-tester-org-blah-blah/octokit.net,ivandrofly/octokit.net,Sa... |
ccb2341434475dced47eddeaff849ab89eeeb5ba | MailChimp.Net.Api/PostHelpers.cs | MailChimp.Net.Api/PostHelpers.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace MailChimp.Net.Api
{
class PostHelpers
{
public static string PostJson(string url, string data)
{
var bytes = Encoding.Default.GetBytes(dat... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace MailChimp.Net.Api
{
class PostHelpers
{
public static string PostJson(string url, string data)
{
var bytes = Encoding.UTF8.GetBytes(data);... | Update default encoding to utf8 for supporting non-us symbols | Update default encoding to utf8 for supporting non-us symbols | C# | mit | sdesyllas/MailChimp.Net |
fc96711b3464fb46050eb34e04532cc3f4ebd540 | Modix/Modules/CodePasteModule.cs | Modix/Modules/CodePasteModule.cs | using Discord.Commands;
using Modix.Services.AutoCodePaste;
using System.Threading.Tasks;
namespace Modix.Modules
{
[Name("Code Paste"), Summary("Paste some code to the internet.")]
public class CodePasteModule : ModuleBase
{
private CodePasteService _service;
public CodePasteModule(CodeP... | using Discord.Commands;
using Modix.Services.AutoCodePaste;
using System.Net;
using System.Threading.Tasks;
namespace Modix.Modules
{
[Name("Code Paste"), Summary("Paste some code to the internet.")]
public class CodePasteModule : ModuleBase
{
private CodePasteService _service;
public Cod... | Handle hastebin failure in the CodePaste module | Handle hastebin failure in the CodePaste module
| C# | mit | mariocatch/MODiX,mariocatch/MODiX,mariocatch/MODiX,mariocatch/MODiX |
4e20847855444cb0b559e2672ee603ffd562dceb | UnitTestProject1/UnitTest1.cs | UnitTestProject1/UnitTest1.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
Assert.AreEqual(ClassLibrary1.Class1.ReturnFive(), 5);
Assert.AreEqual(ClassLibrary1.C... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
Assert.AreEqual(ClassLibrary1.Class1.ReturnFive(), 5);
Assert.AreEqual(ClassLibrary1.C... | Fix failing test ... by removing it | Fix failing test ... by removing it
| C# | unlicense | PhilboBaggins/ci-experiments-dotnetcore,PhilboBaggins/ci-experiments-dotnetcore |
2a76d81f27dcbfb27667de4c4239e7c46000dde6 | src/ReverseMarkdown/Converters/P.cs | src/ReverseMarkdown/Converters/P.cs | using System;
using System.Linq;
using HtmlAgilityPack;
namespace ReverseMarkdown.Converters
{
public class P : ConverterBase
{
public P(Converter converter) : base(converter)
{
Converter.Register("p", this);
}
public override string Convert(HtmlNode... | using System;
using System.Linq;
using HtmlAgilityPack;
namespace ReverseMarkdown.Converters
{
public class P : ConverterBase
{
public P(Converter converter) : base(converter)
{
Converter.Register("p", this);
}
public override string Convert(HtmlNode... | Fix to convert paragraph tag with single carriage return | Fix to convert paragraph tag with single carriage return
| C# | mit | mysticmind/reversemarkdown-net |
c5bdf02db3149a62e55e59715ff76488c3aabfad | Test/ConfigurationTests.cs | Test/ConfigurationTests.cs | using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Microsoft.TeamFoundation.Authentication.Test
{
/// <summary>
/// A class to test <see cref="Configuration"/>.
/// </summary>
[TestClass]
public class ConfigurationTests
... | using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Microsoft.TeamFoundation.Authentication.Test
{
/// <summary>
/// A class to test <see cref="Configuration"/>.
/// </summary>
[TestClass]
public class ConfigurationTests
... | Add test to verify overwriting of values. | Add test to verify overwriting of values.
| C# | mit | Alan-Lun/git-p3 |
21f5514fe11f4ee4c02661134bffbf700e24170d | src/EditorFeatures/TestUtilities/TestExtensionErrorHandler.cs | src/EditorFeatures/TestUtilities/TestExtensionErrorHandler.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using Microsoft.CodeAnalysis.Text;
using Microsoft.VisualStudio.Text... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using Microsoft.CodeAnalysis.Text;
using Microsoft.VisualStudio.Text... | Delete workaround for a long-fixed editor bug | Delete workaround for a long-fixed editor bug
| C# | mit | MichalStrehovsky/roslyn,orthoxerox/roslyn,wvdd007/roslyn,davkean/roslyn,cston/roslyn,AnthonyDGreen/roslyn,weltkante/roslyn,tvand7093/roslyn,gafter/roslyn,eriawan/roslyn,robinsedlaczek/roslyn,weltkante/roslyn,bartdesmet/roslyn,kelltrick/roslyn,CyrusNajmabadi/roslyn,jcouv/roslyn,bartdesmet/roslyn,wvdd007/roslyn,AmadeusW/... |
a4d52ab0963b29d62d4d5374fc05cd58e1211260 | src/keypay-dotnet/ApiFunctions/V2/PayRunDeductionFunction.cs | src/keypay-dotnet/ApiFunctions/V2/PayRunDeductionFunction.cs | using KeyPay.DomainModels.V2.PayRun;
using RestSharp;
namespace KeyPay.ApiFunctions.V2
{
public class PayRunDeductionFunction : BaseFunction
{
public PayRunDeductionFunction(ApiRequestExecutor api)
: base(api)
{
}
public DeductionsResponse List(int businessId, int p... | using KeyPay.DomainModels.V2.PayRun;
using RestSharp;
namespace KeyPay.ApiFunctions.V2
{
public class PayRunDeductionFunction : BaseFunction
{
public PayRunDeductionFunction(ApiRequestExecutor api)
: base(api)
{
}
public DeductionsResponse List(int businessId, int p... | Add function to get deductions from a payrun for a specific employee | Add function to get deductions from a payrun for a specific employee
| C# | mit | KeyPay/keypay-dotnet,KeyPay/keypay-dotnet,KeyPay/keypay-dotnet,KeyPay/keypay-dotnet |
d4badac60f14148750d47f361a6fd831020b5375 | ClubChallengeBeta/App_Start/BundleConfig.cs | ClubChallengeBeta/App_Start/BundleConfig.cs | using System.Web;
using System.Web.Optimization;
namespace ClubChallengeBeta
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new... | using System.Web;
using System.Web.Optimization;
namespace ClubChallengeBeta
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new... | Change app to use minified files | Change app to use minified files
| C# | mit | yyankov/club-challange,yyankov/club-challange,yyankov/club-challange |
aa1997e5e8c4fcbe16fb2fceb351563b58f126dc | NBi.Core/Scalar/Resolver/IScalarResolver.cs | NBi.Core/Scalar/Resolver/IScalarResolver.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBi.Core.Scalar.Resolver
{
public interface IScalarResolver
{
object Execute();
}
public interface IScalarResolver<T> : IScalarResolver
{
T Execute();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBi.Core.Scalar.Resolver
{
public interface IScalarResolver
{
object Execute();
}
public interface IScalarResolver<T> : IScalarResolver
{
new T Execute();
... | Remove warning about hidden versus new | Remove warning about hidden versus new
| C# | apache-2.0 | Seddryck/NBi,Seddryck/NBi |
26591b838aa62eafc225d96fb3fe598e40f7d6c0 | src/Tgstation.Server.Host.Watchdog/WindowsActiveAssemblyDeleter.cs | src/Tgstation.Server.Host.Watchdog/WindowsActiveAssemblyDeleter.cs | using System;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Runtime.InteropServices;
namespace Tgstation.Server.Host.Watchdog
{
/// <summary>
/// See <see cref="IActiveAssemblyDeleter"/> for Windows systems
/// </summary>
sealed class WindowsActiveAssemblyDelete... | using System;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Runtime.InteropServices;
namespace Tgstation.Server.Host.Watchdog
{
/// <summary>
/// See <see cref="IActiveAssemblyDeleter"/> for Windows systems
/// </summary>
sealed class WindowsActiveAssemblyDelete... | Remove windows long filename prefix | Remove windows long filename prefix
| C# | agpl-3.0 | Cyberboss/tgstation-server,tgstation/tgstation-server-tools,tgstation/tgstation-server,tgstation/tgstation-server,Cyberboss/tgstation-server |
a20806d3a8fa68155caef9ad7bb0d488270c667c | MarcelloDB.uwp/Platform.cs | MarcelloDB.uwp/Platform.cs | using MarcelloDB.Collections;
using MarcelloDB.Platform;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Storage;
namespace MarcelloDB.uwp
{
public class Platform : IPlatform
{
public Storage.IStorageStreamProvider Creat... | using MarcelloDB.Collections;
using MarcelloDB.Platform;
using MarcelloDB.Storage;
using MarcelloDB.uwp.Storage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Storage;
namespace MarcelloDB.uwp
{
public class Platform : IPlatform
... | Fix namespace issue in uwp | Fix namespace issue in uwp
| C# | mit | markmeeus/MarcelloDB |
b0bbcf51a2a44e515f563e6075cf0fa99207f66f | BankFileParsers/Classes/BaiDetail.cs | BankFileParsers/Classes/BaiDetail.cs | using System.Collections.Generic;
namespace BankFileParsers
{
public class BaiDetail
{
public string TransactionDetail { get; private set; }
public List<string> DetailContinuation { get; internal set; }
public BaiDetail(string line)
{
TransactionDetail = line;
... | using System.Collections.Generic;
namespace BankFileParsers
{
public class BaiDetail
{
public string TransactionDetail { get; private set; }
public List<string> DetailContinuation { get; internal set; }
public BaiDetail(string line)
{
TransactionDetail = line;
... | Add new method to overwrite TransactionDetail line with a new string. | Add new method to overwrite TransactionDetail line with a new string.
| C# | mit | kenwilcox/BankFileParsers |
81c3c2274f736cbe86ccf258e9a85254368c3d7e | Assets/Scripts/Enemy/Action_Patrol.cs | Assets/Scripts/Enemy/Action_Patrol.cs | using UnityEngine;
[CreateAssetMenu (menuName = "AI/Actions/Enemy_Patrol")]
public class Action_Patrol : Action
{
public override void Act(StateController controller)
{
Act(controller as Enemy_StateController);
}
public void Act(Enemy_StateController controller)
{
Patrol(controller);
}
... | using UnityEngine;
[CreateAssetMenu (menuName = "AI/Actions/Enemy_Patrol")]
public class Action_Patrol : Action
{
public override void Act(StateController controller)
{
Act(controller as Enemy_StateController);
}
public void Act(Enemy_StateController controller)
{
Patrol(controller);
}
... | Replace obsolete NavMeshAgent interface fot he newer one | Replace obsolete NavMeshAgent interface fot he newer one
| C# | apache-2.0 | allmonty/BrokenShield,allmonty/BrokenShield |
703bd707cf3aeeb06010f2b6df9ab5ff846d5856 | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Autofac.Extras.Tests.AggregateService")]
[assembly: AssemblyDescription("")]
| using System.Reflection;
[assembly: AssemblyTitle("Autofac.Extras.Tests.AggregateService")]
| Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major. | Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major.
| C# | mit | autofac/Autofac.Extras.AggregateService |
22e96843046c670e1263fc5146c9e3dbc577e982 | src/Atata.WebDriverExtras/Extensions/IWebElementExtensions.cs | src/Atata.WebDriverExtras/Extensions/IWebElementExtensions.cs | using OpenQA.Selenium;
using System;
namespace Atata
{
// TODO: Review IWebElementExtensions class. Remove unused methods.
public static class IWebElementExtensions
{
public static WebElementExtendedSearchContext Try(this IWebElement element)
{
return new WebElementExtendedSear... | using System;
using System.Linq;
using OpenQA.Selenium;
namespace Atata
{
// TODO: Review IWebElementExtensions class. Remove unused methods.
public static class IWebElementExtensions
{
public static WebElementExtendedSearchContext Try(this IWebElement element)
{
return new Web... | Add HasClass extension method for IWebElement | Add HasClass extension method for IWebElement
| C# | apache-2.0 | atata-framework/atata,YevgeniyShunevych/Atata,atata-framework/atata,YevgeniyShunevych/Atata |
09b1a40f3cce0d9c31bb7d06e4743bf5eaae2019 | XamarinTest/XamarinTest.cs | XamarinTest/XamarinTest.cs | using System;
using Xamarin.Forms;
namespace XamarinTest
{
public class App : Application
{
public App ()
{
// The root page of your application
MainPage = new ContentPage {
Content = new StackLayout {
VerticalOptions = LayoutOptions.Center,
Children = {
new Label {
XAlign = Tex... | using System;
using Xamarin.Forms;
namespace XamarinTest
{
public class App : Application
{
public App ()
{
// The root page of your application
MainPage = new ContentPage {
Content = new StackLayout {
VerticalOptions = LayoutOptions.Center,
Children = {
new Label {
XAlign = Tex... | Use public interface in test app | Use public interface in test app
| C# | mit | Microsoft/ApplicationInsights-Xamarin |
fd4b49e0d5ab086d24225ce69b1a2a267ab4a4d5 | Torch.Server/Managers/RemoteAPIManager.cs | Torch.Server/Managers/RemoteAPIManager.cs | using NLog;
using Sandbox;
using Torch.API;
using Torch.Managers;
using VRage.Dedicated.RemoteAPI;
namespace Torch.Server.Managers
{
public class RemoteAPIManager : Manager
{
/// <inheritdoc />
public RemoteAPIManager(ITorchBase torchInstance) : base(torchInstance)
{
... | using NLog;
using Sandbox;
using Torch.API;
using Torch.Managers;
using VRage.Dedicated.RemoteAPI;
namespace Torch.Server.Managers
{
public class RemoteAPIManager : Manager
{
/// <inheritdoc />
public RemoteAPIManager(ITorchBase torchInstance) : base(torchInstance)
{
... | Fix remote API load order | Fix remote API load order
| C# | apache-2.0 | TorchAPI/Torch |
f09c2c6ab2134813b4161e743abca3da648a36a0 | src/System.Private.ServiceModel/tools/test/SelfHostWcfService/TestResources/BasicAuthResource.cs | src/System.Private.ServiceModel/tools/test/SelfHostWcfService/TestResources/BasicAuthResource.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.ServiceModel.Description;
using System.Serv... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.ServiceModel.Description;
using System.Serv... | Fix test failure when BasicAuth tests were first to run | Fix test failure when BasicAuth tests were first to run
The Https BasicAuthentication tests failed were they were the first
scenario tests run after a fresh start of the Bridge. But they succeeded
when other scenario tests ran first.
Root cause was that the BasicAuthResource was not explicitly ensuring
the SSL port ... | C# | mit | iamjasonp/wcf,imcarolwang/wcf,ericstj/wcf,imcarolwang/wcf,MattGal/wcf,dotnet/wcf,dotnet/wcf,mconnew/wcf,iamjasonp/wcf,StephenBonikowsky/wcf,khdang/wcf,shmao/wcf,imcarolwang/wcf,MattGal/wcf,mconnew/wcf,shmao/wcf,ElJerry/wcf,khdang/wcf,ElJerry/wcf,hongdai/wcf,KKhurin/wcf,hongdai/wcf,StephenBonikowsky/wcf,zhenlan/wcf,mcon... |
5285c807f70cdc9b17a08df8891f60ca6d7d4258 | Src/FluentAssertions/Common/Guard.cs | Src/FluentAssertions/Common/Guard.cs | using System;
namespace FluentAssertions.Common
{
internal static class Guard
{
public static void ThrowIfArgumentIsNull<T>([ValidatedNotNull] T obj, string paramName)
{
if (obj is null)
{
throw new ArgumentNullException(paramName);
}
... | using System;
namespace FluentAssertions.Common
{
internal static class Guard
{
public static void ThrowIfArgumentIsNull<T>([ValidatedNotNull] T obj, string paramName)
{
if (obj is null)
{
throw new ArgumentNullException(paramName);
}
... | Add guard methods for Enum Argument OutOfRange check | Add guard methods for Enum Argument OutOfRange check
| C# | apache-2.0 | jnyrup/fluentassertions,jnyrup/fluentassertions,dennisdoomen/fluentassertions,fluentassertions/fluentassertions,fluentassertions/fluentassertions,dennisdoomen/fluentassertions |
a952a2b3cfb17f38f506109b95bd3177eda09e47 | RightpointLabs.Pourcast.Web/Areas/Admin/Views/Tap/Index.cshtml | RightpointLabs.Pourcast.Web/Areas/Admin/Views/Tap/Index.cshtml | @model IEnumerable<RightpointLabs.Pourcast.Web.Areas.Admin.Models.TapModel>
@{
ViewBag.Title = "Index";
}
<h2>Taps</h2>
@foreach (var tap in Model)
{
<div class="col-lg-6">
<h3>@tap.Name</h3>
@if (null == tap.Keg)
{
<h4>No Keg On Tap</h4>
<hr />
}
... | @model IEnumerable<RightpointLabs.Pourcast.Web.Areas.Admin.Models.TapModel>
@{
ViewBag.Title = "Index";
}
<h2>Taps</h2>
@foreach (var tap in Model)
{
<div class="col-lg-6">
<h3>@tap.Name</h3>
@if (null == tap.Keg)
{
<h4>No Keg On Tap</h4>
<hr />
}
... | Add fake pour buttons in admin | Add fake pour buttons in admin
They follow the same API as the Netduino will: 1 StartPour when pressed,
0-N Pouring while button held down, 1 StopPour when button released.
| C# | mit | RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast |
294e744002660ef99b99de95ea81a81d99d78629 | Homunculus/MarekMotykaBot/ExtensionsMethods/StringExtensions.cs | Homunculus/MarekMotykaBot/ExtensionsMethods/StringExtensions.cs | using System.Text.RegularExpressions;
namespace MarekMotykaBot.ExtensionsMethods
{
public static class StringExtensions
{
public static string RemoveRepeatingChars(this string inputString)
{
string newString = string.Empty;
char[] charArray = inputString.ToCharArray();
for (int i = 0; i < charArray.Le... | using System.Text.RegularExpressions;
namespace MarekMotykaBot.ExtensionsMethods
{
public static class StringExtensions
{
public static string RemoveRepeatingChars(this string inputString)
{
string newString = string.Empty;
char[] charArray = inputString.ToCharArray();
for (int i = 0; i < charArray.Le... | Fix regex pattern in removing emotes. | Fix regex pattern in removing emotes.
| C# | mit | Ervie/Homunculus |
325c3ebc780bd48dbd3997c5acbadce15c389d6a | api/CommaDelimitedArrayModelBinder.cs | api/CommaDelimitedArrayModelBinder.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.ModelBinding;
namespace api
{
public class CommaDelimitedArrayModelBinder : IModelBinder
{
pub... | using System;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.ModelBinding;
namespace api
{
public class CommaDelimitedArrayModelBinder : IModelBinder
{
public Task BindModelAsync(ModelBindingContext bindingContext)
... | Add input binder to allow for comma-separated list inputs for API routes | Add input binder to allow for comma-separated list inputs for API routes
Signed-off-by: Max Cairney-Leeming <d90f0d0190ac210d40c0e06a2594c771efeb4f5b@gmail.com>
| C# | mit | mtcairneyleeming/latin |
08f3c8f246b6472cf05bd6728962e56e28b41f8c | Tests/TroubleshootingTests.cs | Tests/TroubleshootingTests.cs | using Core;
using StructureMap;
using System.Diagnostics;
using Xunit;
namespace Tests
{
public class TroubleshootingTests
{
[Fact]
public void ShowBuildPlan()
{
var container = new Container(x =>
{
x.For<IService>().Use<Service>();
}... | using Core;
using StructureMap;
using Xunit;
namespace Tests
{
public class TroubleshootingTests
{
[Fact]
public void ShowBuildPlan()
{
var container = new Container(x =>
{
x.For<IService>().Use<Service>();
});
var buildP... | Modify WhatDoIHave to show expected result | Modify WhatDoIHave to show expected result
| C# | mit | kendaleiv/di-servicelocation-structuremap,kendaleiv/di-servicelocation-structuremap,kendaleiv/di-servicelocation-structuremap |
bf40e69c95280ad374c094a51b62040d1a58220a | Mollie.Api/Models/Payment/PaymentMethod.cs | Mollie.Api/Models/Payment/PaymentMethod.cs | namespace Mollie.Api.Models.Payment {
public static class PaymentMethod {
public const string Bancontact = "bancontact";
public const string BankTransfer = "banktransfer";
public const string Belfius = "belfius";
public const string CreditCard = "creditcard";
public const st... | namespace Mollie.Api.Models.Payment {
public static class PaymentMethod {
public const string Bancontact = "bancontact";
public const string BankTransfer = "banktransfer";
public const string Belfius = "belfius";
public const string CreditCard = "creditcard";
public const st... | Add support for the new upcoming in3 payment method | Add support for the new upcoming in3 payment method
| C# | mit | Viincenttt/MollieApi,Viincenttt/MollieApi |
00fa7f0837ddfbae4bfd933b96b8f7da6fe68afd | src/Rescuer/Rescuer.Management/Controller/RescuerController.cs | src/Rescuer/Rescuer.Management/Controller/RescuerController.cs | using Rescuer.Management.Rescuers;
namespace Rescuer.Management.Controller
{
public class RescuerController : IRescuerController
{
private readonly IRescuerFactory _factory;
public RescuerController(IRescuerFactory factory)
{
_factory = factory;
}
... | using System;
using System.Text;
using Rescuer.Management.Rescuers;
namespace Rescuer.Management.Controller
{
public class RescuerController : IRescuerController
{
private readonly IRescuerFactory _factory;
public RescuerController(IRescuerFactory factory)
{
... | Handle empty entity name in rescuer | Handle empty entity name in rescuer
| C# | mit | jarzynam/continuous,jarzynam/rescuer |
58fe66b729be7cb6debd1e2dabd5d258b2fb1713 | query/test/ReamQuery.Test/Helpers.cs | query/test/ReamQuery.Test/Helpers.cs | namespace ReamQuery.Test
{
using System;
using Xunit;
using ReamQuery.Helpers;
using Microsoft.CodeAnalysis.Text;
public class Helpers
{
[Fact]
public void String_InsertTextAt()
{
var inp = "\r\n text\r\n";
var exp = "\r\n new text\r\n";
... | namespace ReamQuery.Test
{
using System;
using Xunit;
using ReamQuery.Helpers;
using Microsoft.CodeAnalysis.Text;
public class Helpers
{
[Fact]
public void String_InsertTextAt()
{
var inp = Environment.NewLine + " text" + Environment.NewLine;
var... | Fix string test for ubuntu | Fix string test for ubuntu
| C# | mit | stofte/ream-query |
1b2bfd45da8f2ebc5e4110482ada8c311e10728a | src/Core/Messaging/MessageBusBase.cs | src/Core/Messaging/MessageBusBase.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Foundatio.Extensions;
using Foundatio.Utility;
namespace Foundatio.Messaging {
public abstract class MessageBusBase : IMessagePublisher, IDisposable {
pr... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Foundatio.Extensions;
using Foundatio.Utility;
namespace Foundatio.Messaging {
public abstract class MessageBusBase : IMessagePublisher, IDisposable {
pr... | Disable delayed messages to see what effect it has on tests. | Disable delayed messages to see what effect it has on tests.
| C# | apache-2.0 | FoundatioFx/Foundatio,Bartmax/Foundatio,vebin/Foundatio,exceptionless/Foundatio,wgraham17/Foundatio |
58a67b69a949f5e0e5349573a66a9d663f98268c | src/Cake.Figlet.Tests/FigletTests.cs | src/Cake.Figlet.Tests/FigletTests.cs | using System;
using Shouldly;
using Xunit;
namespace Cake.Figlet.Tests
{
public class FigletTests
{
[Fact]
public void Figlet_can_render()
{
const string expected = @"
_ _ _ _ __ __ _ _
| | | | ___ | || | ___ \ \ / ... | using System;
using Shouldly;
using Xunit;
namespace Cake.Figlet.Tests
{
public class FigletTests
{
[Fact]
public void Figlet_can_render()
{
const string expected = @"
_ _ _ _ __ __ _ _
| | | | ___ | || | ___ \ \ /... | Revert "(GH-36) Fix broken test" | Revert "(GH-36) Fix broken test"
This reverts commit e8c0d4bc3a9fcb459096b05b189fd83f5883f1e2.
| C# | mit | enkafan/Cake.Figlet |
1d637d94f69702122f04fd3d33a1d3798055671a | src/ForEachAsyncCanceledException.cs | src/ForEachAsyncCanceledException.cs | namespace System.Collections.Async
{
/// <summary>
/// This exception is thrown when you call <see cref="AsyncEnumerable{T}.Break"/>.
/// </summary>
public sealed class ForEachAsyncCanceledException : OperationCanceledException { }
}
| namespace System.Collections.Async
{
/// <summary>
/// This exception is thrown when you call <see cref="ForEachAsyncExtensions.Break"/>.
/// </summary>
public sealed class ForEachAsyncCanceledException : OperationCanceledException { }
}
| Fix xml comment cref compiler warning | Fix xml comment cref compiler warning
| C# | mit | tyrotoxin/AsyncEnumerable |
ec226cc8b17e04500e4c8559a097dc71695b306b | src/MotleyFlash.AspNetCore.MessageProviders/SessionMessageProvider.cs | src/MotleyFlash.AspNetCore.MessageProviders/SessionMessageProvider.cs | using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;
using System.Text;
namespace MotleyFlash.AspNetCore.MessageProviders
{
public class SessionMessageProvider : IMessageProvider
{
public SessionMessageProvider(ISession session)
{
this.session = session;
}
priva... | using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;
using System.Text;
namespace MotleyFlash.AspNetCore.MessageProviders
{
public class SessionMessageProvider : IMessageProvider
{
public SessionMessageProvider(ISession session)
{
this.session = session;
}
priva... | Remove session-commit statement that is not needed and already handled by middleware | Remove session-commit statement that is not needed and already handled by middleware
Ref. https://github.com/aspnet/Session/blob/dabd28a5d9ac7837afbfce7c8dfa2805a9559857/src/Microsoft.AspNetCore.Session/SessionMiddleware.cs\#L116.
| C# | mit | billboga/motleyflash,billboga/motleyflash |
ed5810aa6f0cfb7121626ac3ce4c2b9bf883adc4 | cslatest/Csla.Test/Silverlight/Server/DataPortal/TestableDataPortal.cs | cslatest/Csla.Test/Silverlight/Server/DataPortal/TestableDataPortal.cs | using System;
using Csla.Server;
namespace Csla.Testing.Business.DataPortal
{
/// <summary>
/// Basically this test class exposes protected DataPortal constructor overloads to the
/// Unit Testing System, allowing for a more fine-grained Unit Tests
/// </summary>
public class TestableDataPortal... | using System;
using Csla.Server;
namespace Csla.Testing.Business.DataPortal
{
/// <summary>
/// Basically this test class exposes protected DataPortal constructor overloads to the
/// Unit Testing System, allowing for a more fine-grained Unit Tests
/// </summary>
public class TestableDataPortal... | Update to use property, not field. bugid: 146 | Update to use property, not field.
bugid: 146
| C# | mit | jonnybee/csla,MarimerLLC/csla,rockfordlhotka/csla,MarimerLLC/csla,JasonBock/csla,BrettJaner/csla,ronnymgm/csla-light,BrettJaner/csla,JasonBock/csla,jonnybee/csla,BrettJaner/csla,rockfordlhotka/csla,MarimerLLC/csla,ronnymgm/csla-light,JasonBock/csla,jonnybee/csla,rockfordlhotka/csla,ronnymgm/csla-light |
151173d7d9e6f0de39c831ee3ee96cf3c0febbda | src/ReactiveUI.Routing.UWP/PagePresenter.cs | src/ReactiveUI.Routing.UWP/PagePresenter.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Core;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
using ReactiveUI.Routing.Pre... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Core;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
using ReactiveUI.Routing.Pre... | Make the UWP page presenter us a common content control | Make the UWP page presenter us a common content control
| C# | mit | KallynGowdy/ReactiveUI.Routing |
12253be382bfdaf4eccca281b47f49070bf5e082 | LibGit2Sharp.Shared/SecureUsernamePasswordCredentials.cs | LibGit2Sharp.Shared/SecureUsernamePasswordCredentials.cs | using System;
using System.Runtime.InteropServices;
using System.Security;
using LibGit2Sharp.Core;
namespace LibGit2Sharp
{
/// <summary>
/// Class that uses <see cref="SecureString"/> to hold username and password credentials for remote repository access.
/// </summary>
public sealed class SecureUse... | using System;
using System.Runtime.InteropServices;
using System.Security;
using LibGit2Sharp.Core;
namespace LibGit2Sharp
{
/// <summary>
/// Class that uses <see cref="SecureString"/> to hold username and password credentials for remote repository access.
/// </summary>
public sealed class SecureUse... | Fix compile error around exporting SecureString | Fix compile error around exporting SecureString
| C# | mit | Zoxive/libgit2sharp,Zoxive/libgit2sharp,PKRoma/libgit2sharp,libgit2/libgit2sharp |
d81639e0dbefaad73dd36aed4ab153ed45ac656d | src/nuclei.build/Properties/AssemblyInfo.cs | src/nuclei.build/Properties/AssemblyInfo.cs | //-----------------------------------------------------------------------
// <copyright company="TheNucleus">
// Copyright (c) TheNucleus. All rights reserved.
// Licensed under the Apache License, Version 2.0 license. See LICENCE.md file in the project root for full license information.
// </copyright>
//-------... | //-----------------------------------------------------------------------
// <copyright company="TheNucleus">
// Copyright (c) TheNucleus. All rights reserved.
// Licensed under the Apache License, Version 2.0 license. See LICENCE.md file in the project root for full license information.
// </copyright>
//-------... | Remove the build attributes because they'll be generated with a full namespace | Remove the build attributes because they'll be generated with a full namespace
references #7
| C# | apache-2.0 | thenucleus/nuclei.build |
43c9d19b125bdeaf9d631a3aa55290c6658c9d95 | plugin-common-cs/Constants.cs | plugin-common-cs/Constants.cs | using System;
using System.Text.RegularExpressions;
namespace Floobits.Common
{
public class Constants {
static public string baseDir = FilenameUtils.concat(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "floobits");
static public string shareDir = FilenameUtils.concat(baseD... | using System;
using System.Text.RegularExpressions;
namespace Floobits.Common
{
public class Constants {
static public string baseDir = baseDirInit();
static public string shareDir = FilenameUtils.concat(baseDir, "share");
static public string version = "0.11";
static public string... | Use the same folder as the JAVA implementation | Use the same folder as the JAVA implementation
| C# | apache-2.0 | Floobits/floobits-vsp |
46a9833e1ff7bed7d9c17c147ec5c5a32e94e6ce | BmpListener.ConsoleExample/Program.cs | BmpListener.ConsoleExample/Program.cs | using System;
using BmpListener.Bmp;
using BmpListener.JSON;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace BmpListener.ConsoleExample
{
internal class Program
{
private static void Main()
{
JsonConvert.DefaultSettings = () =>
{
var s... | using System;
using BmpListener.Bmp;
using BmpListener.JSON;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
namespace BmpListener.ConsoleExample
{
internal class Program
{
private static void Main()
{
JsonConvert.DefaultSettings = () =... | Change default JSON serialization to CamelCase | Change default JSON serialization to CamelCase
| C# | mit | mstrother/BmpListener |
a4fc7e91b171516806ce740a905ca1999be96c62 | Program.cs | Program.cs | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataGenerator
{
class Program
{
static void Main(string[] args)
{
var gen = new Fare.Xeger(ConfigurationSettings.Ap... | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Reactive.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataGenerator
{
class Program
{
static void Main(string[] args)
{
var data = new Fare.... | Use Timer based Observable to generate data | Use Timer based Observable to generate data
| C# | mit | WillemRB/DataGenerator |
10058bed7e1b9277fd7cc89a943cde24d201c320 | Trappist/src/Promact.Trappist.Repository/Questions/QuestionRepository.cs | Trappist/src/Promact.Trappist.Repository/Questions/QuestionRepository.cs | using System.Collections.Generic;
using Promact.Trappist.DomainModel.Models.Question;
using System.Linq;
using Promact.Trappist.DomainModel.DbContext;
namespace Promact.Trappist.Repository.Questions
{
public class QuestionRepository : IQuestionRespository
{
private readonly TrappistDbContext _dbContex... | using System.Collections.Generic;
using Promact.Trappist.DomainModel.Models.Question;
using System.Linq;
using Promact.Trappist.DomainModel.DbContext;
namespace Promact.Trappist.Repository.Questions
{
public class QuestionRepository : IQuestionRespository
{
private readonly TrappistDbContext _dbContex... | Update server side API for single multiple answer question | Update server side API for single multiple answer question
| C# | mit | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist |
b5bedf07b507746e27db21f3411cc28dc81160e1 | Mappy/Models/IMapViewSettingsModel.cs | Mappy/Models/IMapViewSettingsModel.cs | namespace Mappy.Models
{
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using Mappy.Data;
using Mappy.Database;
public interface IMapViewSettingsModel
{
IObservable<bool> GridVisible { get; }
IObservable... | namespace Mappy.Models
{
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using Mappy.Data;
using Mappy.Database;
public interface IMapViewSettingsModel
{
IObservable<bool> GridVisible { get; }
IObservable... | Remove setters from IObservable properties | Remove setters from IObservable properties
| C# | mit | MHeasell/Mappy,MHeasell/Mappy |
d87dca0262705b54e0ffeecf71b93b0843f7ecac | OpeningsMoeWpfClient/FfmpegMovieConverter.cs | OpeningsMoeWpfClient/FfmpegMovieConverter.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpeningsMoeWpfClient
{
class FfmpegMovieConverter : IMovieConverter
{
private string ffmpegPath;
public Task<string> Convert... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpeningsMoeWpfClient
{
class FfmpegMovieConverter : IMovieConverter
{
private string ffmpegPath;
private Task<int> LaunchPro... | Split responsibility of ConvertMovie() method | Split responsibility of ConvertMovie() method
| C# | mit | milleniumbug/OpeningsMoeDesktop |
8f77f22794b96d768c76726cb9b15a801c658614 | Templates/ParenthesizedExpressionTemplate.cs | Templates/ParenthesizedExpressionTemplate.cs | using System.Linq;
using JetBrains.Annotations;
using JetBrains.ReSharper.Feature.Services.Lookup;
using JetBrains.ReSharper.PostfixTemplates.LookupItems;
using JetBrains.ReSharper.Psi.CSharp;
using JetBrains.ReSharper.Psi.CSharp.Tree;
namespace JetBrains.ReSharper.PostfixTemplates.Templates
{
// todo: (Bar) foo.pa... | using System.Linq;
using JetBrains.Annotations;
using JetBrains.ReSharper.Feature.Services.Lookup;
using JetBrains.ReSharper.PostfixTemplates.LookupItems;
using JetBrains.ReSharper.Psi.CSharp;
using JetBrains.ReSharper.Psi.CSharp.Tree;
namespace JetBrains.ReSharper.PostfixTemplates.Templates
{
[PostfixTemplate(
... | Allow .par in auto in case of '(T) expr.par' | Allow .par in auto in case of '(T) expr.par'
| C# | mit | controlflow/resharper-postfix |
e01daa9ba4a10cdcd34267fcec9bac8d92481b2b | src/Orchard.Web/Modules/LETS/Views/Fields/AgileUploader-Photos.cshtml | src/Orchard.Web/Modules/LETS/Views/Fields/AgileUploader-Photos.cshtml | @using So.ImageResizer.Helpers
@{
Style.Include("slimbox2.css");
Script.Require("jQuery").AtFoot();
Script.Include("slimbox2.js").AtFoot();
}
@if (!string.IsNullOrEmpty(Model.ContentField.FileNames))
{
<div class="stripGallery">
@foreach (var fileName in Model.ContentField.FileNames.Split(';')... | @{
Style.Include("slimbox2.css");
Script.Require("jQuery").AtFoot();
Script.Include("slimbox2.js").AtFoot();
}
@if (!string.IsNullOrEmpty(Model.ContentField.FileNames))
{
<div class="stripGallery">
@foreach (var fileName in Model.ContentField.FileNames.Split(';'))
{
<a href=... | Fix AgileUploader (remove SO image resizer) | Fix AgileUploader (remove SO image resizer)
| C# | bsd-3-clause | planetClaire/Orchard-LETS,planetClaire/Orchard-LETS,planetClaire/Orchard-LETS,planetClaire/Orchard-LETS,planetClaire/Orchard-LETS |
b26af61a4caa73af4473eaeed1aace5532db39fa | cmn-tools/suice/suice/SingletonProvider.cs | cmn-tools/suice/suice/SingletonProvider.cs | using System;
namespace CmnTools.Suice
{
/// <summary>
/// @author DisTurBinG
/// </summary>
public class SingletonProvider : AbstractProvider
{
internal object Instance;
public SingletonProvider (Type providedType)
: base(providedType)
{
}
internal virtual void CreateSingletonInsta... | using System;
namespace CmnTools.Suice
{
/// <summary>
/// @author DisTurBinG
/// </summary>
public class SingletonProvider : AbstractProvider
{
internal object Instance;
public SingletonProvider (Type providedType)
: base(providedType)
{
}
internal virtual void CreateSingletonInsta... | Fix for Binding singleton to instance. | Fix for Binding singleton to instance.
| C# | mit | Disturbing/suice |
8585b96efef0bd80e9d798c5443929154adf1ec9 | src/Twilio.Mvc/TwiMLResult.cs | src/Twilio.Mvc/TwiMLResult.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using System.Xml.Linq;
namespace Twilio.TwiML.Mvc
{
public class TwiMLResult : ActionResult
{
XDocument data;
public TwiMLResult()
{
}
public TwiMLResul... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using System.Xml.Linq;
namespace Twilio.TwiML.Mvc
{
public class TwiMLResult : ActionResult
{
XDocument data;
public TwiMLResult()
{
}
public TwiMLResul... | Fix NullReference when using T4MVC | Fix NullReference when using T4MVC
T4MVC tries using the TwilioResponse constructor for the TwiMLResult object when generating the URL using URL.Action which causes a Runtime Exception.
More details can be found at https://t4mvc.codeplex.com/workitem/22 | C# | mit | IRlyDontKnow/twilio-csharp,mplacona/twilio-csharp,twilio/twilio-csharp |
38e539c926fd4eb236602435af24d529c064d5cb | Inscribe/Text/TweetTextCounter.cs | Inscribe/Text/TweetTextCounter.cs | using System.Linq;
using System.Text.RegularExpressions;
namespace Inscribe.Text
{
public static class TweetTextCounter
{
public static int Count(string input)
{
// URL is MAX 19 Chars.
int prevIndex = 0;
int totalCount = 0;
foreach (var m in Reg... | using System.Linq;
using System.Text.RegularExpressions;
namespace Inscribe.Text
{
public static class TweetTextCounter
{
public static int Count(string input)
{
// URL is MAX 20 Chars (if URL has HTTPS scheme, URL is MAX 21 Chars)
int prevIndex = 0;
int tot... | Fix a bug of wrong counting characters with HTTPS URL | Fix a bug of wrong counting characters with HTTPS URL
refs karno/Mystique#38
| C# | mit | fin-alice/Mystique,azyobuzin/Mystique |
e2c0681287b096e25e0e428c3bf39ca7613230b4 | RtdArrayTest/TestFunctions.cs | RtdArrayTest/TestFunctions.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using ExcelDna.Integration;
namespace RtdArrayTest
{
public static class TestFunctions
{
public static object RtdArrayTest(string prefix)
{
object rtdValue = XlCall.RTD("... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using ExcelDna.Integration;
namespace RtdArrayTest
{
public static class TestFunctions
{
public static object RtdArrayTest(string prefix)
{
object rtdValue = XlCall.RTD("... | Add problem function (with IsMacroType=true) | Add problem function (with IsMacroType=true)
| C# | mit | Excel-DNA/Samples |
02ea0fa5667c4b84e8a32da72bae0507ce953745 | Assets/Tests/Narrative/PortraitFlipTest.cs | Assets/Tests/Narrative/PortraitFlipTest.cs | // This code is part of the Fungus library (http://fungusgames.com) maintained by Chris Gregan (http://twitter.com/gofungus).
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEngine;
using System.Collections;
public class PortraitFlipTest... | // This code is part of the Fungus library (http://fungusgames.com) maintained by Chris Gregan (http://twitter.com/gofungus).
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEngine;
using System.Collections;
public class PortraitFlipTest... | Use transform.Find instead of deprecated transform.FindChild | Use transform.Find instead of deprecated transform.FindChild
| C# | mit | lealeelu/Fungus,snozbot/fungus,inarizushi/Fungus,FungusGames/Fungus |
53ed864513ca058343d7d49a7b5ed200c5a2240a | Testing/Editor/InitialInstanceTests.cs | Testing/Editor/InitialInstanceTests.cs | using NUnit.Framework;
namespace FullSerializer.Tests.InitialInstance {
public class SimpleModel {
public int A;
}
public class InitialInstanceTests {
[Test]
public void TestInitialInstance() {
SimpleModel model1 = new SimpleModel { A = 3 };
fsData data;
... | using NUnit.Framework;
namespace FullSerializer.Tests.InitialInstance {
public class SimpleModel {
public int A;
}
public class InitialInstanceTests {
[Test]
public void TestPopulateObject() {
// This test verifies that when we pass in an existing object
//... | Add test description and fix param order in Assert call | Add test description and fix param order in Assert call
| C# | mit | jacobdufault/fullserializer,zodsoft/fullserializer,nuverian/fullserializer,Ksubaka/fullserializer,lazlo-bonin/fullserializer,caiguihou/myprj_02,jacobdufault/fullserializer,karlgluck/fullserializer,shadowmint/fullserializer,jagt/fullserializer,shadowmint/fullserializer,jacobdufault/fullserializer,darress/fullserializer,... |
4e1b2c87d7c0975406bf0692ebbbcb9200feb2f2 | Zermelo.API/Properties/AssemblyInfo.cs | Zermelo.API/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... | Change assembly version from 2.0.0.0 to 2.0.* | Change assembly version from 2.0.0.0 to 2.0.*
| C# | mit | arthurrump/Zermelo.API |
9fe0ccf79deb3a78318ad8814ea6344b01020703 | src/Analyser/KeywordExtractor.cs | src/Analyser/KeywordExtractor.cs | using System.Collections.Generic;
using System.IO;
namespace JiebaNet.Analyser
{
public abstract class KeywordExtractor
{
protected static readonly List<string> DefaultStopWords = new List<string>()
{
"the", "of", "is", "and", "to", "in", "that", "we", "for", "an", "are",
... | using System.Collections.Generic;
using System.IO;
namespace JiebaNet.Analyser
{
public abstract class KeywordExtractor
{
protected static readonly List<string> DefaultStopWords = new List<string>()
{
"the", "of", "is", "and", "to", "in", "that", "we", "for", "an", "are",
... | Use empty stopwords set when the default stopwords file is missing. | Use empty stopwords set when the default stopwords file is missing.
| C# | mit | anderscui/jieba.NET |
8e21f1cd345f0ffbcfcd5e7c22f30beb0f2f452a | SolutionInfo.cs | SolutionInfo.cs | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion(SolutionInfo.Version + ".0")]
[assembly: AssemblyInformationalVersion(SolutionInfo.Version)]
[assembly: AssemblyFileVersion(SolutionInfo.Version + ".0")]
[assembly: ComVisible... | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion(SolutionInfo.Version + ".0")]
[assembly: AssemblyInformationalVersion(SolutionInfo.Version)]
[assembly: AssemblyFileVersion(SolutionInfo.Version + ".0")]
[assembly: ComVisible... | Fix up InternalsVisibleTo to new name | Fix up InternalsVisibleTo to new name
| C# | mit | octokit/octokit.net,cH40z-Lord/octokit.net,Sarmad93/octokit.net,SLdragon1989/octokit.net,thedillonb/octokit.net,editor-tools/octokit.net,octokit-net-test-org/octokit.net,kdolan/octokit.net,shiftkey/octokit.net,rlugojr/octokit.net,TattsGroup/octokit.net,shiftkey-tester/octokit.net,thedillonb/octokit.net,M-Zuber/octokit.... |
76a98fe28bcf3db056401040b962b666f64de96f | EndlessClient/UIControls/PictureBox.cs | EndlessClient/UIControls/PictureBox.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 EOLib;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using XNAControls;
namespace EndlessClient.UIControls
{
public class PictureBox :... | // 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 EOLib;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using XNAControls;
namespace EndlessClient.UIControls
{
public class PictureBox :... | Make SourceRectangle nullable so it doesn't crash. | Make SourceRectangle nullable so it doesn't crash.
| C# | mit | ethanmoffat/EndlessClient |
461ccf361322156e9587d88422bf2a64120a46a6 | Phoebe/Data/ForeignKeyJsonConverter.cs | Phoebe/Data/ForeignKeyJsonConverter.cs | using System;
using Newtonsoft.Json;
namespace Toggl.Phoebe.Data
{
public class ForeignKeyJsonConverter : JsonConverter
{
public override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer)
{
var model = (Model)value;
if (model == null) {
... | using System;
using Newtonsoft.Json;
namespace Toggl.Phoebe.Data
{
public class ForeignKeyJsonConverter : JsonConverter
{
public override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer)
{
var model = (Model)value;
if (model == null) {
... | Make foreign key converter thread-safe. | Make foreign key converter thread-safe.
| C# | bsd-3-clause | ZhangLeiCharles/mobile,eatskolnikov/mobile,eatskolnikov/mobile,masterrr/mobile,peeedge/mobile,ZhangLeiCharles/mobile,masterrr/mobile,peeedge/mobile,eatskolnikov/mobile |
7059310993543eadf31a94b6178d9790fa466de0 | OutlookMatters.Core/Mattermost/v4/RestService.cs | OutlookMatters.Core/Mattermost/v4/RestService.cs | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using OutlookMatters.Core.Http;
using OutlookMatters.Core.Mattermost.v4.Interface;
namespace OutlookMatters.Core.Mattermost.v4
{
public class RestService : IRestService
{
private readonly IHttpClient _httpClient;
public Re... | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using OutlookMatters.Core.Http;
using OutlookMatters.Core.Mattermost.v4.Interface;
namespace OutlookMatters.Core.Mattermost.v4
{
public class RestService : IRestService
{
private readonly IHttpClient _httpClient;
public Re... | Implement rest call to get teams. | Implement rest call to get teams.
| C# | mit | makmu/outlook-matters,makmu/outlook-matters |
2959a622fbca88acb7c2df638c43bea4ecf372ad | Demo/Program.cs | Demo/Program.cs | using System;
using System.Collections.Generic;
using Demo.Endpoints;
using Distributor;
namespace Demo
{
internal class Program
{
private static void Main(string[] args)
{
var distributables = new List<DistributableFile>
{
new DistributableFile
... | using System;
using System.Collections.Generic;
using Demo.Endpoints.FileSystem;
using Demo.Endpoints.Sharepoint;
using Distributor;
namespace Demo
{
internal class Program
{
private static void Main(string[] args)
{
var distributables = new List<DistributableFile>
{
... | Fix import error in demo. | Fix import error in demo.
| C# | mit | justinjstark/Verdeler,justinjstark/Delivered |
3284266192461ae5a55c1079ae131f302fb26535 | Assets/Scripts/UserInput.cs | Assets/Scripts/UserInput.cs | using UnityEngine;
using UnityEngine.EventSystems;
using System.Collections;
public class UserInput : MonoBehaviour, IPointerClickHandler {
// void Start(){}
// void Update(){}
// Mutually exclusive for now, priority is in the following order:
// Left click for human,
// Right for zombie,
// Middle for corpse
... | using UnityEngine;
using UnityEngine.EventSystems;
using System.Collections;
public class UserInput : MonoBehaviour, IPointerClickHandler {
// void Start(){}
// void Update(){}
// Mutually exclusive for now, priority is in the following order:
// Left click for human,
// Right for zombie,
// Middle for corpse
... | Swap human/zombie spawn input so you can spawn zombies on touch screens | Swap human/zombie spawn input so you can spawn zombies on touch screens
| C# | mit | futurechris/zombai |
ed6c3e80233af477dedfd65f7a167f4252133a7d | Mappy/UI/Drawables/DrawableBandbox.cs | Mappy/UI/Drawables/DrawableBandbox.cs | namespace Mappy.UI.Drawables
{
using System;
using System.Drawing;
public class DrawableBandbox : IDrawable, IDisposable
{
private readonly Brush fillBrush;
private readonly Pen borderPen;
public DrawableBandbox(Brush fillBrush, Pen borderPen, Size size)
{... | namespace Mappy.UI.Drawables
{
using System;
using System.Drawing;
public class DrawableBandbox : IDrawable, IDisposable
{
private readonly Brush fillBrush;
private readonly Pen borderPen;
public DrawableBandbox(Brush fillBrush, Pen borderPen, Size size)
{... | Replace default parameter with overload | Replace default parameter with overload
| C# | mit | MHeasell/Mappy,MHeasell/Mappy |
5c3b92bcae05111479950478d1173ae92c37d749 | MonJobs/Properties/AssemblyInfo.cs | MonJobs/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("Mo... | 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("Mo... | Increase version to 1.9 to reflect the new AdhocQuery capability change. | Increase version to 1.9 to reflect the new AdhocQuery capability change.
| C# | mit | G3N7/MonJobs |
08e5a6c5f8db6ff7c66ccdd9eea0b37c32419620 | McIP/Program.cs | McIP/Program.cs | namespace McIP
{
using System;
using System.Diagnostics;
using System.IO;
public static class Program
{
public static void Main()
{
var si = new ProcessStartInfo("ipconfig", "/all")
{
RedirectStandardOutput = true,
UseShellExe... | namespace McIP
{
using System;
using System.Diagnostics;
using System.IO;
public static class Program
{
public static void Main()
{
var si = new ProcessStartInfo("ipconfig", "/all")
{
RedirectStandardOutput = true,
UseShellExe... | Handle IPv4 Address and IPv6 Address | Handle IPv4 Address and IPv6 Address
| C# | mit | PatrickMcDonald/McIP |
e351af781dec7e9d1ed768ea35bef744f5f1d273 | Trappist/src/Promact.Trappist.Core/Controllers/QuestionController.cs | Trappist/src/Promact.Trappist.Core/Controllers/QuestionController.cs | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.ApplicationClasses;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api")]
public class QuestionController : Controller
{
private readonly IQuestionRepository _quest... | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.ApplicationClasses;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api")]
public class QuestionController : Controller
{
private readonly IQuestionRepository _quest... | Create server side API for single multiple answer question | Create server side API for single multiple answer question
| C# | mit | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist |
659e0bb2007c14d9493468c8bb2631895b7d86c7 | source/Nuke.Common/CI/TeamCity/Configuration/TeamCityScheduledTrigger.cs | source/Nuke.Common/CI/TeamCity/Configuration/TeamCityScheduledTrigger.cs | // Copyright 2019 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using Nuke.Common.Utilities;
namespace Nuke.Common.CI.TeamCity.Configuration
{
public class TeamCityScheduledTrigger : TeamCityTrigger
{
... | // Copyright 2019 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using Nuke.Common.Utilities;
namespace Nuke.Common.CI.TeamCity.Configuration
{
public class TeamCityScheduledTrigger : TeamCityTrigger
{
... | Remove timezone specification for scheduled triggers to use server timezone | Remove timezone specification for scheduled triggers to use server timezone
| C# | mit | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke |
e4f78544f7414b6656229ac4de236e3035cb72ae | TAUtil/Gaf/Structures/GafFrameData.cs | TAUtil/Gaf/Structures/GafFrameData.cs | namespace TAUtil.Gaf.Structures
{
using System.IO;
public struct GafFrameData
{
public ushort Width;
public ushort Height;
public ushort XPos;
public ushort YPos;
public char Unknown1;
public bool Compressed;
public ushort FramePointers;
... | namespace TAUtil.Gaf.Structures
{
using System.IO;
public struct GafFrameData
{
public ushort Width;
public ushort Height;
public ushort XPos;
public ushort YPos;
public byte Unknown1;
public bool Compressed;
public ushort FramePointers;
... | Change char to byte in gaf frame header | Change char to byte in gaf frame header
| C# | mit | MHeasell/TAUtil,MHeasell/TAUtil |
6cc98764d3dbbd69dc10dc9485890ade24463de8 | Palaso/Extensions/StringExtensions.cs | Palaso/Extensions/StringExtensions.cs | using System.Collections.Generic;
namespace Palaso.Extensions
{
public static class StringExtensions
{
public static List<string> SplitTrimmed(this string s, char seperator)
{
var x = s.Split(seperator);
var r = new List<string>();
foreach (var part in x)
{
r.Add(part.Trim());
}
return r;... | using System.Collections.Generic;
namespace Palaso.Extensions
{
public static class StringExtensions
{
public static List<string> SplitTrimmed(this string s, char seperator)
{
if(s.Trim() == string.Empty)
return new List<string>();
var x = s.Split(seperator);
var r = new List<string>();
foreac... | Make SplitTrimmed give empty list when given white-space-only string | Make SplitTrimmed give empty list when given white-space-only string
| C# | mit | mccarthyrb/libpalaso,hatton/libpalaso,JohnThomson/libpalaso,andrew-polk/libpalaso,ermshiperete/libpalaso,andrew-polk/libpalaso,ddaspit/libpalaso,glasseyes/libpalaso,glasseyes/libpalaso,tombogle/libpalaso,tombogle/libpalaso,chrisvire/libpalaso,ermshiperete/libpalaso,chrisvire/libpalaso,ermshiperete/libpalaso,darcywong00... |
1885cefbd0ebb06d65ed0eb2b0bea014dae8295c | Snittlistan.Test/SerializationTest.cs | Snittlistan.Test/SerializationTest.cs | namespace Snittlistan.Test
{
using System.IO;
using System.Text;
using Models;
using Raven.Imports.Newtonsoft.Json;
using Xunit;
public class SerializationTest : DbTest
{
[Fact]
public void CanSerialize8x4Match()
{
// Arrange
va... | namespace Snittlistan.Test
{
using System.IO;
using System.Text;
using Models;
using Raven.Imports.Newtonsoft.Json;
using Xunit;
public class SerializationTest : DbTest
{
[Fact]
public void CanSerialize8x4Match()
{
// Arrange
va... | Make sure password validation works after saving | Make sure password validation works after saving
| C# | mit | dlidstrom/Snittlistan,dlidstrom/Snittlistan,dlidstrom/Snittlistan |
1f37516455774ebbccae9db8f65a1091b04b690a | NuPack.Dialog/PackageManagerUI/Converters/StringCollectionsToStringConverter.cs | NuPack.Dialog/PackageManagerUI/Converters/StringCollectionsToStringConverter.cs | using System;
using System.Collections.Generic;
using System.Windows.Data;
namespace NuPack.Dialog.PackageManagerUI {
public class StringCollectionsToStringConverter : IValueConverter {
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo cultur... | using System;
using System.Collections.Generic;
using System.Windows.Data;
namespace NuPack.Dialog.PackageManagerUI {
public class StringCollectionsToStringConverter : IValueConverter {
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo cultur... | Fix bug in the StringCollection converter when DataServicePackage.Authors is a simple string. | Fix bug in the StringCollection converter when DataServicePackage.Authors is a simple string.
| C# | apache-2.0 | pratikkagda/nuget,oliver-feng/nuget,antiufo/NuGet2,ctaggart/nuget,rikoe/nuget,mrward/NuGet.V2,GearedToWar/NuGet2,mono/nuget,alluran/node.net,pratikkagda/nuget,indsoft/NuGet2,jholovacs/NuGet,dolkensp/node.net,alluran/node.net,xoofx/NuGet,OneGet/nuget,zskullz/nuget,atheken/nuget,indsoft/NuGet2,ctaggart/nuget,dolkensp/nod... |
84a1f76a9890e5ddbb3d6bf5b5b701fd1e17489b | Properties/VersionAssemblyInfo.cs | Properties/VersionAssemblyInfo.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34003
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | Split WCF functionality out of Autofac.Extras.Multitenant into a separate assembly/package, Autofac.Extras.Multitenant.Wcf. Both packages are versioned 3.1.0. | Split WCF functionality out of Autofac.Extras.Multitenant into a separate
assembly/package, Autofac.Extras.Multitenant.Wcf. Both packages are versioned
3.1.0.
| C# | mit | caioproiete/Autofac.Wcf,autofac/Autofac.Wcf |
752d16e816feec77d01256fbf6a5f79e5bbeb09f | Entitas.Unity/Assets/Entitas/Unity/VisualDebugging/GameObjectDestroyExtension.cs | Entitas.Unity/Assets/Entitas/Unity/VisualDebugging/GameObjectDestroyExtension.cs | using UnityEngine;
namespace Entitas.Unity.VisualDebugging {
public static class GameObjectDestroyExtension {
public static void DestroyGameObject(this GameObject gameObject) {
#if (UNITY_EDITOR)
if (Application.isPlaying) {
Object.Destroy(gameObject);
... | using UnityEngine;
namespace Entitas.Unity.VisualDebugging {
public static class GameObjectDestroyExtension {
public static void DestroyGameObject(this GameObject gameObject) {
#if (UNITY_EDITOR)
if (Application.isPlaying) {
Object.Destroy(gameObject);
... | Fix Destroy compile time error | Fix Destroy compile time error
Project refused to build post upgrade to 0.30.0.
Error:
error CS0103: The name `Destroy' does not exist in the current context | C# | mit | sschmid/Entitas-CSharp,sschmid/Entitas-CSharp,vkuskov/Entitas-CSharp,vkuskov/Entitas-CSharp |
2256b348fb5a58a215a2a661c8a9185a43f5f947 | CarFuel/Controllers/CarsController.cs | CarFuel/Controllers/CarsController.cs | using CarFuel.DataAccess;
using CarFuel.Models;
using CarFuel.Services;
using Microsoft.AspNet.Identity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace CarFuel.Controllers
{
public class CarsController : Controller
{
private ICarDb ... | using CarFuel.DataAccess;
using CarFuel.Models;
using CarFuel.Services;
using Microsoft.AspNet.Identity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
namespace CarFuel.Controllers
{
public class CarsController : Controller
{
... | Handle null id for Cars/Details action | Handle null id for Cars/Details action
If users don't supply id value in the URL,
instead of displaying YSOD, we are now return BadRequest.
| C# | mit | ajaree/tdd-carfuel,ajaree/tdd-carfuel,ajaree/tdd-carfuel |
801c46ea042f96b729a28c133b35de5c72e83095 | src/Orchard.Web/Modules/Orchard.Users/DataMigrations/UsersDataMigration.cs | src/Orchard.Web/Modules/Orchard.Users/DataMigrations/UsersDataMigration.cs | using Orchard.Data.Migration;
namespace Orchard.Users.DataMigrations {
public class UsersDataMigration : DataMigrationImpl {
public int Create() {
//CREATE TABLE Orchard_Users_UserRecord (Id INTEGER not null, UserName TEXT, Email TEXT, NormalizedUserName TEXT, Password TEXT, PasswordFor... | using Orchard.Data.Migration;
namespace Orchard.Users.DataMigrations {
public class UsersDataMigration : DataMigrationImpl {
public int Create() {
//CREATE TABLE Orchard_Users_UserRecord (Id INTEGER not null, UserName TEXT, Email TEXT, NormalizedUserName TEXT, Password TEXT, PasswordFor... | Fix data migration code for UserRecord | Fix data migration code for UserRecord
Issue came from last merge from Default...
--HG--
branch : dev
| C# | bsd-3-clause | jersiovic/Orchard,planetClaire/Orchard-LETS,qt1/orchard4ibn,KeithRaven/Orchard,grapto/Orchard.CloudBust,DonnotRain/Orchard,princeppy/JPYSites-Orchard-Azure-Live-SourceCode,qt1/orchard4ibn,planetClaire/Orchard-LETS,SzymonSel/Orchard,hbulzy/Orchard,m2cms/Orchard,SouleDesigns/SouleDesigns.Orchard,jchenga/Orchard,JRKelso/O... |
1b8d034f53363ff2cf392df4689e7f24426a8e49 | CITS/Models/MathProblemModel.cs | CITS/Models/MathProblemModel.cs | using System;
namespace CITS.Models
{
public class MathProblemModel : ProblemModel
{
public MathProblemModel(string Problem, string Solution):base(Problem,Solution){}
public override Boolean IsSolutionCorrect(String candidateSolution)
{
return Solution.Equals(candidateSolut... | using System;
using System.Collections.Generic;
namespace CITS.Models
{
public class MathProblemModel : ProblemModel
{
public MathProblemModel(string problem, string solution, List<String> listOfHints):base(problem,solution, listOfHints){}
public override Boolean IsSolutionCorrect(String candi... | Support list of hints per problem | Support list of hints per problem
| C# | mit | Kakarot/CITS |
e76a61e1378d8726c76fd72f4af1abd850ef8674 | src/TypeCatalogParser/Main.cs | src/TypeCatalogParser/Main.cs | using System;
using System.IO;
using System.Linq;
using NuGet.Frameworks;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.DotNet.ProjectModel;
using Microsoft.DotNet.ProjectModel.Graph;
using Microsoft.Extensions.DependencyModel.Resolution;
namespace ConsoleApplication
{
public class Program
{
public... | using System;
using System.IO;
using System.Linq;
using NuGet.Frameworks;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.DotNet.ProjectModel;
using Microsoft.DotNet.ProjectModel.Graph;
using Microsoft.Extensions.DependencyModel.Resolution;
namespace TypeCatalogParser
{
public class Program
{
public ... | Update TypeCatalogParser for CoreConsoleHost removal | Update TypeCatalogParser for CoreConsoleHost removal
| C# | mit | kmosher/PowerShell,bmanikm/PowerShell,KarolKaczmarek/PowerShell,bmanikm/PowerShell,jsoref/PowerShell,JamesWTruher/PowerShell-1,kmosher/PowerShell,JamesWTruher/PowerShell-1,PaulHigin/PowerShell,TravisEz13/PowerShell,TravisEz13/PowerShell,kmosher/PowerShell,bmanikm/PowerShell,KarolKaczmarek/PowerShell,PaulHigin/PowerShel... |
4985332ee2298709b782025c221628f8b663288a | Assets/General/Scripts/DisableMouse.cs | Assets/General/Scripts/DisableMouse.cs |
using UnityEngine;
using UnityEngine.EventSystems;
class DisableMouse : MonoBehaviour
{
// private stuff we don't want the editor to see
private GameObject m_lastSelectedGameObject;
// this is called by unity before start
void Awake()
{
m_lastSelectedGameObject = new GameObject();
}
// this is called by u... |
using UnityEngine;
using UnityEngine.EventSystems;
class DisableMouse : MonoBehaviour
{
// private stuff we don't want the editor to see
private GameObject m_lastSelectedGameObject;
// this is called by unity before start
void Awake()
{
m_lastSelectedGameObject = new GameObject();
}
// this is called by u... | Disable the disable mouse script for now | Disable the disable mouse script for now
| C# | unlicense | mherbold/starflight,mherbold/starflight,mherbold/starflight |
10114fb952c4ea5a486a04d839ffe50960f404e3 | MyPersonalAccountsModel/Controller/IInventoryController.cs | MyPersonalAccountsModel/Controller/IInventoryController.cs | using com.techphernalia.MyPersonalAccounts.Model.Inventory;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace com.techphernalia.MyPersonalAccounts.Model.Controller
{
public interface IInventoryController
{
#region Stock Unit
List<StockUnit> GetAll... | using com.techphernalia.MyPersonalAccounts.Model.Inventory;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace com.techphernalia.MyPersonalAccounts.Model.Controller
{
public interface IInventoryController
{
#region Stock Unit
List<StockUnit> GetAll... | Update interface for return type | Update interface for return type
| C# | mit | techphernalia/MyPersonalAccounts |
ce8c30fd845ad27adb795a797f07378787a5bf93 | Source/Lib/TraktApiSharp/Objects/Get/Shows/Episodes/TraktEpisodeIds.cs | Source/Lib/TraktApiSharp/Objects/Get/Shows/Episodes/TraktEpisodeIds.cs | namespace TraktApiSharp.Objects.Get.Shows.Episodes
{
using Basic;
public class TraktEpisodeIds : TraktIds
{
}
}
| namespace TraktApiSharp.Objects.Get.Shows.Episodes
{
using Basic;
/// <summary>A collection of ids for various web services, including the Trakt id, for a Trakt episode.</summary>
public class TraktEpisodeIds : TraktIds
{
}
}
| Add documentation for episode ids. | Add documentation for episode ids.
| C# | mit | henrikfroehling/TraktApiSharp |
60368346e6f1b6345b90acaf89887a2833789513 | src/GeekLearning.Domain.AspnetCore/DomainExceptionFilter.cs | src/GeekLearning.Domain.AspnetCore/DomainExceptionFilter.cs | namespace GeekLearning.Domain.AspnetCore
{
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
public class DomainExceptionFilter : IActionFilter
{
private ILoggerFactory loggerFactory;
private IOptions<DomainOptions> opti... | namespace GeekLearning.Domain.AspnetCore
{
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
public class DomainExceptionFilter : IActionFilter
{
private ILoggerFactory loggerFactory;
private IOptions<DomainOptions> opti... | Fix DomainException LogError parameter order | Fix DomainException LogError parameter order
| C# | mit | geeklearningio/gl-dotnet-domain |
d3eb24e70a2861cbfbe3f5d3759bf67f1cb23628 | osu.Game/Rulesets/Scoring/Score.cs | osu.Game/Rulesets/Scoring/Score.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 System.Collections.Generic;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Mods;
using osu.Game.Users;
using osu.Game.Rulesets.Replays;
namespace... | // 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 System.Collections.Generic;
using Newtonsoft.Json;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Mods;
using osu.Game.Users;
using osu.Game.Rules... | Fix score retrieval no longer working | Fix score retrieval no longer working
| C# | mit | UselessToucan/osu,2yangk23/osu,peppy/osu,ZLima12/osu,peppy/osu,ppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,johnneijzen/osu,2yangk23/osu,naoey/osu,DrabWeb/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,johnneijzen/osu,smoogipooo/osu,NeoAdonis/osu,DrabWeb/osu,NeoAdonis/osu,smoogipoo/osu,naoey/osu,DrabWeb/osu,EVAST9919/osu,naoey... |
e70a14b83093d3c85e6b6d0c04fe9a78691f149d | twoinone-windows-test/TwoinoneTest.cs | twoinone-windows-test/TwoinoneTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace xwalk
{
class TwoinoneTest
{
static void Main(string[] args)
{
Emulator emulator = new Emulator();
TabletM... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace xwalk
{
class TwoinoneTest
{
static void Main(string[] args)
{
if (args.Length > 0 && args[0] == "emulator")
... | Enable testing in emulated or actual device mode | Enable testing in emulated or actual device mode
| C# | bsd-3-clause | crosswalk-project/crosswalk-extensions-twoinone,crosswalk-project/crosswalk-extensions-twoinone,crosswalk-project/crosswalk-extensions-twoinone |
cafd5d06b4d795234d155dd4148b8b460739eea5 | Lbookshelf/Utils/ChangeThumbnailBehavior.cs | Lbookshelf/Utils/ChangeThumbnailBehavior.cs | using Lbookshelf.Models;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Interactivity;
namespace Lbookshelf.Utils
{
public class ChangeThumbnailBehavior : Behavior<FrameworkElement>
... | using Lbookshelf.Models;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Interactivity;
namespace Lbookshelf.Utils
{
public class ChangeThumbnailBehavior : Behavior<FrameworkElement>
... | Enable the user to choose PNG file as thumbnail. | Enable the user to choose PNG file as thumbnail.
| C# | mit | allenlooplee/Lbookshelf |
2d829dc3539b86d5ee1c7e2116bf45bdea3318ca | Samples/Toolkit/Desktop/MiniCube/Program.cs | Samples/Toolkit/Desktop/MiniCube/Program.cs | // Copyright (c) 2010-2012 SharpDX - Alexandre Mutel
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modi... | // Copyright (c) 2010-2012 SharpDX - Alexandre Mutel
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modi... | Fix compilation error in sample | [Build] Fix compilation error in sample
| C# | mit | VirusFree/SharpDX,fmarrabal/SharpDX,sharpdx/SharpDX,davidlee80/SharpDX-1,andrewst/SharpDX,mrvux/SharpDX,manu-silicon/SharpDX,davidlee80/SharpDX-1,shoelzer/SharpDX,PavelBrokhman/SharpDX,TigerKO/SharpDX,fmarrabal/SharpDX,weltkante/SharpDX,fmarrabal/SharpDX,VirusFree/SharpDX,RobyDX/SharpDX,shoelzer/SharpDX,PavelBrokhman/S... |
4c52edd1e6532f0283cfe1bbc44792d1f7831043 | NBi.Core/Analysis/Metadata/Property.cs | NBi.Core/Analysis/Metadata/Property.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NBi.Core.Analysis.Metadata
{
public class Property : IField
{
public string UniqueName { get; private set; }
public string Caption { get; set; }
public Property(string uniqueNam... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NBi.Core.Analysis.Metadata
{
public class Property : IField
{
public string UniqueName { get; private set; }
public string Caption { get; set; }
public Property(string uniqueNam... | Add method ToString to override default display and replace by Caption | Add method ToString to override default display and replace by Caption
| C# | apache-2.0 | Seddryck/NBi,Seddryck/NBi |
45924abd66fefb31e55d79592271ce0c708288d8 | tests/nxtlibtester/Program.cs | tests/nxtlibtester/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NXTLib;
using System.IO;
namespace nxtlibtester
{
class Program
{
static void Main(string[] args)
{
try
{
string filename = "version... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NXTLib;
using System.IO;
namespace nxtlibtester
{
class Program
{
static void Main(string[] args)
{
try
{
string filename = "../../v... | Add test files to tree | Add test files to tree
| C# | mit | smo-key/NXTLib,smo-key/NXTLib |
8954e14ad293d410593611fcbe29c9dabd25c4a2 | Test/CoreSDK.Test/Net40/Extensibility/Implementation/Platform/PlatformReferencesTests.cs | Test/CoreSDK.Test/Net40/Extensibility/Implementation/Platform/PlatformReferencesTests.cs | namespace Microsoft.ApplicationInsights.Extensibility.Implementation.Platform
{
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Assert = Xunit.Assert;
[TestClass]
public class PlatformReferencesTests
{
[TestMethod]
pu... | namespace Microsoft.ApplicationInsights.Extensibility.Implementation.Platform
{
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Assert = Xunit.Assert;
[TestClass]
public class PlatformReferencesTests
{
[TestMethod]
pu... | Revert "Dummy commit to test PR. No real changes" | Revert "Dummy commit to test PR. No real changes"
This reverts commit 3fcee5225bbf877fb13cdbf87987bfada486cd76.
| C# | mit | pharring/ApplicationInsights-dotnet,pharring/ApplicationInsights-dotnet,Microsoft/ApplicationInsights-dotnet,pharring/ApplicationInsights-dotnet |
8a856105f0522681b77d8f55592ea6bd7f90fa4e | src/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Activity.Current.net45.cs | src/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Activity.Current.net45.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Runtime.Remoting.Messaging;
using System.Security;
namespace System.Diagnostics
{
public partial c... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Runtime.Remoting.Messaging;
using System.Security;
namespace System.Diagnostics
{
// this code is ... | Mark Activity and it's properties as Serializable | Mark Activity and it's properties as Serializable
| C# | mit | richlander/corefx,jlin177/corefx,yizhang82/corefx,ViktorHofer/corefx,axelheer/corefx,wtgodbe/corefx,the-dwyer/corefx,billwert/corefx,krytarowski/corefx,parjong/corefx,zhenlan/corefx,cydhaselton/corefx,alexperovich/corefx,MaggieTsang/corefx,the-dwyer/corefx,mmitche/corefx,ptoonen/corefx,fgreinacher/corefx,Ermiar/corefx,... |
2f927783ad6590452c65960111cb09919fe2c0e5 | src/Microsoft.Language.Xml.Tests/TestApi.cs | src/Microsoft.Language.Xml.Tests/TestApi.cs | using System.Linq;
using Xunit;
namespace Microsoft.Language.Xml.Tests
{
public class TestApi
{
[Fact]
public void TestAttributeValue()
{
var root = Parser.ParseText("<e a=\"\"/>");
var attributeValue = root.Attributes.First().Value;
Asse... | using System.Linq;
using Xunit;
namespace Microsoft.Language.Xml.Tests
{
public class TestApi
{
[Fact]
public void TestAttributeValue()
{
var root = Parser.ParseText("<e a=\"\"/>");
var attributeValue = root.Attributes.First().Value;
Asse... | Add some tests for a bug. | Add some tests for a bug.
| C# | apache-2.0 | KirillOsenkov/XmlParser |
4474c8be125d6236046733da43d63ffcd92fcb14 | src/SharedAssemblyInfo.cs | src/SharedAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyCompany("Andrew Davey")]
[assembly: AssemblyProduct("Cassette")]
[assembly: AssemblyCopyright("Copyright © 2011 Andrew Davey")]
// NOTE: When changing this version, also update Cassette.MSBuild\Cassette.targets to match.
[assembly: AssemblyInformationalVersion("2.0.... | using System.Reflection;
[assembly: AssemblyCompany("Andrew Davey")]
[assembly: AssemblyProduct("Cassette")]
[assembly: AssemblyCopyright("Copyright © 2011 Andrew Davey")]
[assembly: AssemblyInformationalVersion("2.0.0-beta1")]
[assembly: AssemblyVersion("2.0.0.*")]
[assembly: AssemblyFileVersion("2.0.0.0"... | Set nuget package version to 2.0.0-beta1 | Set nuget package version to 2.0.0-beta1
| C# | mit | andrewdavey/cassette,damiensawyer/cassette,honestegg/cassette,andrewdavey/cassette,andrewdavey/cassette,honestegg/cassette,BluewireTechnologies/cassette,BluewireTechnologies/cassette,honestegg/cassette,damiensawyer/cassette,damiensawyer/cassette |
f0b215c0b562906d2eee66554c3b91c8e5a3238c | src/HtmlMinificationMiddleware/HtmlMinificationMiddleware.cs | src/HtmlMinificationMiddleware/HtmlMinificationMiddleware.cs | namespace DotnetThoughts.AspNet
{
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Http;
using System.IO;
using System.Threading.Tasks;
using System.Text;
using System.Text.RegularExpressions;
public class HtmlMinificationMiddleware
{
private RequestDelegate _next;
... | namespace DotnetThoughts.AspNet
{
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Http;
using System.IO;
using System.Threading.Tasks;
using System.Text;
using System.Text.RegularExpressions;
public class HtmlMinificationMiddleware
{
private RequestDelegate _next;
... | Support added for HTML comment removal | Support added for HTML comment removal | C# | mit | anuraj/HtmlMinificationMiddleware |
b13aba07a1968f6d6273327766fd41b135c33668 | LogicalShift.Reason/Clause.cs | LogicalShift.Reason/Clause.cs | using LogicalShift.Reason.Api;
using LogicalShift.Reason.Clauses;
using System;
using System.Linq;
namespace LogicalShift.Reason
{
/// <summary>
/// Methods for creating an altering clauses
/// </summary>
public static class Clause
{
/// <summary>
/// Creates a new negative Horn cl... | using LogicalShift.Reason.Api;
using LogicalShift.Reason.Clauses;
using System;
using System.Linq;
namespace LogicalShift.Reason
{
/// <summary>
/// Methods for creating an altering clauses
/// </summary>
public static class Clause
{
/// <summary>
/// Creates a new negative Horn cl... | Change Always(x) so that it doesn't depend on the 'true' literal | Change Always(x) so that it doesn't depend on the 'true' literal
| C# | apache-2.0 | Logicalshift/Reason |
7760912ffcb638e36c025e465ef9b299912fab59 | osu.Framework/Statistics/GlobalStatistic.cs | osu.Framework/Statistics/GlobalStatistic.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.Bindables;
namespace osu.Framework.Statistics
{
public class GlobalStatistic<T> : IGlobalStatistic
{
public string Group { get; }
... | // 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.Bindables;
namespace osu.Framework.Statistics
{
public class GlobalStatistic<T> : IGlobalStatistic
{
public string Group { get; }
... | Fix initial value not propagating | Fix initial value not propagating
| C# | mit | peppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,smoogipooo/osu-framework |
172a9644b79f6f7c4883d0dd383a70209e7f2449 | dotnet/src/Selenium.WebDriverBackedSelenium/Internal/SeleniumEmulation/Open.cs | dotnet/src/Selenium.WebDriverBackedSelenium/Internal/SeleniumEmulation/Open.cs | using System;
using System.Collections.Generic;
using System.Text;
using OpenQA.Selenium;
using Selenium.Internal.SeleniumEmulation;
namespace Selenium.Internal.SeleniumEmulation
{
/// <summary>
/// Defines the command for the open keyword.
/// </summary>
internal class Open : SeleneseCommand
{
... | using System;
using System.Collections.Generic;
using System.Text;
using OpenQA.Selenium;
using Selenium.Internal.SeleniumEmulation;
namespace Selenium.Internal.SeleniumEmulation
{
/// <summary>
/// Defines the command for the open keyword.
/// </summary>
internal class Open : SeleneseCommand
{
... | Remove trailing slashes from baseUrl in .NET to prevent double slashes in URL | Remove trailing slashes from baseUrl in .NET to prevent double slashes in URL
This change is in the .NET WebDriverBackedSelenium API. Fixes issue #4506.
Signed-off-by Jim Evans <james.h.evans.jr@gmail.com>
| C# | apache-2.0 | joshmgrant/selenium,amikey/selenium,yukaReal/selenium,mestihudson/selenium,clavery/selenium,lukeis/selenium,lukeis/selenium,krosenvold/selenium,MeetMe/selenium,SeleniumHQ/selenium,telefonicaid/selenium,xsyntrex/selenium,gregerrag/selenium,alexec/selenium,asashour/selenium,gurayinan/selenium,sebady/selenium,houchj/selen... |
e519b6f8890ecd08a207427081cbefd27b306e24 | aspnet/4-auth/Controllers/SessionController.cs | aspnet/4-auth/Controllers/SessionController.cs | // Copyright(c) 2016 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | // Copyright(c) 2016 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | Add comment to Auth Login action describing redirect | Add comment to Auth Login action describing redirect
| C# | apache-2.0 | GoogleCloudPlatform/getting-started-dotnet,GoogleCloudPlatform/getting-started-dotnet,GoogleCloudPlatform/getting-started-dotnet |
380c6e4c6f0a4740b541a449efdc7993a1bdae74 | SpotifyAPI/Web/Util.cs | SpotifyAPI/Web/Util.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
namespace SpotifyAPI.Web
{
public static class Util
{
public static string GetStringAttribute<T>(this T en, String separator) where T : struct, IConvertible
{
Enum e = (Enum)(object)en;
... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
namespace SpotifyAPI.Web
{
public static class Util
{
public static string GetStringAttribute<T>(this T en, String separator) where T : struct, IConvertible
{
Enum e = (Enum)(object)en;
... | Use separator when joining string attributes | Use separator when joining string attributes | C# | mit | JohnnyCrazy/SpotifyAPI-NET,JohnnyCrazy/SpotifyAPI-NET,JohnnyCrazy/SpotifyAPI-NET,JohnnyCrazy/SpotifyAPI-NET |
4c77aed687a819e67844c9bb8e6ff6cb362e350b | HermaFx.SettingsAdapter/SettingsAttribute.cs | HermaFx.SettingsAdapter/SettingsAttribute.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HermaFx.Settings
{
[AttributeUsage(AttributeTargets.Interface | AttributeTargets.Property, AllowMultiple = false)]
public sealed class SettingsAttribute : Attribute
{
public const string ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Castle.Components.DictionaryAdapter;
namespace HermaFx.Settings
{
[AttributeUsage(AttributeTargets.Interface | AttributeTargets.Property, AllowMultiple = false)]
public sealed class SettingsAttr... | Implement IPropertyDescriptorInitializer to validate properties on initializing | Implement IPropertyDescriptorInitializer to validate properties on initializing
| C# | mit | evicertia/HermaFx,evicertia/HermaFx,evicertia/HermaFx |
3d6dcba826f4e151db2a570f782f18bc33c8eaa0 | LeetCode/remove_duplicates_sorted_array_2.cs | LeetCode/remove_duplicates_sorted_array_2.cs | using System;
static class Program {
static int RemoveDupes(this int[] a) {
int write = 1;
int read = 0;
bool same = false;
int count = 0;
for (int i = 1; i < a.Length; i++) {
read = i;
if (same && a[read] == a[write]) {
count... | using System;
using System.Linq;
using System.Collections.Generic;
static class Program {
static int RemoveDupes(this int[] a) {
int write = 1;
int read = 0;
bool same = false;
int count = 0;
for (int i = 1; i < a.Length; i++) {
read = i;
if ... | Remove duplicates from sorted array II - Linq | Remove duplicates from sorted array II - Linq
| C# | mit | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews |
eb70ae788c9e037edca47f767265621d2af5b80e | osu.Game/Modes/ScoreProcesssor.cs | osu.Game/Modes/ScoreProcesssor.cs | //Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using osu.Framework.Configuration;
using osu.... | //Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using osu.Framework.Configuration;
using osu.... | Store max combo in ScoreProcessor. | Store max combo in ScoreProcessor.
| C# | mit | UselessToucan/osu,2yangk23/osu,peppy/osu,NeoAdonis/osu,Frontear/osuKyzer,ppy/osu,ppy/osu,nyaamara/osu,theguii/osu,Nabile-Rahmani/osu,peppy/osu,Drezi126/osu,UselessToucan/osu,smoogipoo/osu,ZLima12/osu,DrabWeb/osu,naoey/osu,smoogipoo/osu,johnneijzen/osu,johnneijzen/osu,2yangk23/osu,osu-RP/osu-RP,EVAST9919/osu,naoey/osu,R... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.