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 |
|---|---|---|---|---|---|---|---|---|---|
ec5a34d841aa7bd8801e0ae999f5db9d123debe3 | SCPI.Tests/AUTOSCALE_Tests.cs | SCPI.Tests/AUTOSCALE_Tests.cs | using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
namespace SCPI.Tests
{
public class AUTOSCALE_Tests
{
[Fact]
public void ValidCommand()
{
// Arrange
var cmd = new AUTOSCALE();
var expected = ":AUToscale";
... | Add unit test for autoscale command | Add unit test for autoscale command
| C# | mit | tparviainen/oscilloscope | |
477ff749450b27eb73ca41038b0a29c15df46ed5 | test/SimpleStack.Orm.Tests/AutonumInsertTests.cs | test/SimpleStack.Orm.Tests/AutonumInsertTests.cs | using NUnit.Framework;
using SimpleStack.Orm.Attributes;
namespace SimpleStack.Orm.Tests
{
[TestFixture]
public partial class ExpressionTests
{
public class ModeWithAutoIncrement
{
/// <summary>Gets or sets the identifier.</summary>
/// <value>The identifier.</value>... | Add Autonum and Identity retrieval Tests | Add Autonum and Identity retrieval Tests
| C# | bsd-3-clause | SimpleStack/simplestack.orm,SimpleStack/simplestack.orm | |
82aac8900a43946892d82cce89a5ac0155558dea | libgitface/LinqExtensions.cs | libgitface/LinqExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace libgitface
{
public static class LinqExtensions
{
class DelegateComparer<T, TCompare> : IEqualityComparer<T>
{
Func<T, TCompare> Selector;
public DelegateComparer (Func<T, TCompare> selector) => Selector = selector;
public b... | Add a linq extension to Distinct objects using a Func | Add a linq extension to Distinct objects using a Func
| C# | mit | alanmcgovern/gitymcgitface | |
558b0bd51b3417e72fc4043766672fcee5b521d5 | src/NodaTime.Demo/DateIntervalDemo.cs | src/NodaTime.Demo/DateIntervalDemo.cs | // Copyright 2017 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using NUnit.Framework;
namespace NodaTime.Demo
{
public class DateIntervalDemo
{
[Test]
public void Construction()
{
... | Add snippets for the DateInterval type | Add snippets for the DateInterval type
| C# | apache-2.0 | jskeet/nodatime,malcolmr/nodatime,nodatime/nodatime,malcolmr/nodatime,BenJenkinson/nodatime,nodatime/nodatime,malcolmr/nodatime,jskeet/nodatime,malcolmr/nodatime,BenJenkinson/nodatime | |
395d5776317ec24344e87adec3f83b8527812963 | tests/Nether.Web.IntegrationTests/SwaggerTests.cs | tests/Nether.Web.IntegrationTests/SwaggerTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Xunit;
namespace Nether.Web.IntegrationTests
{
public class SwaggerTests
{
[Fact]
public async Task GET_Swagger_returns_200_OK()
{
... | Add integration test to ensure SwaggerGen runs ok | Add integration test to ensure SwaggerGen runs ok
| C# | mit | brentstineman/nether,navalev/nether,MicrosoftDX/nether,ankodu/nether,ankodu/nether,vflorusso/nether,ankodu/nether,navalev/nether,brentstineman/nether,ankodu/nether,stuartleeks/nether,vflorusso/nether,oliviak/nether,navalev/nether,stuartleeks/nether,vflorusso/nether,vflorusso/nether,navalev/nether,stuartleeks/nether,bre... | |
6474a01737611c8cd978936106a96334c7b8a62b | src/Pather.CSharp/PathElements/EnumerableAccess.cs | src/Pather.CSharp/PathElements/EnumerableAccess.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
namespace Pather.CSharp.PathElements
{
public class EnumerableAccess : IPathElement
{
private string property;
private int index;
public ... | Add PathElement class for array like access | Add PathElement class for array like access
| C# | mit | Domysee/Pather.CSharp | |
d51c28f6f1b76ed8cd0b7a9da206732126020d1a | fierce-galaxy/FierceGalaxyInterface/IGameFacade.cs | fierce-galaxy/FierceGalaxyInterface/IGameFacade.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FierceGalaxyInterface
{
interface IGameFacade
{
IPlayerManager PlayerManager { get; }
}
}
| Add facade for the game (interface) | Add facade for the game (interface)
| C# | apache-2.0 | arkeine/Fierce-Galaxy,arkeine/Fierce-Galaxy | |
baa924121620a9d4b93adb93d876230d0cbabf07 | Source/MQTTnet.Extensions.ManagedClient/ManagedMqttApplicationMessage.cs | Source/MQTTnet.Extensions.ManagedClient/ManagedMqttApplicationMessage.cs | using System;
namespace MQTTnet.Extensions.ManagedClient
{
public class ManagedMqttApplicationMessage : IEquatable<ManagedMqttApplicationMessage>
{
public Guid Id { get; set; } = Guid.NewGuid();
public MqttApplicationMessage ApplicationMessage { get; set; }
public bool Equals(... | Revert "Changes to this file no longer needed" | Revert "Changes to this file no longer needed"
This reverts commit 2c6c3ac6a4d070f6bbab48e2e9123f596bddad5a.
| C# | mit | chkr1011/MQTTnet,chkr1011/MQTTnet,JTrotta/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet,JTrotta/MQTTnet,JTrotta/MQTTnet,chkr1011/MQTTnet,JTrotta/MQTTnet | |
e09380af50ce86ebd1ee6e2f06730ee9e43b3e06 | test/Proxy.Tests/CompositionTests.cs | test/Proxy.Tests/CompositionTests.cs | using System;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.Host.Mef;
using Xunit;
using Xunit.Abstractions;
namespace Moq.Proxy.Tests
{
public class CompositionTests
{
ITestOutputHelper output;
public CompositionTests(ITestOu... | Add test that ensures our exported components can be loaded | Add test that ensures our exported components can be loaded
| C# | apache-2.0 | Moq/moq | |
379fdadbe54e34ea99e57a86106b94bdd9b8bcd9 | osu.Game.Tests/Visual/Editing/TestSceneSetupScreen.cs | osu.Game.Tests/Visual/Editing/TestSceneSetupScreen.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Osu.Beatmaps;
using osu.Game.Screens.Edit;
using osu.Game.Scr... | Add test scene for setup screen | Add test scene for setup screen
| C# | mit | smoogipoo/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu-new,ppy/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,ppy/osu | |
40fc655b50244d0b0d588abb1b97f3ae9cbde831 | osu.Game.Tests/NonVisual/BeatmapSetInfoEqualityTest.cs | osu.Game.Tests/NonVisual/BeatmapSetInfoEqualityTest.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Game.Beatmaps;
namespace osu.Game.Tests.NonVisual
{
[TestFixture]
public class BeatmapSetInfoEqualityTest
{
[Test]
... | Add equality check test to ensure correct values | Add equality check test to ensure correct values
| C# | mit | ppy/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,UselessToucan/osu,johnneijzen/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,johnneijzen/osu,ppy/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,smoogipooo/osu,EVAST9919/osu,peppy/osu-new,2yangk23/osu,peppy/osu,2yangk23/osu,EVAST9919/osu | |
bab239552eefe9597dc4926267fb9bc8ac390529 | src/ServiceFabric.Bond/ByteArrayStateSerializer.cs | src/ServiceFabric.Bond/ByteArrayStateSerializer.cs | using Microsoft.ServiceFabric.Data;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceFabric.Bond
{
public class ByteArrayStateSerializer : IStateSerializer<byte[]>
{
public byte[] Read(BinaryReader bin... | Add in byte array serializer | Add in byte array serializer
| C# | mit | sceneskope/service-fabric | |
9fd2ace6e6ec2b6b1b7d0e0bdc4c6774b030d80b | src/R/Actions/Impl/Utility/SupportedRVersionList.cs | src/R/Actions/Impl/Utility/SupportedRVersionList.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
namespace Microsoft.R.Actions.Utility {
public static class SupportedRVersionList {
// TODO: this probably needs configuration file
... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
namespace Microsoft.R.Actions.Utility {
public static class SupportedRVersionList {
// TODO: this probably needs configuration file
... | Increase R version cap to 3.9 | Increase R version cap to 3.9
| C# | mit | karthiknadig/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArk... |
68028ba9a5318584a91273dcecd3a83850dd942e | python/CSharp/PythonParser.cs | python/CSharp/PythonParser.cs | using Antlr4.Runtime;
namespace PythonParseTree
{
public enum PythonVersion
{
Autodetect,
Python2 = 2,
Python3 = 3
}
public abstract class PythonBaseParser : Parser
{
public PythonVersion Version { get; set; }
protected PythonBaseParser(ITokenStream input) ... | Add PythonBaseParser with CheckVersion() and SetVersion() methods to check specific (Python 2 or 3) syntax | Add PythonBaseParser with CheckVersion() and SetVersion() methods to check specific (Python 2 or 3) syntax
| C# | mit | antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4 | |
87168df2c4b7a7200428b3bf8d10eefcf96b7a9c | src/NuProj.Tests/Infrastructure/Scenario.cs | src/NuProj.Tests/Infrastructure/Scenario.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using NuGet;
namespace NuProj.Tests.Infrastructure
{
public static class Scenario
{
public static async Task<IPackage> RestoreAndBuildSinglePackage(string scenarioName, IDictionary<string... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using NuGet;
namespace NuProj.Tests.Infrastructure
{
public static class Scenario
{
public static async Task<IPackage> RestoreAndBuildSinglePackage(string scenarioName, string packageId =... | Allow to specify which package to assert against | Allow to specify which package to assert against
| C# | mit | faustoscardovi/nuproj,DavidAnson/nuproj,NN---/nuproj,PedroLamas/nuproj,nuproj/nuproj,kovalikp/nuproj,AArnott/nuproj,DavidAnson/nuproj,zbrad/nuproj,ericstj/nuproj,oliver-feng/nuproj |
79e150fa70337335c592f6daa9c04db1c5ad8678 | src/ZobShop.ModelViewPresenter/IViewModelFactory.cs | src/ZobShop.ModelViewPresenter/IViewModelFactory.cs | using ZobShop.ModelViewPresenter.Product.Details;
namespace ZobShop.ModelViewPresenter
{
public interface IViewModelFactory
{
ProductDetailsViewModel CreateProductDetailsViewModel(string name, string category, decimal price, double volume, string maker);
}
}
| Add view model factory interface | Add view model factory interface
| C# | mit | Branimir123/ZobShop,Branimir123/ZobShop,Branimir123/ZobShop | |
1954dea1a82d085839770f51965a41a55c4c7a4b | src/ObjCRuntime/ThreadSafeAttribute.cs | src/ObjCRuntime/ThreadSafeAttribute.cs | //
// ThreadSafe attribute
//
// Copyright 2012, Xamarin Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, cop... | Add [ThreadSafe] attribute so it can be used for documentation purpose (not just for bindings) | Add [ThreadSafe] attribute so it can be used for documentation purpose (not just for bindings)
| C# | apache-2.0 | cwensley/maccore,jorik041/maccore,mono/maccore | |
e93bb4272e7593ab7e5a823787a3f7b2a29f0199 | Tests/WinFormsTests/Converters.cs | Tests/WinFormsTests/Converters.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AgateLib;
using AgateLib.DisplayLib;
using AgateLib.Geometry;
using AgateLib.WinForms;
namespace Tests.WinFormsTests
{
class Converters : AgateApplication, IAgateTest
{
public string Name
{
get { retur... | Add test for winforms converters. | Add test for winforms converters. | C# | mit | eylvisaker/AgateLib | |
fd55f7127cacd0d5f307324b8ca249e1a20c731b | Oberon0.Generator.Msil.Tests/Statements/StatementTests.cs | Oberon0.Generator.Msil.Tests/Statements/StatementTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Oberon0.Generator.Msil.Tests.Statements
{
using System.IO;
using NUnit.Framework;
using Oberon0.Compiler;
using Oberon0.Compiler.Definitions;
[TestFixture]
public cl... | Add generator test for REPEAT | Add generator test for REPEAT
| C# | mit | steven-r/Oberon0Compiler | |
78cf27b445b2d79724bc86dbdb3560d3b537d5b6 | Csp/BaseTypes/MetaExpression.cs | Csp/BaseTypes/MetaExpression.cs | /*
Copyright © Iain McDonald 2010-2019
This file is part of Decider.
Unlike the Expression type which is wholly supported on its own, the MetaExpression relies
on the values of other supporting variables. Thus, if those variables change, the bounds
of the MetaExpression need to be re-evaluated.
*... | Fix Windows file format issues | Fix Windows file format issues | C# | mit | lifebeyondfife/Decider | |
7712d0ee014eacb7d169a6900b7d1ffcdd4b3eff | src/LanguageServer.Engine/Utilities/TextPositions.cs | src/LanguageServer.Engine/Utilities/TextPositions.cs | using System;
using MSBuildProjectTools.LanguageServer.XmlParser;
namespace MSBuildProjectTools.LanguageServer.Utilities
{
/// <summary>
/// A quick-and-dirty calculator for text positions.
/// </summary>
/// <remarks>
/// This could easily be improved by also storing a character sub-total ... | Implement calculation of absolute position in the document text, given a line and column number. | Implement calculation of absolute position in the document text, given a line and column number.
| C# | mit | tintoy/msbuild-project-tools-vscode,tintoy/msbuild-project-tools-vscode | |
adcef19ab25953f003bc150654798f82e739a7d4 | osu.Game.Tests/NonVisual/OngoingOperationTrackerTest.cs | osu.Game.Tests/NonVisual/OngoingOperationTrackerTest.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using NUnit.Framework;
using osu.Framework.Bindables;
using osu.Framework.Testing;
using osu.Game.Screens.OnlinePlay;
using osu.Game.Tests.Visual;
namespac... | Add coverage for operation tracker with failing tests | Add coverage for operation tracker with failing tests
| C# | mit | UselessToucan/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,smoogipooo/osu,ppy/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,peppy/osu-new,smoogipoo/osu,smoogipoo/osu | |
791ebeb63393dcd0be93c336c936c43ba7335d5b | samples/WebApp/StartupWithStaticFileOptions.cs | samples/WebApp/StartupWithStaticFileOptions.cs | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.StaticFiles;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace WebApp
{
/// <summary>
/// Startup configuration example with use... | Add static file options startup sample | Add static file options startup sample
| C# | mit | sergeysolovev/webpack-aspnetcore,sergeysolovev/webpack-aspnetcore,sergeysolovev/webpack-aspnetcore | |
1676b9e10e9061e03074f925c3d448a07fce4568 | src/SharpDoc/Styles/Standard/html/PageFooter.cshtml | src/SharpDoc/Styles/Standard/html/PageFooter.cshtml | @*
// Copyright (c) 2010-2013 SharpDoc - 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, ... | @*
// Copyright (c) 2010-2013 SharpDoc - 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, ... | Update link to SharpaDoc on github | Update link to SharpaDoc on github
| C# | mit | SiliconStudio/SharpDoc,xoofx/SharpDoc,SiliconStudio/SharpDoc,SiliconStudio/SharpDoc,Robmaister/SharpDoc,xoofx/SharpDoc,xoofx/SharpDoc,Robmaister/SharpDoc,Robmaister/SharpDoc |
92e2940d2d15a7d80861abfe75416185ea93955a | src/NUnitFramework/tests/AsyncExecutionApiAdapterTests.cs | src/NUnitFramework/tests/AsyncExecutionApiAdapterTests.cs | // ***********************************************************************
// Copyright (c) 2018 Charlie Poole, Rob Prouse
//
// 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 restri... | Make sure async API tests are testing what we think they’re testing | Make sure async API tests are testing what we think they’re testing
| C# | mit | mjedrzejek/nunit,appel1/nunit,mikkelbu/nunit,NikolayPianikov/nunit,JustinRChou/nunit,JustinRChou/nunit,nunit/nunit,OmicronPersei/nunit,mjedrzejek/nunit,NikolayPianikov/nunit,nunit/nunit,appel1/nunit,OmicronPersei/nunit,mikkelbu/nunit | |
4c388da050675f773b8749fe7e348f88b4455283 | Schedutalk/Schedutalk/Schedutalk/Logic/HttpRequestor.cs | Schedutalk/Schedutalk/Schedutalk/Logic/HttpRequestor.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace Schedutalk.Logic
{
class HttpRequestor
{
public async Task<string> getHttpRequestAsString(Func<string, HttpRequestMessage> requestTask, string input)
... | Implement utlity for httprequest as string | Implement utlity for httprequest as string
| C# | mit | Zalodu/Schedutalk,Zalodu/Schedutalk | |
46d6cea686c615528ec7861d6b9a3587c6a2080f | src/GeekLearning.Test.Integration/Environment/EmptyStartupConfigurationService.cs | src/GeekLearning.Test.Integration/Environment/EmptyStartupConfigurationService.cs | namespace GeekLearning.Test.Integration.Environment
{
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System;
public class StartupConf... | Add empty Startup configuration service implementation | Add empty Startup configuration service implementation
| C# | mit | geeklearningio/Testavior | |
bca280d9747f929437fb6b0581a0d3f1ff08776c | src/Microsoft.AspNet.Routing/Properties/AssemblyInfo.cs | src/Microsoft.AspNet.Routing/Properties/AssemblyInfo.cs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Reflection;
[assembly: AssemblyMetadata("Serviceable", "True")] | Add serviceable attribute to projects. | Add serviceable attribute to projects.
aspnet/DNX#1600
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | |
bb9ffa73c1b93e407911a9a402e7f8ed65bad20d | client/src/Zyborg.Vault.Server/Util/ConfiguredByAttribute.cs | client/src/Zyborg.Vault.Server/Util/ConfiguredByAttribute.cs | using System;
namespace Zyborg.Vault.Server.Util
{
/// <summary>
/// This attribute allows you to specify what type is used to configure
/// the behavior of another type instance, such as a service provider.
/// </summary>
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = tr... | Support meta-data to define config relationship between classes | Support meta-data to define config relationship between classes
This could become useful when doing code analysis and automated doc generation
| C# | mit | zyborg/Zyborg.Vault,zyborg/Zyborg.Vault | |
71e8355de71d274e612768e263a46fcd028cab43 | functions/helloworld/HelloWorld.Tests/FunctionIntegrationTest.cs | functions/helloworld/HelloWorld.Tests/FunctionIntegrationTest.cs | // Copyright 2020 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | Add sample of an HTTP function integration test | Add sample of an HTTP function integration test
| C# | apache-2.0 | GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples | |
d3ee2a0b8ec8286d080b5ecc08b23061a82d2c72 | osu.Game.Rulesets.Mania.Tests/Skinning/TestSceneBarLine.cs | osu.Game.Rulesets.Mania.Tests/Skinning/TestSceneBarLine.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Mania.Beatmaps;
using osu.Game.Rulesets.Mania... | Add test scene for visually adjusting mania `BarLine`s | Add test scene for visually adjusting mania `BarLine`s
| C# | mit | ppy/osu,peppy/osu,ppy/osu,peppy/osu,peppy/osu,ppy/osu | |
fbe9c65d06de67c4930ad34c9c14a91306294a43 | src/Features/LanguageServer/Protocol/Handler/BufferedProgress.cs | src/Features/LanguageServer/Protocol/Handler/BufferedProgress.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.
#nullable enable
using System;
using Microsoft.CodeAnalysis.PooledObjects;
namespace Microsoft.CodeAnalysis.Langu... | Add an abstraction for either reporting an array or results, or streaming them in LSP scenarios. | Add an abstraction for either reporting an array or results, or streaming them in LSP scenarios.
| C# | mit | heejaechang/roslyn,heejaechang/roslyn,diryboy/roslyn,physhi/roslyn,physhi/roslyn,eriawan/roslyn,panopticoncentral/roslyn,sharwell/roslyn,sharwell/roslyn,mavasani/roslyn,AlekseyTs/roslyn,mavasani/roslyn,gafter/roslyn,shyamnamboodiripad/roslyn,KirillOsenkov/roslyn,dotnet/roslyn,AmadeusW/roslyn,wvdd007/roslyn,AmadeusW/ros... | |
49300afad6308ca2334fa0fd911b62d1a41291a0 | src/MassTransit.Tests/Subscriptions/MultipleSubscribers_Specs.cs | src/MassTransit.Tests/Subscriptions/MultipleSubscribers_Specs.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MassTransit.Tests.TextFixtures;
using MassTransit.TestFramework;
using MassTransit.BusConfigurators;
using NUnit.Framework;
using Magnum.TestFramework;
using Magnum;
using Magnum.Extensions;
namespace MassTransit.Tests.Subscri... | Test to repro multiple subscribers issue | Test to repro multiple subscribers issue
| C# | apache-2.0 | petedavis/MassTransit,lahma/MassTransit,lahma/MassTransit,abombss/MassTransit,ccellar/MassTransit,lahma/MassTransit,ccellar/MassTransit,ccellar/MassTransit,abombss/MassTransit,petedavis/MassTransit,vebin/MassTransit,D3-LucaPiombino/MassTransit,lahma/MassTransit,vebin/MassTransit,jsmale/MassTransit,ccellar/MassTransit,a... | |
250dbdb4f8cb918257dcfd9d15907c4a2444ef04 | ThScoreFileConverterTests/ViewModels/AboutWindowViewModelTests.cs | ThScoreFileConverterTests/ViewModels/AboutWindowViewModelTests.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using ThScoreFileConverter.Models;
using ThScoreFileConverter.Properties;
using ThScoreFileConverter.ViewModels;
namespace ThScoreFileConverterTests.ViewModels
{
[TestClass]
public class AboutWindowViewModelTests
{
[TestMethod]
public voi... | Add test cases for ViewModels.AboutWindowViewModel | Add test cases for ViewModels.AboutWindowViewModel
| C# | bsd-2-clause | y-iihoshi/ThScoreFileConverter,y-iihoshi/ThScoreFileConverter | |
3771e39fd9c453deae1d081ddbded0214c1d89f9 | test/EFCore.MySql.Tests/Migrations/MigrationSqlGeneratorMySql56Test.cs | test/EFCore.MySql.Tests/Migrations/MigrationSqlGeneratorMySql56Test.cs | using System;
using System.Diagnostics;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Metadata.Internal;
using Microsoft.EntityFrameworkCore.Migrations.Operations;
using Microsoft.Enti... | Add test suite with tests for MySQL 5.6 | Add test suite with tests for MySQL 5.6
Right now it only overrides the Rename Index test to test that the
generator creates proper statements
| C# | mit | caleblloyd/Pomelo.EntityFrameworkCore.MySql,PomeloFoundation/Pomelo.EntityFrameworkCore.MySql,PomeloFoundation/Pomelo.EntityFrameworkCore.MySql,caleblloyd/Pomelo.EntityFrameworkCore.MySql | |
8978b88f69300d868635d295104d093b0aafe76b | osu.Game.Tests/Visual/Navigation/TestSceneStartupRuleset.cs | osu.Game.Tests/Visual/Navigation/TestSceneStartupRuleset.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Development;
using osu.Game.Configuration;
namespace osu.Game.Tests.Visual.Navigation
{
[TestFixture]
public class Te... | Add test coverage of startup ruleset being non-default | Add test coverage of startup ruleset being non-default
| C# | mit | ppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu | |
cfb3e8f7d4ebaa32ca1100e9280ed8ec281321d2 | PackageViewModel/PackageAnalyzer/NonAssemblyReferenceName.cs | PackageViewModel/PackageAnalyzer/NonAssemblyReferenceName.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.IO;
using System.Linq;
using NuGet;
using NuGetPackageExplorer.Types;
namespace PackageExplorerViewModel.Rules {
[Export(typeof(IPackageRule))]
internal class NonAssemblyReferenceName : IPackageRule... | Add missing file in the previous commit. | Add missing file in the previous commit.
--HG--
branch : 2.0
| C# | mit | NuGetPackageExplorer/NuGetPackageExplorer,dsplaisted/NuGetPackageExplorer,NuGetPackageExplorer/NuGetPackageExplorer,BreeeZe/NuGetPackageExplorer,campersau/NuGetPackageExplorer | |
4b6d15b645ade438b44f959bc56f9d6a1a412a3e | src/BinaryKits.ZPLUtility/Elements/ZPLBarCodeInterleaved2of5.cs | src/BinaryKits.ZPLUtility/Elements/ZPLBarCodeInterleaved2of5.cs | using System;
using System.Collections.Generic;
namespace BinaryKits.Utility.ZPLUtility.Elements
{
/// <summary>
/// Interleaved 2 of 5 Barcode
/// </summary>
public class ZPLBarCodeInterleaved2of5 : ZPLBarcode
{
public bool Mod10CheckDigit { get; private set; }
public ZPLBarCode... | Add Interleaved 2 of 5 Barcode | Add Interleaved 2 of 5 Barcode
| C# | mit | BinaryKits/ZPLUtility | |
4d77b980cbd3e30580d29262dc6f2cd24f7a6a20 | tests/Buildalyzer.Tests/Construction/PackageReferenceFixture.cs | tests/Buildalyzer.Tests/Construction/PackageReferenceFixture.cs | using System;
using System.Xml.Linq;
using Buildalyzer.Construction;
using NUnit.Framework;
using Shouldly;
namespace Buildalyzer.Tests.Construction
{
[TestFixture]
public class PackageReferenceFixture
{
[Test]
public void PackageReferenceWithInclude_Should_ContainName()
{
... | Add unit tests covering update | Add unit tests covering update
| C# | mit | daveaglick/Buildalyzer,daveaglick/Buildalyzer,daveaglick/Buildalyzer | |
932cc120cca843f5a62e9d5518afaf9b231fab36 | TestProjectCoreUseFulFunctions/UnitTestFunctionsString.cs | TestProjectCoreUseFulFunctions/UnitTestFunctionsString.cs | using FonctionsUtiles.Fred.Csharp;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
namespace TestProjectCoreUseFulFunctions
{
[TestClass]
public class UnitTestFunctionsString
{
[DataTestMethod]
[TestCategory("String")]
public void TestMethod_SplitString_One... | Add one unit test to a new method | Add one unit test to a new method
| C# | mit | fredatgithub/UsefulFunctions | |
b0025bbbe6bf5d098922edfff1c10e3c9150ef5f | src/ServiceBus.AttachmentPlugin/IProvideStorageConnectionString.cs | src/ServiceBus.AttachmentPlugin/IProvideStorageConnectionString.cs | namespace ServiceBus.AttachmentPlugin
{
/// <summary>
/// Storage account connection string provider.
/// </summary>
public interface IProvideStorageConnectionString
{
/// <summary>
/// Connection string for storage account to be used.
/// </summary>
string GetConnec... | Add abstraction for connection string | Add abstraction for connection string
| C# | mit | SeanFeldman/ServiceBus.AttachmentPlugin | |
5da54f0298cea17b8ba99cb915caf06b4ff6cd0a | Tests/DisplayTests/FullScreen.cs | Tests/DisplayTests/FullScreen.cs | using System;
using System.Collections.Generic;
using AgateLib;
using AgateLib.DisplayLib;
using AgateLib.Geometry;
using AgateLib.InputLib;
namespace Tests.DisplayTests
{
class HelloWorldProgram : IAgateTest
{
public string Name
{
get { return "Full Screen"; }
}
public string Category
... | Add full screen initialization test. | Add full screen initialization test. | C# | mit | eylvisaker/AgateLib | |
2769d8e8cfdbded19d1ba4407053efb8c162ae43 | osu.Game.Tests/Visual/UserInterface/TestSceneShearedOverlayContainer.cs | osu.Game.Tests/Visual/UserInterface/TestSceneShearedOverlayContainer.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graph... | Add test coverage of `ShearedOverlayContainer` | Add test coverage of `ShearedOverlayContainer`
| C# | mit | NeoAdonis/osu,ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,ppy/osu | |
7737610e396cfd6003aab76e4499557b7c8a0c68 | src/JustGiving.EventStore.Http.SubscriberHost/TypeInheritanceComparer.cs | src/JustGiving.EventStore.Http.SubscriberHost/TypeInheritanceComparer.cs | using System;
using System.Collections.Generic;
namespace JustGiving.EventStore.Http.SubscriberHost
{
/// <summary>
/// Compares Types resulting in the most derived being at the top
/// </summary>
public class TypeInheritanceComparer : IComparer<Type>
{
public int Compare(Type x, Type y)
... | Allow event handler to have many IHandleEventOf<T> implementation and ensure the most relevent Handle method is invoked | Allow event handler to have many IHandleEventOf<T> implementation and ensure the most relevent Handle method is invoked
| C# | apache-2.0 | JustGiving/JustGiving.EventStore.Http | |
e1c5c7a43d8addb3c40a64716978cae385d185f3 | test/Microsoft.DotNet.Compiler.Common.Tests/GivenThatICopyLibraryAssets.cs | test/Microsoft.DotNet.Compiler.Common.Tests/GivenThatICopyLibraryAssets.cs | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using FluentAssertions;
using Xunit;
using Microsoft.DotNet.Cli.Compiler.Common;
using Microsoft.DotNet.ProjectModel.Compilation;
using System.IO... | Add Test for removing readonly flag when copying readonly library assets | Add Test for removing readonly flag when copying readonly library assets
| C# | mit | MichaelSimons/cli,nguerrera/cli,nguerrera/cli,weshaggard/cli,jonsequitur/cli,svick/cli,weshaggard/cli,nguerrera/cli,Faizan2304/cli,blackdwarf/cli,naamunds/cli,mlorbetske/cli,svick/cli,harshjain2/cli,livarcocc/cli-1,naamunds/cli,harshjain2/cli,naamunds/cli,blackdwarf/cli,mlorbetske/cli,weshaggard/cli,AbhitejJohn/cli,naa... | |
cad3e1d533b005c1244529c211981482af6c403a | src/Glimpse.Web.Common/Framework/FixedRequestAuthorizerProvider.cs | src/Glimpse.Web.Common/Framework/FixedRequestAuthorizerProvider.cs | using System.Collections.Generic;
using System.Linq;
namespace Glimpse.Web
{
public class FixedRequestAuthorizerProvider : IRequestAuthorizerProvider
{
public FixedRequestAuthorizerProvider()
: this(Enumerable.Empty<IRequestAuthorizer>())
{
}
public FixedRequestAut... | Add option for fixed provider | Add option for fixed provider
| C# | mit | Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,pranavkm/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,pranavkm/Glimpse.Prototype,zanetdev/Glimpse.Prototyp... | |
0482409a86e5491aa6e8ebe7912dcc52d310b156 | managetimezone.cs | managetimezone.cs | // CSOM Package (16.1.3912.1204)
// Gets and sets the current Time Zone settings from the given SharePoint site
// Get access to source site
using (var ctx = new ClientContext("https://spknowledge.sharepoint.com"))
{
//Provide count and pwd for connecting to the source
var passWord = new SecureString()... | Read and update time zone settings | Read and update time zone settings
Gets the current Time Zone settings from the given SharePoint site and update with a new Time zone settings to the SharePoint online site using Managed Client Object Model | C# | apache-2.0 | spknowledge/CSOM-Samples | |
6465a72060ab9cf3b7515bc288f56576b415bd1f | osu.Game/Screens/Edit/Timing/RowAttributes/AttributeBubbledWord.cs | osu.Game/Screens/Edit/Timing/RowAttributes/AttributeBubbledWord.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Game.Beatmaps.Contro... | Add bubbled word class for use in attribute rows | Add bubbled word class for use in attribute rows
| C# | mit | smoogipoo/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,peppy/osu,peppy/osu,peppy/osu-new,smoogipooo/osu | |
07bd9013585ebae924cf44c501b079bb9d9b01b0 | osu.Game.Tournament.Tests/Components/TestSceneTournamentModDisplay.cs | osu.Game.Tournament.Tests/Components/TestSceneTournamentModDisplay.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using osu.Game.Onli... | Add visual test for Tournament Mod Display | Add visual test for Tournament Mod Display
| C# | mit | ppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu-new,UselessToucan/osu,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,peppy/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu | |
c39c8ef42134fddaefbae055917f9cbca8398926 | src/Glimpse.Web.Common/Framework/FixedRequestRuntimeProvider.cs | src/Glimpse.Web.Common/Framework/FixedRequestRuntimeProvider.cs | using System.Collections.Generic;
using System.Linq;
namespace Glimpse.Web
{
public class FixedRequestRuntimeProvider : IRequestRuntimeProvider
{
public FixedRequestRuntimeProvider()
: this(Enumerable.Empty<IRequestRuntime>())
{
}
public FixedRequestRuntimeProvider... | Add fixed implementation for RequestRuntime provider | Add fixed implementation for RequestRuntime provider
| C# | mit | zanetdev/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Pro... | |
f5d5750cacd40930e9bb85133b9fb4d93e83f93c | src/MassTransit.Tests/Subscriptions/MultipleSubscribers_Specs.cs | src/MassTransit.Tests/Subscriptions/MultipleSubscribers_Specs.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MassTransit.Tests.TextFixtures;
using MassTransit.TestFramework;
using MassTransit.BusConfigurators;
using NUnit.Framework;
using Magnum.TestFramework;
using Magnum;
using Magnum.Extensions;
namespace MassTransit.Tests.Subscri... | Test to repro multiple subscribers issue | Test to repro multiple subscribers issue
Former-commit-id: 49300afad6308ca2334fa0fd911b62d1a41291a0 | C# | apache-2.0 | jacobpovar/MassTransit,jacobpovar/MassTransit,MassTransit/MassTransit,SanSYS/MassTransit,MassTransit/MassTransit,SanSYS/MassTransit,phatboyg/MassTransit,phatboyg/MassTransit | |
d64b236f8619451b3827b3dd1ca6a263ee9c7ea9 | osu.Game/Screens/OnlinePlay/Multiplayer/Spectate/GameplayIsolationContainer.cs | osu.Game/Screens/OnlinePlay/Multiplayer/Spectate/GameplayIsolationContainer.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using o... | Add a container that provides an isolated gameplay context | Add a container that provides an isolated gameplay context
| C# | mit | peppy/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,peppy/osu-new,smoogipoo/osu,UselessToucan/osu,peppy/osu,UselessToucan/osu,ppy/osu,smoogipooo/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu | |
a3eb56102e87edd18b635e34a3240e096834a71d | osu.Framework.Tests/Visual/UserInterface/TestSceneClosableMenu.cs | osu.Framework.Tests/Visual/UserInterface/TestSceneClosableMenu.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.UserInterface;
using osu.Framework.Testing;
namespace osu.Framework.Tests.Visual.UserIn... | Add a test scene for non-top level menus | Add a test scene for non-top level menus
| C# | mit | peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,peppy/osu-framework | |
457e1b54b5656b8a67624d422dfcd23def5870b2 | src/ApiContractGenerator.Tests/Integration/SignatureTests.cs | src/ApiContractGenerator.Tests/Integration/SignatureTests.cs | using NUnit.Framework;
namespace ApiContractGenerator.Tests.Integration
{
public sealed class SignatureTests : IntegrationTests
{
[Test]
public static void Ref_readonly_method_parameter_should_use_in()
{
Assert.That("public struct A { public void Test(in int x) { } }", HasCo... | Add failing tests for in parameters | Add failing tests for in parameters
| C# | mit | jnm2/ApiContractGenerator,jnm2/ApiContractGenerator | |
1055e8092952a88b2bcddbe7dc0ce8a2889c8d23 | BaskervilleWebsite/Baskerville.Models/ViewModels/LastLogsViewModel.cs | BaskervilleWebsite/Baskerville.Models/ViewModels/LastLogsViewModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Baskerville.Models.ViewModels
{
public class LastLogsViewModel
{
public string Username { get; set; }
public DateTime Date { get; set; }
}
}
| Create view model for tracking last logs | Create view model for tracking last logs
| C# | apache-2.0 | MarioZisov/Baskerville,MarioZisov/Baskerville,MarioZisov/Baskerville | |
4dab9a7560e4b0f796dbc4b3729b5e78e7934248 | LogFilterApplication/LogFilterApplication/ExtensionMethods.cs | LogFilterApplication/LogFilterApplication/ExtensionMethods.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LogFilterApplication
{
public static class ExtensionMethods
{
public static string ShiftDecimalPoint(double inputNumber, int decimalToShift)
{
string retVal = "";
inputNumbe... | Add ExtensionMethod class for supporting functions. Added function to shift number of decimal points | Add ExtensionMethod class for supporting functions. Added function to shift number of decimal points
| C# | apache-2.0 | starknguyen/log-filter | |
c6866d8defdee6ef3c5ab20d10cc7a32cfa72735 | src/Snowflake.Support.GraphQLFrameworkQueries/Types/GuidGraphType.cs | src/Snowflake.Support.GraphQLFrameworkQueries/Types/GuidGraphType.cs | using System;
using GraphQL.Language.AST;
using GraphQL.Types;
namespace GraphQL.Types
{
public class GuidGraphType : ScalarGraphType
{
public GuidGraphType()
{
Name = "Guid";
Description = "Globally Unique Identifier.";
}
public override object ParseVa... | Revert "GraphQL: Default to use builtin GUID primitives" | Revert "GraphQL: Default to use builtin GUID primitives"
This reverts commit 867d54929b46a2ef3fb8486e8c5ada134d458778.
| C# | mpl-2.0 | SnowflakePowered/snowflake,SnowflakePowered/snowflake,RonnChyran/snowflake,SnowflakePowered/snowflake,RonnChyran/snowflake,RonnChyran/snowflake | |
c4b3f5d3d0fd15a1d4c776cea53f3280117d24ea | Kentico.Kontent.Delivery.Tests/Factories/DeliveryClientFactoryTests.cs | Kentico.Kontent.Delivery.Tests/Factories/DeliveryClientFactoryTests.cs | using FakeItEasy;
using FluentAssertions;
using Kentico.Kontent.Delivery.Abstractions;
using Kentico.Kontent.Delivery.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
namespace Kentico.Kon... | Add delivery client factory simple tests | Add delivery client factory simple tests
| C# | mit | Kentico/delivery-sdk-net,Kentico/Deliver-.NET-SDK | |
95691ca06c2d33264485a7ea46128633b29d525c | apis/Google.Cloud.Redis.V1/Google.Cloud.Redis.V1/CloudRedisSettings.cs | apis/Google.Cloud.Redis.V1/Google.Cloud.Redis.V1/CloudRedisSettings.cs | // Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | Add partial class for retry settings | Add partial class for retry settings
Only added to V1, as V1Beta1 hasn't (and can't) go GA, so we can
take breaking changes there.
| C# | apache-2.0 | jskeet/gcloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet | |
96ade0e362f0e5d926dda95d42a0447638e25abd | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Shared.UnitTests/ActionResults/FileCallbackResultTests.cs | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Shared.UnitTests/ActionResults/FileCallbackResultTests.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using NUnit.Framework;
using NUnit.Framework.Internal;
using SFA.DAS.CommitmentsV2.Shared.ActionResults;
namespace SFA.DAS.CommitmentsV2.Shared.UnitTests.ActionResults
{
... | Add test file for FileCallbackResult action | Add test file for FileCallbackResult action
| C# | mit | SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments | |
691fc49d8c341e38282f3e8a8badaf0fc2a11b27 | src/Saritasa.Tools.Messages/Queries/PipelineMIddlewares/QueryObjectReleaseMiddleware.cs | src/Saritasa.Tools.Messages/Queries/PipelineMIddlewares/QueryObjectReleaseMiddleware.cs | // Copyright (c) 2015-2016, Saritasa. All rights reserved.
// Licensed under the BSD license. See LICENSE file in the project root for full license information.
namespace Saritasa.Tools.Messages.Queries.PipelineMiddlewares
{
using System;
using Abstractions;
/// <summary>
/// Dispose QueryObject of m... | Add query object release middleware | Add query object release middleware
| C# | bsd-2-clause | Saritasa/SaritasaTools,krasninja/SaritasaTools,krasninja/SaritasaTools | |
69da2611dd69e869061bc1f1b8ae59785f7872f6 | Sound/SoundManager.cs | Sound/SoundManager.cs | using UnityEngine;
using UnityEngine.Assertions;
[RequireComponent(typeof(AudioSource))]
//uses mp3 for music, and ogg for sound effects
public class SoundManager : BaseBehaviour
{
public AudioClip collectPrize;
private new AudioSource audio;
void Awake()
{
audio = GetComponent<AudioSource>();
Assert.IsNotNu... | Add event handler for picking up prizes | Add event handler for picking up prizes
| C# | mit | jguarShark/Unity2D-Components,cmilr/Unity2D-Components | |
415d3d726d794f966cdad78c32fc16d20c09d0c2 | Framework/Lokad.Cqrs.Portable.Tests/Feature.AtomicStorage/Stand_alone_tests.cs | Framework/Lokad.Cqrs.Portable.Tests/Feature.AtomicStorage/Stand_alone_tests.cs | using System;
using System.Runtime.Serialization;
using NUnit.Framework;
namespace Lokad.Cqrs.Feature.AtomicStorage
{
[TestFixture, Explicit]
public sealed class Stand_alone_tests
{
// ReSharper disable InconsistentNaming
[Test]
public void Test()
{
... | Add file to the last commit | Add file to the last commit
| C# | bsd-3-clause | modulexcite/lokad-cqrs | |
e88ea76c6f78fb33377d3a30f0fb00df034d578e | NoAdsHere/Services/Penalties/DeleteMessageJob.cs | NoAdsHere/Services/Penalties/DeleteMessageJob.cs | using Quartz;
using System;
using System.Threading.Tasks;
using Discord;
using Microsoft.Extensions.DependencyInjection;
using NLog;
namespace NoAdsHere.Services.Penalties
{
public static class JobQueue
{
private static IScheduler _scheduler;
public static Task Install(IServiceProvider provid... | Add DeleteMessage Job & TriggerQueue | Add DeleteMessage Job & TriggerQueue
| C# | mit | Nanabell/NoAdsHere | |
1a3807c3974c7260bfd102357dc00bb12d1cc72b | rocketmq-client-donet/Properties/AssemblyInfo.cs | rocketmq-client-donet/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("Roc... | Add properties file for donet | Add properties file for donet
| C# | apache-2.0 | StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTan... | |
0921c00ad8f9ba97b165b8acf093aded5369b9e0 | dotNet/IOC/Unity/RegisterGenericFactoryMethod.cs | dotNet/IOC/Unity/RegisterGenericFactoryMethod.cs | // Problem: You need to register in Unity factory method that has single type parameters (a.k.a generic) to produce some generics
// var logger = ILoggerFactory.CreateLogger<T>()
// var logger = container.Resolve<ILogger<T>>();
public static class LoggerFactoryExtensions
{
/// <summary>
/// Creates a new ... | Add generic ILogger<> registration for Unity | Add generic ILogger<> registration for Unity
| C# | unlicense | lerthe61/Snippets,lerthe61/Snippets | |
d0665375912f89c5b20ef695e8cbdb69b0938ba4 | SCPI/Extensions/ValueTypeExtensions.cs | SCPI/Extensions/ValueTypeExtensions.cs | namespace SCPI.Extensions
{
public static class ValueTypeExtensions
{
/// <summary>
/// Checks that the value is within specified range
/// </summary>
/// <param name="value">Value to check</param>
/// <param name="minValue">The inclusive lower bound</param>
/// ... | Add extension method to check value is in specified range | Add extension method to check value is in specified range
| C# | mit | tparviainen/oscilloscope | |
dd08e83bc4c0f6531f8b3ad360eeba93a04a511f | PortableWordPressApi/WordPressApi.cs | PortableWordPressApi/WordPressApi.cs | using System;
namespace PortableWordPressApi
{
public class WordPressApi
{
public Uri ApiRootUri
{
get;
internal set;
}
}
}
| Create basic class representing an API instance. | Create basic class representing an API instance.
| C# | mit | maxcutler/wp-api-csharp | |
4fa0d2ee1462595d4bc105a1a96ea066b43e415a | Website/OCM.MVC/Views/Stats/_UserComments.cshtml | Website/OCM.MVC/Views/Stats/_UserComments.cshtml | @model IEnumerable<OCM.API.Common.DataSummary.GeneralStats>
<canvas id="userCommentsChart" width="280" height="200"></canvas>
<script>
//Get the context of the canvas element we want to select
var ctx = document.getElementById("userCommentsChart").getContext("2d");
var data = {
labels: [
... | Add charting for user comments stats | Add charting for user comments stats
| C# | mit | openchargemap/ocm-system,openchargemap/ocm-system,openchargemap/ocm-system,openchargemap/ocm-system | |
b8c4716f4918e8b73b4a67614a1847c425af58cc | VersionInfo.cs | VersionInfo.cs | /*
* ******************************************************************************
* Copyright 2014 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. A copy of the License is loc... | /*
* ******************************************************************************
* Copyright 2014 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. A copy of the License is loc... | Change the version number from 1.1.0 to 1.2.0 | Change the version number from 1.1.0 to 1.2.0
| C# | apache-2.0 | RachelTucker/ds3_net_sdk,SpectraLogic/ds3_net_sdk,shabtaisharon/ds3_net_sdk,rpmoore/ds3_net_sdk,shabtaisharon/ds3_net_sdk,SpectraLogic/ds3_net_sdk,rpmoore/ds3_net_sdk,rpmoore/ds3_net_sdk,RachelTucker/ds3_net_sdk,SpectraLogic/ds3_net_sdk,shabtaisharon/ds3_net_sdk,RachelTucker/ds3_net_sdk |
0cb747271bd6b7ab2eb39fca143cc84fd0cbd6eb | XamarinApp/build.cake | XamarinApp/build.cake | #addin "Cake.Xamarin"
var username = Argument("XamarinLicenseUser", "");
var password = Argument("XamarinLicensePassword", "");
var TARGET = Argument ("target", Argument ("t", "Default"));
Task ("Default").Does (() =>
{
RestoreComponents ("./MyTrips.sln", new XamarinComponentRestoreSettings
{
Email = username,
... | Add cake script for components | Add cake script for components
| C# | mit | Azure-Samples/MyDriving,Azure-Samples/MyDriving,Azure-Samples/MyDriving | |
c5810bf469c7f821e2f05b9f27f937f1eee6367d | Release/Tests/Common/TestData/NodejsProjectData/ConsoleApplication1/DoubleCrossHierarchy.cs | Release/Tests/Common/TestData/NodejsProjectData/ConsoleApplication1/DoubleCrossHierarchy.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class CrossHierarchyCut
{
}
}
| Add misssing file from previous checkin | Add misssing file from previous checkin
| C# | apache-2.0 | AustinHull/nodejstools,bowdenk7/nodejstools,np83/nodejstools,necroscope/nodejstools,ahmad-farid/nodejstools,hoanhtien/nodejstools,lukedgr/nodejstools,hoanhtien/nodejstools,redabakr/nodejstools,munyirik/nodejstools,kant2002/nodejstools,redabakr/nodejstools,bowdenk7/nodejstools,ahmad-farid/nodejstools,paladique/nodejstoo... | |
dac2d4e2f0327352fd58cef32be7439cef2e6e3b | client/src/Zyborg.Vault.Server/Storage/Standard.cs | client/src/Zyborg.Vault.Server/Storage/Standard.cs | using System;
using System.Collections.Generic;
namespace Zyborg.Vault.Server.Storage
{
public static class Standard
{
public static readonly IReadOnlyDictionary<string, Type> StorageTypes =
new Dictionary<string, Type>
{
["in-memory"] = typeof(InMemo... | Define a mapping of well-known storage names to impls | Define a mapping of well-known storage names to impls
| C# | mit | zyborg/Zyborg.Vault,zyborg/Zyborg.Vault | |
bfce31ad3f5fa5bc82dec2ea74d76e84434c9436 | CSharpMath.Rendering.Tests/TestCommandDisplay.cs | CSharpMath.Rendering.Tests/TestCommandDisplay.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
namespace CSharpMath.Rendering.Tests {
using BackEnd;
public class TestCommandDisplay {
public TestCommandDisplay() =>
typefaces = Fonts.GlobalTypefaces.ToArray();
readonly Typography.OpenFont.Typeface[... | Test that asserts all characters can be displayed properly | Test that asserts all characters can be displayed properly
| C# | mit | verybadcat/CSharpMath | |
e01e2c3d2be81a7210dbf1a0d0d8255b6bf5f7f1 | src/Markdig/Helpers/StringBuilderExtensions.cs | src/Markdig/Helpers/StringBuilderExtensions.cs | // Copyright (c) Alexandre Mutel. All rights reserved.
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.
using System.Text;
namespace Markdig.Helpers
{
/// <summary>
/// Extensions for StringBuilder with <see cref="StringSlice"/>
... | Add StringBuilder extensions to accept a StringSlice | Add StringBuilder extensions to accept a StringSlice
| C# | bsd-2-clause | lunet-io/markdig | |
14c55350166f383b58e7678f0fdfc625ec20ee3f | tests/Rfc/X25519Tests.cs | tests/Rfc/X25519Tests.cs | using System;
using NSec.Cryptography;
using Xunit;
namespace NSec.Tests.Rfc
{
public static class X25519Tests
{
public static readonly TheoryData<string, string, string> Rfc7748TestVectors = new TheoryData<string, string, string>
{
{ "a546e36bf0527c9d3b16154b82465edd62144c0ac1fc5a1... | Add RFC 7748 test vectors | Add RFC 7748 test vectors
| C# | mit | ektrah/nsec | |
221550a08d68b558f99940ae0c32560728746efc | CSharpMath.Tests/ComposedCharacterTests.cs | CSharpMath.Tests/ComposedCharacterTests.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace CSharpMath.Tests {
public class ComposedCharacterTests {
[Fact]
public void TestCharacterRanges() {
string foo = "\u0104\u0... | Test illustrating a way to find the composed character sequences. They are the indexes missing from the array. | Test illustrating a way to find the composed character sequences. They are the indexes missing from the array.
| C# | mit | verybadcat/CSharpMath | |
00eca8d118dbad76473225f576e24faa870b54d7 | Tests/RandomBytesTest.cs | Tests/RandomBytesTest.cs | using System.Text;
using Sodium;
using NUnit.Framework;
namespace Tests
{
/// <summary>
/// Tests for Random Bytes support
/// </summary>
[TestFixture]
public class RandomBytesTest
{
/// <summary>
/// Does SodiumCore.GetRandomBytes() return something
/// </summary>
[Test]
public void G... | using System.Text;
using Sodium;
using NUnit.Framework;
namespace Tests
{
/// <summary>
/// Tests for Random Bytes support
/// </summary>
[TestFixture]
public class RandomBytesTest
{
/// <summary>
/// Does SodiumCore.GetRandomBytes() return something
/// </summary>
[Test]
public void G... | Change name to match what's being tested | Change name to match what's being tested
| C# | mit | bitbeans/libsodium-net,deckar01/libsodium-net,BurningEnlightenment/libsodium-net,tabrath/libsodium-core,fraga/libsodium-net,adamcaudill/libsodium-net,adamcaudill/libsodium-net,deckar01/libsodium-net,fraga/libsodium-net,BurningEnlightenment/libsodium-net,bitbeans/libsodium-net |
def87ed7822031164bebbf3ef474286a3533c91a | osu.Game.Tests/Visual/Editing/TestSceneEditorNavigation.cs | osu.Game.Tests/Visual/Editing/TestSceneEditorNavigation.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using NUnit.Framework;
using osu.Framework.Extensions;
using osu.Framework.Extensions.IEnumerableExtensions;
using osu.Framework.Extensions.ObjectExten... | Add failing test for editor gameplay test using wrong ruleset | Add failing test for editor gameplay test using wrong ruleset
| C# | mit | ppy/osu,ppy/osu,peppy/osu,peppy/osu,ppy/osu,peppy/osu | |
6bfcf56aef8efd0f1d6e6d2612f238fefe38e0ec | Opserver/Views/Dashboard/Dashboard.cshtml | Opserver/Views/Dashboard/Dashboard.cshtml | @using StackExchange.Opserver.Data.Dashboard
@using StackExchange.Opserver.Views.Dashboard
@model DashboardModel
@{
this.SetPageTitle("Dashboard");
this.SetMainTab(MainTab.Dashboard);
this.SetTopNodes(DashboardData.AllNodes, "Dashboard", url: "/dashboard/node");
var start = DateTime.UtcNow.AddDays(-1).... | @using StackExchange.Opserver.Data.Dashboard
@using StackExchange.Opserver.Views.Dashboard
@model DashboardModel
@{
this.SetPageTitle("Dashboard");
this.SetMainTab(MainTab.Dashboard);
this.SetTopNodes(DashboardData.AllNodes, "Dashboard", url: "/dashboard/node");
var start = DateTime.UtcNow.AddDays(-1).... | Make the dashboard actually refresh, big oops that 0 was committed | Make the dashboard actually refresh, big oops that 0 was committed
| C# | mit | michaelholzheimer/Opserver,VictoriaD/Opserver,manesiotise/Opserver,baflynn/Opserver,GABeech/Opserver,a9261/Opserver,volkd/Opserver,GABeech/Opserver,maurobennici/Opserver,geffzhang/Opserver,vebin/Opserver,18098924759/Opserver,vbfox/Opserver,baflynn/Opserver,volkd/Opserver,IDisposable/Opserver,a9261/Opserver,mqbk/Opserve... |
16db95123d895602aaeb367907ab65440d1aefa1 | Source/TestHost/Cmdlets/JoinPathTests.cs | Source/TestHost/Cmdlets/JoinPathTests.cs | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/
using NUnit.Framework;
using System;
namespace TestHost.Cmdlets
{
[TestFixture]
public class JoinPathTests
{
[Test]
public void OneParentFolderAndChildFolder()
{
string resul... | // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/
using NUnit.Framework;
using System;
namespace TestHost.Cmdlets
{
[TestFixture]
public class JoinPathTests
{
[Test]
[Platform("Win")]
public void OneParentFolderAndChildFolderUnderWindow... | Fix join-path tests on Unix. | TEST: Fix join-path tests on Unix.
| C# | bsd-3-clause | sburnicki/Pash,mrward/Pash,WimObiwan/Pash,sillvan/Pash,mrward/Pash,sburnicki/Pash,mrward/Pash,sburnicki/Pash,WimObiwan/Pash,WimObiwan/Pash,sillvan/Pash,sillvan/Pash,ForNeVeR/Pash,sburnicki/Pash,Jaykul/Pash,mrward/Pash,WimObiwan/Pash,Jaykul/Pash,ForNeVeR/Pash,sillvan/Pash,Jaykul/Pash,ForNeVeR/Pash,Jaykul/Pash,ForNeVeR/P... |
9f6ece2280fc17bd7139332d862f5794bb0aac41 | src/OpenSage.Game.Tests/Content/LoadMapsTests.cs | src/OpenSage.Game.Tests/Content/LoadMapsTests.cs | using System.Linq;
using OpenSage.Data;
using OpenSage.Mods.Generals;
using OpenSage.Tests.Data;
using Veldrid;
using Xunit;
using Xunit.Abstractions;
namespace OpenSage.Tests.Content
{
public class LoadMapsTests
{
private readonly ITestOutputHelper _testOutputHelper;
public LoadMapsTests(ITe... | Add a (disabled by default) map loading test for Generals | Add a (disabled by default) map loading test for Generals
| C# | mit | feliwir/openSage,feliwir/openSage | |
2a6ec259058df6cce2e199f2dab3f32c6c971853 | src/Package/Impl/ProjectSystem/Commands/OpenCommandPromptCommand.cs | src/Package/Impl/ProjectSystem/Commands/OpenCommandPromptCommand.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Diagnostics;
using Microsoft.VisualStudio.ProjectSystem;
using Microsoft.VisualStudio.R.Package.Commands;
using Microsoft.Common.Core.OS;
using System.C... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.ComponentModel.Composition;
using System.Diagnostics;
using System.IO;
using Microsoft.Common.Core.Services;
using Microsoft.VisualStudio.... | Create process should use fully qualified path to exe. | Create process should use fully qualified path to exe.
| C# | mit | AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,AlexanderSh... |
9686bf507d7b49419e802f44d841579a954536b4 | osu.Game.Tests/Models/DisplayStringTest.cs | osu.Game.Tests/Models/DisplayStringTest.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 Moq;
using NUnit.Framework;
using osu.Game.Beatmaps;
using osu.Game.Extensions;
using osu.Game.Online.API.Requests.Responses;
using osu.Game.Rulesets;
using osu.Gam... | Add failing tests for coverage of `GetDisplayString()` | Add failing tests for coverage of `GetDisplayString()`
| C# | mit | smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,peppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,smoogipooo/osu | |
be14c04fd54a7a0115ab8fb4e49c7dd797339611 | src/RawRabbit.IntegrationTests/SimpleUse/PublishAndSubscribeTests.cs | src/RawRabbit.IntegrationTests/SimpleUse/PublishAndSubscribeTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using RawRabbit.Client;
using RawRabbit.IntegrationTests.TestMessages;
using Xunit;
namespace RawRabbit.IntegrationTests.SimpleUse
{
public class PublishAndSubscribeTests : IntegrationTestBase
{
public override void D... | Add simple use integration tests | Add simple use integration tests
| C# | mit | northspb/RawRabbit,pardahlman/RawRabbit | |
21f52ee1546be05ee43e7960cd9c9bb2fec1225b | ISAAR.MSolve.SamplesConsole/Optimization/OptimizationTest.cs | ISAAR.MSolve.SamplesConsole/Optimization/OptimizationTest.cs | using ISAAR.MSolve.Analyzers.Optimization;
using ISAAR.MSolve.Analyzers.Optimization.Algorithms;
using ISAAR.MSolve.SamplesConsole.Optimization.BenchmarkFunctions;
using System;
namespace ISAAR.MSolve.SamplesConsole.Optimization
{
public class OptimizationTest
{
public static void Main()
{
... | Add an optimization test problem to check the implementation of the differential evolution algorithm. | Add an optimization test problem to check the implementation of the differential evolution algorithm.
Signed-off-by: Manolis Georgioudakis <456a0d25592ed010f911d8d9039f21c89b888768@mail.ntua.gr>
| C# | apache-2.0 | geoem/MSolve,geoem/MSolve | |
537451723fdd5e8388dc137adf95979d288c8998 | MainProgram/AlgorithmsTests/ShellSortTest.cs | MainProgram/AlgorithmsTests/ShellSortTest.cs | using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Algorithms.Sorting;
namespace C_Sharp_Algorithms.AlgorithmsTests
{
public static class ShellSortTest
{
public static void DoTest()
{
DoTestAscending();
DoTestDescending();
}
... | using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Algorithms.Sorting;
namespace C_Sharp_Algorithms.AlgorithmsTests
{
public static class ShellSortTest
{
public static void DoTest()
{
DoTestAscending();
DoTestDescending();
}
... | Fix wrong debug assert message | Fix wrong debug assert message
| C# | mit | aalhour/C-Sharp-Algorithms,ivandrofly/C-Sharp-Algorithms |
961ecdd54463dc35216458c637483286500c70c0 | src/Nancy.Tests/Unit/NancyOptionsFixture.cs | src/Nancy.Tests/Unit/NancyOptionsFixture.cs | namespace Nancy.Tests.Unit
{
using Nancy.Owin;
using Xunit;
public class NancyOptionsFixture
{
private readonly NancyOptions nancyOptions;
public NancyOptionsFixture()
{
this.nancyOptions = new NancyOptions();
}
[Fact]
publi... | namespace Nancy.Tests.Unit
{
using Nancy.Bootstrapper;
using Nancy.Owin;
using Xunit;
public class NancyOptionsFixture
{
private readonly NancyOptions nancyOptions;
public NancyOptionsFixture()
{
this.nancyOptions = new NancyOptions();
}
... | Fix test - explicitly set the NancyBootstrapperLocator.Bootstrapper | Fix test - explicitly set the NancyBootstrapperLocator.Bootstrapper
| C# | mit | ccellar/Nancy,grumpydev/Nancy,sadiqhirani/Nancy,grumpydev/Nancy,dbolkensteyn/Nancy,jeff-pang/Nancy,jonathanfoster/Nancy,felipeleusin/Nancy,sadiqhirani/Nancy,phillip-haydon/Nancy,wtilton/Nancy,xt0rted/Nancy,VQComms/Nancy,dbolkensteyn/Nancy,charleypeng/Nancy,ccellar/Nancy,dbolkensteyn/Nancy,jchannon/Nancy,VQComms/Nancy,j... |
5cb0ba077e356f8f58606bae044f007103a8f151 | MonoGameUtils/Extensions/GameComponentCollection.cs | MonoGameUtils/Extensions/GameComponentCollection.cs | using System.Collections.Generic;
using System.Diagnostics.Contracts;
using Microsoft.Xna.Framework;
namespace MonoGameUtils.Extensions
{
public static class GameComponentCollectionExtensions
{
public static void AddRange(this GameComponentCollection gameComponents, IEnumerable<GameComponent> collecti... | Add the ability to add a set of gamecomponents to a game collection, rather than having to add each component individually. | Add the ability to add a set of gamecomponents to a game collection, rather than having to add each component individually.
| C# | mit | dneelyep/MonoGameUtils | |
1864da00e69806eefb389fd0a5742c0477eb419d | osu.Game/Extensions/TaskExtensions.cs | osu.Game/Extensions/TaskExtensions.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Threading.Tasks;
using osu.Framework.Logging;
namespace osu.Game.Extensions
{
public static class TaskExtensions
{
/// <summary>
///... | Add extension method to handle cases of fire-and-forget async usage | Add extension method to handle cases of fire-and-forget async usage
| C# | mit | smoogipoo/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,peppy/osu-new,UselessToucan/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,smoogipooo/osu,UselessToucan/osu,ppy/osu,peppy/osu | |
28b53e3a456fe809aff131e602eba9b1c147f47c | BTDB/Buffer/Checksum.cs | BTDB/Buffer/Checksum.cs | using System.Diagnostics;
namespace BTDB.Buffer
{
public static class Checksum
{
public static uint CalcFletcher32(byte[] data, uint position, uint length)
{
Debug.Assert((length & 1) == 0);
length >>= 1;
uint sum1 = 0xffff;
uint sum2 = 0xffff;
... | using System.Diagnostics;
namespace BTDB.Buffer
{
public static class Checksum
{
public static uint CalcFletcher32(byte[] data, uint position, uint length)
{
var odd = (length & 1) != 0;
length >>= 1;
uint sum1 = 0xffff;
uint sum2 = 0xffff;
... | Support for calculating odd length Fletcher checksums. | Support for calculating odd length Fletcher checksums.
| C# | mit | Bobris/BTDB,karasek/BTDB,yonglehou/BTDB,klesta490/BTDB |
72d8bbfc5e7356efbb6bafd0e9b6af115c6d6636 | src/RedCard.API/Controllers/StatsController.cs | src/RedCard.API/Controllers/StatsController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using RedCard.API.Contexts;
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
namespace RedCard.API.Controllers
{
[Route("... | Create red card by country method | Create red card by country method
| C# | mit | mglodack/RedCard.API,mglodack/RedCard.API | |
466c2523d57f4d33f104d2ac6429a7da6a2a860e | apis/Google.Cloud.PubSub.V1/Google.Cloud.PubSub.V1/ObsoleteRetryFilters.cs | apis/Google.Cloud.PubSub.V1/Google.Cloud.PubSub.V1/ObsoleteRetryFilters.cs | // Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | Add partial classes for legacy retry filters. | Add partial classes for legacy retry filters.
| C# | apache-2.0 | jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/gcloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet | |
7b91cb0f2cc40a8f5282584d1342ca0bfb0434d8 | food_tracker/FoodComboItem.cs | food_tracker/FoodComboItem.cs | using System.Windows.Controls;
namespace food_tracker {
public class FoodComboItem : ComboBoxItem {
public double calories { get; set; }
public double fats { get; set; }
public double saturatedFat { get; set; }
public double carbohydrates { get; set; }
public double sugar ... | Add custom combo list item | Add custom combo list item
| C# | mit | lukecahill/NutritionTracker | |
19a510ad2d2cb73b9030ad085c82e27a297b348a | src/Glimpse.Web.Common/Framework/FixedRequestHandlerProvider.cs | src/Glimpse.Web.Common/Framework/FixedRequestHandlerProvider.cs | using System.Collections.Generic;
using System.Linq;
namespace Glimpse.Web
{
public class FixedRequestHandlerProvider : IRequestHandlerProvider
{
public FixedRequestHandlerProvider()
: this(Enumerable.Empty<IRequestHandler>())
{
}
public FixedRequestHandlerProvider... | Add Fixed Provider for RequestHandling | Add Fixed Provider for RequestHandling
| C# | mit | mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,zanetdev/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,pranavkm/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,... | |
137a9c43ac0c6d4824c0a5fb7dd036ca8fd8d6ed | Tron/Tron/Exceptions/TooManyPlayersException.cs | Tron/Tron/Exceptions/TooManyPlayersException.cs | // TooManyPlayersException.cs
// <copyright file="TooManyPlayersException.cs"> This code is protected under the MIT License. </copyright>
using System;
namespace Tron.Exceptions
{
/// <summary>
/// An exception thrown when too many players are in the game.
/// </summary>
public class TooManyPlayersExc... | Add too many players exception | Add too many players exception | C# | mit | It423/tron,wrightg42/tron | |
41f51bfe1674452a18e1f96881b972dc2d9040d9 | src/SpaFallback/SpaFallbackHostingStartup.cs | src/SpaFallback/SpaFallbackHostingStartup.cs | using Hellang.Middleware.SpaFallback;
using Microsoft.AspNetCore.Hosting;
[assembly: HostingStartup(typeof(SpaFallbackHostingStartup))]
namespace Hellang.Middleware.SpaFallback
{
public class SpaFallbackHostingStartup : IHostingStartup
{
public void Configure(IWebHostBuilder builder)
{
... | Add hosting startup to SpaFallback | Add hosting startup to SpaFallback
| C# | mit | khellang/Middleware,khellang/Middleware | |
dc9b5b196bf66fb9254ee4121d94e1de049d4e08 | Corale.Colore/Core/IChroma.cs | Corale.Colore/Core/IChroma.cs | // ---------------------------------------------------------------------------------------
// <copyright file="IChroma.cs" company="Corale">
// Copyright © 2015 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and as... | Add base interface for Chroma main class. | Add base interface for Chroma main class.
| C# | mit | danpierce1/Colore,CoraleStudios/Colore,WolfspiritM/Colore,Sharparam/Colore | |
f1b29b30bcc72124540c490e1d433e1298cc7bb6 | 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... | Remove duplicates from sorted array II | Remove duplicates from sorted array II
| C# | mit | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | |
73262bc7979c0e1cb7ad504c97d3105aa91ad365 | Mollie.Tests.Unit/Client/RefundClientTests.cs | Mollie.Tests.Unit/Client/RefundClientTests.cs | using Mollie.Api.Client;
using NUnit.Framework;
using System.Net.Http;
using System.Threading.Tasks;
namespace Mollie.Tests.Unit.Client {
[TestFixture]
public class RefundClientTests : BaseClientTests {
public const string defaultGetRefundResponse = @"{
""resource"": ""refund"",
""id"": ""re_4... | Add unit tests for RefundClient to make sure the query parameter works as expected | Add unit tests for RefundClient to make sure the query parameter works as expected
| C# | mit | Viincenttt/MollieApi,Viincenttt/MollieApi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.