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
9cffa2c4ad89be925044049ff334c12fe4ebada2
ScheduleManager/ScheduleManager/common/SingletonSesion.cs
ScheduleManager/ScheduleManager/common/SingletonSesion.cs
using ScheduleManager.forms; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using ScheduleManager.model; namespace ScheduleManager.common { class SingletonSesion { private volatile static SingletonSesion o...
Add Singleton for the Session
Add Singleton for the Session
C#
mit
Demcom/SchoolScheduleManager
fd239ab257012c4c287bc4dea06fe974f9edf84a
Src/Commons.Persistence.NHibernate/Cache/ProjectionEnabledQueryCache.cs
Src/Commons.Persistence.NHibernate/Cache/ProjectionEnabledQueryCache.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using NHibernate.Cache; using NHibernate.Cfg; using NHibernate.Engine; using NHibernate.Type; namespace BoC.Persistence.NHibernate.Cache { /// <summary> /// This class works around the ...
Check if the query is a projection-query before trying to add it to the cache (nhibernate will choke on that)
Check if the query is a projection-query before trying to add it to the cache (nhibernate will choke on that)
C#
mit
csteeg/BoC,bplasmeijer/BoC,RalfvandenBurg/BoC,csteeg/BoC,RvanDalen/BoC,RvanDalen/BoC,bplasmeijer/BoC,RalfvandenBurg/BoC
f0fb5ff0eb018b2d9b4ee4af16f83b613edc2099
test/Helsenorge.Messaging.Tests/ServiceBus/ServiceBusConnectionTests.cs
test/Helsenorge.Messaging.Tests/ServiceBus/ServiceBusConnectionTests.cs
/* * Copyright (c) 2021, Norsk Helsenett SF and contributors * See the file CONTRIBUTORS for details. * * This file is licensed under the MIT license * available at https://raw.githubusercontent.com/helsenorge/Helsenorge.Messaging/master/LICENSE */ using Helsenorge.Messaging.ServiceBus; using Microsoft.Extension...
Verify correct output from ServiceBusConnection.GetEntityName
Tests: Verify correct output from ServiceBusConnection.GetEntityName This adds tests to verify that we get the correct output from ServiceBusConnection.GetEntityName based on Message Broker Dialect and Role of the Link.
C#
mit
ehelse/Helsenorge.Messaging
62acfabec4638284e0d9c88ccbd50d2d0f4b65a6
OpenSim/Region/OptionalModules/Avatar/Attachments/TempAttachmentsModule.cs
OpenSim/Region/OptionalModules/Avatar/Attachments/TempAttachmentsModule.cs
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must r...
Add the skeleton for the temp attachments module
Add the skeleton for the temp attachments module
C#
bsd-3-clause
ft-/opensim-optimizations-wip-tests,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,BogusCurry/arribasim-dev,rryk/omp-server,Michelle-Argus/ArribasimExtract,RavenB/opensim,ft-/arribasim-dev-extras,Michelle-Argus/ArribasimExtract,TomDataworks/opensim,TomDataworks/opensim,ft-/opensim-optimizations-wip-tests,Michelle-Argus/Arribasim...
00864c50f75a3b039e147c7e249aed90fa5b1724
src/SevenDigital.Api.Wrapper.Integration.Tests/Exceptions/ApiXmlExceptionTests.cs
src/SevenDigital.Api.Wrapper.Integration.Tests/Exceptions/ApiXmlExceptionTests.cs
using System; using NUnit.Framework; using SevenDigital.Api.Wrapper.Exceptions; using SevenDigital.Api.Schema.ArtistEndpoint; using SevenDigital.Api.Schema.LockerEndpoint; namespace SevenDigital.Api.Wrapper.Integration.Tests.Exceptions { [TestFixture] public class ApiXmlExceptionTests { [Test] public void Shoul...
using System; using NUnit.Framework; using SevenDigital.Api.Wrapper.Exceptions; using SevenDigital.Api.Schema.ArtistEndpoint; using SevenDigital.Api.Schema.LockerEndpoint; namespace SevenDigital.Api.Wrapper.Integration.Tests.Exceptions { [TestFixture] public class ApiXmlExceptionTests { [Test] public void Shoul...
Revert change to message assertion as the message is consumer key dependent and the key in the CI build causes a failure
Revert change to message assertion as the message is consumer key dependent and the key in the CI build causes a failure
C#
mit
danbadge/SevenDigital.Api.Wrapper,gregsochanik/SevenDigital.Api.Wrapper,bettiolo/SevenDigital.Api.Wrapper,knocte/SevenDigital.Api.Wrapper,actionshrimp/SevenDigital.Api.Wrapper,emashliles/SevenDigital.Api.Wrapper,mattgray/SevenDigital.Api.Wrapper,minkaotic/SevenDigital.Api.Wrapper,luiseduardohdbackup/SevenDigital.Api.Wr...
d97bdf9d8794065d71a952afc1f2546a71460de3
tests/FakeItEasy.Specs/ObjectMembersSpecs.cs
tests/FakeItEasy.Specs/ObjectMembersSpecs.cs
namespace FakeItEasy.Specs { using FakeItEasy.Core; using FluentAssertions; using Xbehave; public static class ObjectMembersSpecs { [Scenario] public static void DefaultEqualsWithSelf(IFoo fake, bool equals) { "Given a fake" .x(() => f...
Add characterization tests for object members
Add characterization tests for object members
C#
mit
thomaslevesque/FakeItEasy,FakeItEasy/FakeItEasy,blairconrad/FakeItEasy,thomaslevesque/FakeItEasy,blairconrad/FakeItEasy,FakeItEasy/FakeItEasy
63bbe3ec9b45919aabd8627e606dfe9a96137073
source/ZocMonLib.Web/Framework/WebSettingsExtensionOptions.cs
source/ZocMonLib.Web/Framework/WebSettingsExtensionOptions.cs
namespace ZocMonLib.Web { public class WebSettingsExtensionOptions { public ISerializer Serializer { get; set; } public IRuntime Runtime { get; set; } public IStorageFactory StorageFactory { get; set; } public ISystemLoggerProvider LoggerProvider { get; set; } public ...
namespace ZocMonLib.Web { public class WebSettingsExtensionOptions { public IResourceFinder ResourceFinder { get; set; } public ISerializer Serializer { get; set; } public IRuntime Runtime { get; set; } public IStorageFactory StorageFactory { get; set; } public ISyste...
Add ResourceFinder as an option that can be set.
Add ResourceFinder as an option that can be set.
C#
apache-2.0
modulexcite/ZocMon,modulexcite/ZocMon,ZocDoc/ZocMon,modulexcite/ZocMon,ZocDoc/ZocMon,ZocDoc/ZocMon
95482a0372a140951db3206870c581e0d80f2f3d
IsTo.Tests/Misc/Struct/TestStruct.cs
IsTo.Tests/Misc/Struct/TestStruct.cs
// Copyright (c) kuicker.org. All rights reserved. // Modified By YYYY-MM-DD // kevinjong 2016-03-04 - Creation using System; namespace IsTo.Tests { public struct TestStruct { public int Property11; public int Property12; public int Property13; } }
Support convert to or from struct type
Support convert to or from struct type
C#
apache-2.0
Kuick/IsTo
26e7b0d9132f35a4eb52af75f0c3b3a88a0c00bc
BenchmarkDotNet.Samples/CPU/Cpu_Atomics.cs
BenchmarkDotNet.Samples/CPU/Cpu_Atomics.cs
using BenchmarkDotNet.Tasks; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BenchmarkDotNet.Samples.Other { [BenchmarkTask(platform: BenchmarkPlatform.X64, jitVersion: BenchmarkJitVersion.RyuJit)] public class Cpu_Atomics { private int a; pr...
using BenchmarkDotNet.Tasks; namespace BenchmarkDotNet.Samples.CPU { [BenchmarkTask(platform: BenchmarkPlatform.X64, jitVersion: BenchmarkJitVersion.RyuJit)] public class Cpu_Atomics { private int a; private object syncRoot = new object(); [Benchmark] [OperationsPerInvoke(...
Move sample to correct namespace
Move sample to correct namespace
C#
mit
Ky7m/BenchmarkDotNet,alinasmirnova/BenchmarkDotNet,PerfDotNet/BenchmarkDotNet,adamsitnik/BenchmarkDotNet,adamsitnik/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,alinasmirnova/BenchmarkDotNet,Ky7m/BenchmarkDotNet,Ky7m/BenchmarkDotNet,PerfDotNet/BenchmarkDotNet,Teknikaali/BenchmarkDotNet,alinasmirnova/BenchmarkDotNet,Tekni...
e3b29df29930e4e5f79072b4b762fad0f27fd31c
osu.Game.Tests/Visual/Multiplayer/TestSceneMultiplayerPlayer.cs
osu.Game.Tests/Visual/Multiplayer/TestSceneMultiplayerPlayer.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.Testing; using osu.Game.Rulesets.Osu; using osu.Game.Screens.OnlinePlay.Multiplayer; namespace osu.Game.Tes...
Add test scene for `MultiplayerPlayer`
Add test scene for `MultiplayerPlayer`
C#
mit
ppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu-new,smoogipooo/osu,smoogipoo/osu,ppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu
ed6d1ccd958622bbca51c8cab54f0c3dfd4a6296
osu.Game/Configuration/SettingSourceAttribute.cs
osu.Game/Configuration/SettingSourceAttribute.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 System.Linq; using System.Reflection; using JetBrains.Annotations; using osu.Framework.Bindables; using osu.Framewor...
Add a method for getting settings UI components automatically from a target class
Add a method for getting settings UI components automatically from a target class
C#
mit
smoogipoo/osu,NeoAdonis/osu,johnneijzen/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,smoogipooo/osu,EVAST9919/osu,peppy/osu-new,UselessToucan/osu,EVAST9919/osu,2yangk23/osu,UselessToucan/osu,peppy/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,johnneijzen/osu,2yangk23/osu,ppy/osu
08b920e20be73b261db50337c1fa94e172351002
dotNet/UnitTests/configurationMock.cs
dotNet/UnitTests/configurationMock.cs
using System; using System.Configuration; using System.Linq; using System.Reflection; namespace UnitTests.Helpers { // the default app.config is used. /// <summary> /// Allow to override default configuration file access via ConfigurationService for piece of code /// Main purpose: uni...
Add possibility to mock ConfigurationManager
Add possibility to mock ConfigurationManager
C#
unlicense
lerthe61/Snippets,lerthe61/Snippets
32c2942f809036eabbff38411c75f48f9b9bded4
Gnx/Gnx/Models/IdentityModels.cs
Gnx/Gnx/Models/IdentityModels.cs
using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using System.Web; namespace Gnx.Models { public class ApplicationUser : IdentityUser { public...
Add ApplicationUser class for Identity and DbContext
Add ApplicationUser class for Identity and DbContext
C#
mit
wilk666/GnxDurandal,wilk666/GnxDurandal
ecb8b9cc539d46555020173f6387cc8a222617d3
WPF/WpfCLR/ReadOnlyDictionary.cs
WPF/WpfCLR/ReadOnlyDictionary.cs
#if PS20 using System; using System.Collections.Generic; namespace WpfCLR { public class ReadOnlyDictionary<TKey, TValue> : IDictionary<TKey, TValue> { public const string ReadOnlyErrorMessage = "Dictionary is read-only"; private IDictionary<TKey, TValue> _innerDictionary; protected IDictionary<TKey, TValu...
Create read-only dictionary for .NET version 2.0
Create read-only dictionary for .NET version 2.0
C#
apache-2.0
lerwine/PowerShell-Modules
aaf8ec3895e548cdf94dbc56b1081644747a6ef7
LeetCode/remote/sort_characters_by_frequency.cs
LeetCode/remote/sort_characters_by_frequency.cs
// https://leetcode.com/problems/sort-characters-by-frequency/ // https://leetcode.com/submissions/detail/83684155/ // // Submission Details // 34 / 34 test cases passed. // Status: Accepted // Runtime: 188 ms // Submitted: 0 minutes ago public class Solution { public string FrequencySort(st...
Sort chars by freq - monad
Sort chars by freq - monad
C#
mit
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
2582754e31a0dd53d81a18b9b81c23817b9ccc71
src/System.ComponentModel/src/System/ComponentModel/IEditableObject.cs
src/System.ComponentModel/src/System/ComponentModel/IEditableObject.cs
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace System.ComponentModel { /// <summary> /// Provides functionality to commit or rollback changes to an object that is used as a data source. /// </s...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace System.ComponentModel { /// <summary> /// Provides functionality to commit or rollback changes to an object that is used as a data source. /// </s...
Fix inverted documentation between two methods
Fix inverted documentation between two methods
C#
mit
ravimeda/corefx,Yanjing123/corefx,weltkante/corefx,shahid-pk/corefx,lggomez/corefx,mazong1123/corefx,vrassouli/corefx,dotnet-bot/corefx,erpframework/corefx,gabrielPeart/corefx,erpframework/corefx,alexandrnikitin/corefx,tstringer/corefx,thiagodin/corefx,shmao/corefx,manu-silicon/corefx,manu-silicon/corefx,shahid-pk/core...
f12ae23de291a0fdb3b59eb1c009189406c70055
GeeksForGeeks/check_if_array_is_preorder.cs
GeeksForGeeks/check_if_array_is_preorder.cs
// http://www.geeksforgeeks.org/check-if-a-given-array-can-represent-preorder-traversal-of-binary-search-tree/ // // Given an array of numbers, return true if given array can represent preorder traversal of a Binary Search Tree, // else return false. Expected time complexity is O(n). // using System; using System.Coll...
Check if an array is preorder
Check if an array is preorder
C#
mit
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
931f3bd2ce920db392e33e15dc88c37bd6ab4757
src/IniFileParser.Tests/Properties/AssemblyInfo.cs
src/IniFileParser.Tests/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("In...
Revert "remove old assemblyinfo (wasn't included in the solution)"
Revert "remove old assemblyinfo (wasn't included in the solution)" This reverts commit 12c5601073c9af6f86b791abdabfb5c9b99f7fbe.
C#
mit
rickyah/ini-parser,rickyah/ini-parser,davidgrupp/ini-parser
411fc37567398cd9d595e61d1aab5f372df325db
src/PowerShellEditorServices.Protocol/LanguageServer/CommentHelpRequest.cs
src/PowerShellEditorServices.Protocol/LanguageServer/CommentHelpRequest.cs
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol; namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer { class CommentHelp...
Add type to request comment help
Add type to request comment help
C#
mit
PowerShell/PowerShellEditorServices
db0cd600c417d6f10c762f6e91de39c08e4d8348
src/ExRam.Gremlinq.Core/Extensions/GremlinQueryExecutorExtensions.cs
src/ExRam.Gremlinq.Core/Extensions/GremlinQueryExecutorExtensions.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Gremlin.Net.Driver.Exceptions; namespace ExRam.Gremlinq.Core { public static class GremlinQueryExecutorExtensions { private sealed class ExponentialBackoffExecutor : IGremlinQ...
Introduce exponential backoff for executors
Introduce exponential backoff for executors
C#
mit
ExRam/ExRam.Gremlinq
f9ce987cc51a4142a6a1f7065d38de66f88f07db
test/Ocelot.UnitTests/LoadBalancer/DelegateInvokingLoadBalancerCreatorTests.cs
test/Ocelot.UnitTests/LoadBalancer/DelegateInvokingLoadBalancerCreatorTests.cs
using System; using System.Threading.Tasks; using Moq; using Ocelot.Configuration; using Ocelot.Configuration.Builder; using Ocelot.LoadBalancer.LoadBalancers; using Ocelot.Middleware; using Ocelot.Responses; using Ocelot.ServiceDiscovery.Providers; using Ocelot.Values; using Shouldly; using TestStack.BDDfy; using Xun...
Cover DelegateInvokingLoadBalancerCreator by unit tests.
Cover DelegateInvokingLoadBalancerCreator by unit tests.
C#
mit
TomPallister/Ocelot,TomPallister/Ocelot
6494b13f3509cfb7fe63863e4d6dc36fbff61804
src/Abp.Web/EntityHistory/HttpRequestEntityChangeSetReasonProvider.cs
src/Abp.Web/EntityHistory/HttpRequestEntityChangeSetReasonProvider.cs
using Abp.Dependency; using Abp.EntityHistory; using Abp.Runtime; using JetBrains.Annotations; using System.Web; namespace Abp.Web.EntityHistory { /// <summary> /// Implements <see cref="IEntityChangeSetReasonProvider"/> to get reason from HTTP request. /// </summary> public class HttpRequestEntityCha...
Add http request reason provider for Abp.Web
Add http request reason provider for Abp.Web
C#
mit
carldai0106/aspnetboilerplate,carldai0106/aspnetboilerplate,verdentk/aspnetboilerplate,verdentk/aspnetboilerplate,luchaoshuai/aspnetboilerplate,ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,luchaoshuai/aspnetboilerplate,ryancyq/aspnetboilerplate,ilyhacker/aspnetboiler...
c1bdb6bcfa1572a74fb37544898998bfebb3f394
src/Moq/Moq.Sdk/MockFactoryExtensions.cs
src/Moq/Moq.Sdk/MockFactoryExtensions.cs
using System; using System.ComponentModel; using System.Reflection; namespace Moq.Sdk { /// <summary> /// Usability functions for <see cref="IMockFactory"/>. /// </summary> [EditorBrowsable(EditorBrowsableState.Advanced)] public static class MockFactoryExtensions { /// <summary> ...
Add usability overload for IMockFactory
Add usability overload for IMockFactory Allow creating a mock from a single type parameter and the mocks assembly.
C#
apache-2.0
Moq/moq
7c35004d8006e273db1c3f77eb3b51fb89dbc95c
test/FastExpressionCompiler.UnitTests/CastTests.cs
test/FastExpressionCompiler.UnitTests/CastTests.cs
using System; using NUnit.Framework; namespace FastExpressionCompiler.UnitTests { [TestFixture] public class CastTests { [Test] public void Expressions_with_small_int_casts_should_not_crash() { //currently crashes with NullReferenceException var x = 65535; ...
Add test cases for crashes involving integer casts
Add test cases for crashes involving integer casts was https://github.com/dadhi/FastExpressionCompiler/issues/2
C#
mit
dadhi/FastExpressionCompiler
4b4c385c90a8f8587469169143d4ce1e3eaf0e15
tests/MassTransit.Tests/MinimalBody_Specs.cs
tests/MassTransit.Tests/MinimalBody_Specs.cs
namespace MassTransit.Tests { using System; using System.Linq; using System.Threading.Tasks; using MassTransit.Serialization; using NUnit.Framework; using TestFramework; using TestFramework.Messages; [TestFixture] public class When_consuming_a_minimal_message_body : InMemor...
Test to verify that minimal message body can be redelivered via the delayed transport (serialization issue)
Test to verify that minimal message body can be redelivered via the delayed transport (serialization issue)
C#
apache-2.0
MassTransit/MassTransit,phatboyg/MassTransit,MassTransit/MassTransit,phatboyg/MassTransit
d5863b9c905bce35ae2025c51494f1a6524e7033
LeetCode/remote/remove_duplicate_from_sorted_list_II.cs
LeetCode/remote/remove_duplicate_from_sorted_list_II.cs
// https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/ // Given a sorted linked list, delete all nodes that have duplicate numbers, // leaving only distinct numbers from the original list. // https://leetcode.com/submissions/detail/58844735/ // // Submission Details // 166 / 166 test cases ...
Remove dupes from list II
Remove dupes from list II
C#
mit
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
6929dcba60d6b5cd66f4af30b57560c3fe3484db
PowerMode.Tests/Utils/ColorExtensionTest.cs
PowerMode.Tests/Utils/ColorExtensionTest.cs
namespace BigEgg.Tools.PowerMode.Tests.Utils { using System.Drawing; using System.Linq; using System.Reflection; using Microsoft.VisualStudio.TestTools.UnitTesting; using BigEgg.Tools.PowerMode.Utils; public class ColorExtensionTest { [TestClass] public class HSVConvert ...
Add tests for converting RGB with HSV
Add tests for converting RGB with HSV
C#
mit
BigEggTools/PowerMode
bc857961495007fa1d20349d78c8a5e71d7feb6a
Main-Folder/CopyText_objectst_To_otherLayer.cs
Main-Folder/CopyText_objectst_To_otherLayer.cs
//Synchronous template //----------------------------------------------------------------------------------- // PCB-Investigator Automation Script // Created on 30.03.2017 // Autor Guenther.Schindler // // Empty template to fill for synchronous script. //---------------------------------------------------------...
Copy Text objects to other layer and delete surce
Copy Text objects to other layer and delete surce
C#
bsd-3-clause
sts-CAD-Software/PCB-Investigator-Scripts
f20e299d55c422b5afc56660896bdbd50c77c29d
Modules/RoundModule.cs
Modules/RoundModule.cs
using System; using StackExchange.Redis; using System.Threading; using System.Threading.Tasks; using Newtonsoft.Json; namespace CollapsedToto { [Prefix("/round")] public class RoundModule : BaseModule { private static ConnectionMultiplexer redis = null; private static IDatabase Database ...
Implement betting and getting popular keywords
Implement betting and getting popular keywords
C#
mit
CollapsedTotoProductionCommittee/CollapsedToto,CollapsedTotoProductionCommittee/CollapsedToto,CollapsedTotoProductionCommittee/CollapsedToto,CollapsedTotoProductionCommittee/CollapsedToto
e570f10d6910c57152eec3bcdef499e90bc62e64
Content.Benchmarks/DependencyInjectBenchmark.cs
Content.Benchmarks/DependencyInjectBenchmark.cs
/* using BenchmarkDotNet.Attributes; using Robust.Shared.IoC; namespace Content.Benchmarks { // To actually run this benchmark you'll have to make DependencyCollection public so it's accessible. public class DependencyInjectBenchmark { [Params(InjectMode.Reflection, InjectMode.DynamicMethod)] ...
Add benchmark for dependency injection.
Add benchmark for dependency injection.
C#
mit
space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14-content,space-wizards/space-station-14
92428e230fd993188b84747755ef50333c26ddbe
osu.Framework.Tests/Visual/Sprites/TestSceneTextureCropping.cs
osu.Framework.Tests/Visual/Sprites/TestSceneTextureCropping.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.Primitives; using osu.Framework.Graphi...
Add texture cropping test case
Add texture cropping test case
C#
mit
ZLima12/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework
2bf968511290f0af037c3d607c7baad764928704
src/System.IO.FileSystem/tests/Directory/SetCurrentDirectory.cs
src/System.IO.FileSystem/tests/Directory/SetCurrentDirectory.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.Diagnostics; using System.Runtime.InteropServices; using Xunit; namespace System.IO.Tests { public...
// 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.Diagnostics; using System.Runtime.InteropServices; using Xunit; namespace System.IO.Tests { public...
Add comment for OSX specific FileSystem test
Add comment for OSX specific FileSystem test
C#
mit
iamjasonp/corefx,krk/corefx,BrennanConroy/corefx,ravimeda/corefx,the-dwyer/corefx,twsouthwick/corefx,Chrisboh/corefx,cydhaselton/corefx,fgreinacher/corefx,ViktorHofer/corefx,krytarowski/corefx,krk/corefx,nchikanov/corefx,pallavit/corefx,tijoytom/corefx,lggomez/corefx,parjong/corefx,billwert/corefx,nbarbettini/corefx,Dn...
374c3e3e8dafa28f7f81342782feeac8a675df20
test/Openchain.SqlServer.Tests/SqlServerStorageEngineTests.cs
test/Openchain.SqlServer.Tests/SqlServerStorageEngineTests.cs
// Copyright 2015 Coinprism, 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 unit tests for the SqlServerStorageEngine class
Add unit tests for the SqlServerStorageEngine class
C#
apache-2.0
openchain/openchain
b76d4f955bb55a8da29106a31471e3744006cfd8
lookups/lookup-get-basic-example-1/lookup-get-basic-example-1.cs
lookups/lookup-get-basic-example-1/lookup-get-basic-example-1.cs
// Download the twilio-csharp library from twilio.com/docs/csharp/install using System; using Twilio.Lookups; class Example { static void Main(string[] args) { // Find your Account Sid and Auth Token at twilio.com/user/account const string accountSid = "{{ account_sid }}"; const string authToken = "{{ ...
// Download the twilio-csharp library from twilio.com/docs/csharp/install using System; using Twilio.Lookups; class Example { static void Main(string[] args) { // Find your Account Sid and Auth Token at twilio.com/console const string accountSid = "{{ account_sid }}"; const string authToken = "{{ auth_...
Change console URL for 1 code sample
Change console URL for 1 code sample
C#
mit
teoreteetik/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snip...
93a7c123405e801bf2096518763185bb3c7c01d8
Orders.com.Web.MVC/Views/OrderItems/Delete.cshtml
Orders.com.Web.MVC/Views/OrderItems/Delete.cshtml
@model Orders.com.Web.MVC.ViewModels.OrderItemViewModel @{ ViewBag.Title = "Delete"; } <h2>Delete Item</h2> <h3>Are you sure you want to delete this?</h3> <div class="form-horizontal"> <div class="form-group"> <label class="control-label col-md-1">Category</label> <div class="col-md-10"> ...
Add order item delete support
Add order item delete support
C#
mit
peasy/Samples,peasy/Samples,peasy/Samples
aaeaceea734caae77baca156126152b7e53eda90
src/base/common/configuration/common/provider/CacheProviderNode.cs
src/base/common/configuration/common/provider/CacheProviderNode.cs
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Xml; using System.IO; using System.Configuration; using Nohros.Resources; namespace Nohros.Configuration { /// <summary> /// Contains configuration informations for cache providers. /// ...
Create a class that acts as a configuration node for cache providers
Create a class that acts as a configuration node for cache providers
C#
mit
nohros/must,nohros/must,nohros/must
3b7469786e04f49480d337e55194a204aee6bfd0
OpenKh.Tools.Common/Models/MyGenericListModel.cs
OpenKh.Tools.Common/Models/MyGenericListModel.cs
using System.Collections; using System.Collections.Generic; using Xe.Tools.Wpf.Models; namespace OpenKh.Tools.Common.Models { public class MyGenericListModel<T> : GenericListModel<T>, IEnumerable<T> { public MyGenericListModel(IEnumerable<T> list) : base(list) { } public IEnum...
Add a more specific GenericListModel to reduce the amount of code
Add a more specific GenericListModel to reduce the amount of code
C#
mit
Xeeynamo/KingdomHearts
e7d7c0f2b5f83387f7ea3d4473cee623670fd3ef
FluentTc/Domain/SourceBuildType.cs
FluentTc/Domain/SourceBuildType.cs
namespace FluentTc.Domain { public class SourceBuildType { public override string ToString() { return "source-buildType"; } public string Id { get; set; } public string Name { get; set; } public string ProjectName { get; set; } public string ...
Add build config info for ArtifactDependencies
Add build config info for ArtifactDependencies
C#
apache-2.0
borismod/FluentTc,GibbOne/FluentTc,QualiSystems/FluentTc
56bd3d8a82230fd626fad39c23a40a3fd0729e1a
osu.Game.Tests/Visual/RealtimeMultiplayer/TestSceneRealtimeMultiplayer.cs
osu.Game.Tests/Visual/RealtimeMultiplayer/TestSceneRealtimeMultiplayer.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.Game.Screens.Multi.Components; namespace osu.Game.Tests.Visual.RealtimeMultiplayer { public class TestSceneRealtimeMultiplayer : RealtimeMultiplayerTestSce...
Add realtime multiplayer test scene
Add realtime multiplayer test scene
C#
mit
peppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu-new,ppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,UselessToucan/osu,smoogipooo/osu
08c4327d8d7fecf58265dec5023e626217959dee
tests/Bugsnag.Tests/PayloadExtensionsTests.cs
tests/Bugsnag.Tests/PayloadExtensionsTests.cs
using Bugsnag.Payload; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace Bugsnag.Tests { public class PayloadExtensionsTests { [Theory] [MemberData(nameof(PayloadTestData))] public void AddToPayloadTests(Dictionary...
Add tests for Get & AddToPayload
Add tests for Get & AddToPayload
C#
mit
bugsnag/bugsnag-dotnet,bugsnag/bugsnag-dotnet
b86f650a30c0526d86dc2b4854a7519b7952efd5
source/Htc.Vita.Core.Tests/TypeRegistryTest.cs
source/Htc.Vita.Core.Tests/TypeRegistryTest.cs
using Htc.Vita.Core.Util; using Xunit; namespace Htc.Vita.Core.Tests { public class TypeRegistryTest { [Fact] public static void Default_0_RegisterDefault() { TypeRegistry.RegisterDefault<BaseClass, SubClass1>(); } [Fact] public static void Default_...
Add test case for TypeRegistry
Add test case for TypeRegistry
C#
mit
ViveportSoftware/vita_core_csharp,ViveportSoftware/vita_core_csharp
100f8e4fb7e51349c8a48e2b52632053028cedc8
CSharpRecipe/Recipe.DebugAndException/ReflectException.cs
CSharpRecipe/Recipe.DebugAndException/ReflectException.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Reflection; namespace Recipe.DebugAndException { public static class ReflectException { public static void ReflectionException() { Type reflectedClass = ...
Add reflection exception log function
Add reflection exception log function
C#
mit
caronyan/CSharpRecipe
918a174be5c494bedd75bce3ffcc688ea8ee4532
src/THNETII.CommandLine.Hosting/GlobalSuppressions.cs
src/THNETII.CommandLine.Hosting/GlobalSuppressions.cs
 // This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. // Project-level suppressions either have no target or are given // a specific target and scoped to a namespace, type, member, etc. using System.Diagnostics.CodeAnalysis; [assembly: SuppressMessage("R...
Create Global Supressions for CA warnings on THNETII.CommandLine.Hosting
Create Global Supressions for CA warnings on THNETII.CommandLine.Hosting
C#
mit
thnetii/dotnet-common
e49d8d0878c9efc5faebad745171cf02e43a6152
osu.Game.Tests/Visual/Menus/TestSceneLoginPanel.cs
osu.Game.Tests/Visual/Menus/TestSceneLoginPanel.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.Graphics; using osu.Framework.Testing; using osu.Game.Graphics.UserInterface; using osu.Game.Overlays.Login;...
Add test coverage of login dialog
Add test coverage of login dialog
C#
mit
peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu-new,smoogipooo/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu
3ea4be029e1cf01a02c90c901e8e13adcf410ffa
Octokit/Helpers/Net45CompatibilityShim.cs
Octokit/Helpers/Net45CompatibilityShim.cs
// ---------------------------------------------------- // THIS WHOLE File CAN GO AWAY WHEN WE TARGET 4.5 ONLY // ---------------------------------------------------- using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; namespace Octokit { [SuppressMessage("Microsoft....
Add .net 4.5 compatibility shim classes
Add .net 4.5 compatibility shim classes Implemented some of the interfaces and classes we use in our .NET 4.5 version.
C#
mit
fake-organization/octokit.net,hitesh97/octokit.net,ivandrofly/octokit.net,gabrielweyer/octokit.net,Red-Folder/octokit.net,devkhan/octokit.net,shiftkey/octokit.net,ChrisMissal/octokit.net,ivandrofly/octokit.net,SmithAndr/octokit.net,Sarmad93/octokit.net,cH40z-Lord/octokit.net,nsrnnnnn/octokit.net,geek0r/octokit.net,octo...
387e2ba91f08f020740fa79d8d00df8956797f3b
PhotoLife/PhotoLife.Web/Factories/IViewModelFactory.cs
PhotoLife/PhotoLife.Web/Factories/IViewModelFactory.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PhotoLife.Factories { interface IViewModelFactory { } }
Add view model factory interface
Add view model factory interface
C#
mit
Branimir123/PhotoLife,Branimir123/PhotoLife,Branimir123/PhotoLife
928bd0df08b06139d57162675ccf2896966868d1
ExpressionToCodeTest/ExpressionInterpretationBug.cs
ExpressionToCodeTest/ExpressionInterpretationBug.cs
using System; using System.Linq.Expressions; using Xunit; namespace ExpressionToCodeTest { public class ExpressionInterpretationBug { struct AStruct { public int AValue; } class SomethingMutable { public AStruct AStructField; ...
Add an expression interpretation bug test
Add an expression interpretation bug test
C#
apache-2.0
EamonNerbonne/ExpressionToCode
fd73dd9470f05416d9720e2fb841f9438534383f
osu.Framework.Benchmarks/BenchmarkBindableInstantiation.cs
osu.Framework.Benchmarks/BenchmarkBindableInstantiation.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 BenchmarkDotNet.Attributes; using osu.Framework.Bindables; namespace osu.Framework.Benchmarks { public class BenchmarkBindableInstantiation {...
Add benchmarks for bindable binding
Add benchmarks for bindable binding
C#
mit
peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework
33e808f9bae7279057164e50a25bf6d68414db8e
src/Orchard.Web/Modules/Orchard.Alias/Implementation/Updater/AliasHolderUpdater.cs
src/Orchard.Web/Modules/Orchard.Alias/Implementation/Updater/AliasHolderUpdater.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Orchard.Alias.Implementation.Holder; using Orchard.Alias.Implementation.Storage; namespace Orchard.Alias.Implementation.Updater { public interface IAliasHolderUpdater : IDependency { void Refresh(); } publi...
Replace missing file lost during merge
Replace missing file lost during merge
C#
bsd-3-clause
planetClaire/Orchard-LETS,planetClaire/Orchard-LETS,planetClaire/Orchard-LETS,planetClaire/Orchard-LETS,planetClaire/Orchard-LETS
49fe40164ae91e8007247c32870bb855c05c9710
Enigma/EnigmaUtilities/Resources.cs
Enigma/EnigmaUtilities/Resources.cs
// Resources.cs // <copyright file="Resources.cs"> This code is protected under the MIT License. </copyright> using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EnigmaUtilities { /// <summary> /// A static class with commonly used func...
Add a static resources library
Add a static resources library
C#
mit
It423/enigma-simulator,wrightg42/enigma-simulator
15859860fbe3d320197ba48e1142b9ba2f53a43c
MoreLinq/Experimental/ExperimentalEnumerable.cs
MoreLinq/Experimental/ExperimentalEnumerable.cs
#region License and Terms // MoreLINQ - Extensions to LINQ to Objects // Copyright (c) 2018 Atif Aziz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http:...
Add namespace & type for experimental work
Add namespace & type for experimental work Closes #209
C#
apache-2.0
fsateler/MoreLINQ,fsateler/MoreLINQ,morelinq/MoreLINQ,morelinq/MoreLINQ,ddpruitt/morelinq,ddpruitt/morelinq
c2f1f5e57c2025467c1dc1139698dcdecb276f10
src/Marten.Testing/Bugs/compiled_query_problem_with_includes_and_ICompiledQuery_reuse.cs
src/Marten.Testing/Bugs/compiled_query_problem_with_includes_and_ICompiledQuery_reuse.cs
using Marten.Linq; using Marten.Services; using Marten.Services.Includes; using Marten.Testing.Documents; using Shouldly; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using Xunit; namespace Marten.Testing.Bugs { public class compiled_query_problem_...
Add failing test for compiled queries with Includes
Add failing test for compiled queries with Includes
C#
mit
ericgreenmix/marten,mysticmind/marten,ericgreenmix/marten,JasperFx/Marten,ericgreenmix/marten,mysticmind/marten,mdissel/Marten,ericgreenmix/marten,mdissel/Marten,mysticmind/marten,JasperFx/Marten,JasperFx/Marten,mysticmind/marten
24f7f07db7ffb98174008a937de22efdc03ac6e6
source/ZocMonLib.Service.Reduce/ReduceServiceRunner.cs
source/ZocMonLib.Service.Reduce/ReduceServiceRunner.cs
using System; namespace ZocMonLib.Service.Reduce { public class ReduceServiceRunner { private readonly ISystemLogger _logger; private System.Timers.Timer _timer; private readonly ISettings _settings; public ReduceServiceRunner(ISettings settings) { _logger =...
using System; namespace ZocMonLib.Service.Reduce { public class ReduceServiceRunner { private readonly ISystemLogger _logger; private System.Timers.Timer _timer; private readonly ISettings _settings; public ReduceServiceRunner(ISettings settings) { ...
Set up timer so that it can't start reducing while previous reduction is still in progress.
Set up timer so that it can't start reducing while previous reduction is still in progress.
C#
apache-2.0
modulexcite/ZocMon,ZocDoc/ZocMon,ZocDoc/ZocMon,ZocDoc/ZocMon,modulexcite/ZocMon,modulexcite/ZocMon
26f44111b1014725ff0cec24c49f8bd89c09eb0d
source/Handlebars.Test/ReadmeTests.cs
source/Handlebars.Test/ReadmeTests.cs
using System.Collections.Generic; using Xunit; namespace HandlebarsDotNet.Test { public class ReadmeTests { [Fact] public void RegisterBlockHelper() { var handlebars = Handlebars.Create(); handlebars.RegisterHelper("StringEqualityBlockHelper", (output, options, c...
Add test to cover `RegisterBlockHelper` readme example
Add test to cover `RegisterBlockHelper` readme example
C#
mit
rexm/Handlebars.Net,rexm/Handlebars.Net
ece80bdce924ae9dfbc8b3e17d1733c41350b62d
test/UnitTests/UsageExamples.cs
test/UnitTests/UsageExamples.cs
using System; using System.Collections.Generic; using System.Text; using Xunit; using static Nito.ConnectedProperties.ConnectedProperty; namespace UnitTests { class UsageExamples { [Fact] public void SimpleUsage() { var obj = new object(); var nameProperty = Ge...
Add usage examples for double-checking doc examples.
Add usage examples for double-checking doc examples.
C#
mit
StephenCleary/ConnectedProperties
7210b5581f4cbee7212ec29ce22b465569841942
Chutes.Optimization/Entities/Path.cs
Chutes.Optimization/Entities/Path.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Chutes.Optimization.Entities { public class Path { LinkedList<Gamespace> _path = new LinkedList<Gamespace>(); public Path() { _path.C...
Add path.cs to source control
Add path.cs to source control
C#
mit
bsstahl/DPDemo
44d51a64da2f38535013da9243650185f0cebd35
JefBot/Commands/CoinPluginCommand.cs
JefBot/Commands/CoinPluginCommand.cs
using System; using System.Collections.Generic; using System.IO; using TwitchLib; using TwitchLib.TwitchClientClasses; using System.Net; namespace JefBot.Commands { internal class CoinPluginCommand : IPluginCommand { public string PluginName => "Coin"; public string Command => "coin"; ...
Add coin flipping command. Sometimes lands on it's side. No idea why!
Add coin flipping command. Sometimes lands on it's side. No idea why!
C#
mit
mikaelssen/FruitBowlBot
c1ad6b37521ac3de31486ab2f728a1d7e951dcf4
src/Sakuno.Base/NullableReferenceTypeSupportForLowerTFM.cs
src/Sakuno.Base/NullableReferenceTypeSupportForLowerTFM.cs
#if !NETSTANDARD2_1 namespace System.Diagnostics.CodeAnalysis { [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, Inherited = false)] sealed class AllowNullAttribute : Attribute { } [AttributeUsage(AttributeTargets.Method, Inherited = false)] seale...
Add suport of nullable reference type attributes for lower TFM
Add suport of nullable reference type attributes for lower TFM
C#
mit
KodamaSakuno/Sakuno.Base
5ce48a9fcb0ca25cc2771435dfd5fad6f8ef107e
NBi.Core/Members/Ranges/DateRangeBuilder.cs
NBi.Core/Members/Ranges/DateRangeBuilder.cs
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; namespace NBi.Core.Members.Ranges { internal class DateRangeBuilder : BaseBuilder { protected new DateRange Range { get { return (DateRange)base.R...
Add the builder of DateRange
Add the builder of DateRange
C#
apache-2.0
Seddryck/NBi,Seddryck/NBi
1d9c28ddd8b9cf8c786a9f56c2db49a809a325f5
osu.Framework/Graphics/BlendingInfo.cs
osu.Framework/Graphics/BlendingInfo.cs
// Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using OpenTK.Graphics.ES30; namespace osu.Framework.Graphics { public struct BlendingInfo { public BlendingFactorSrc Source; ...
// Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using OpenTK.Graphics.ES30; namespace osu.Framework.Graphics { public struct BlendingInfo { public BlendingFactorSrc Source; ...
Fix incorrect copying of blending values.
Fix incorrect copying of blending values.
C#
mit
naoey/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,RedNesto/osu-framework,peppy/osu-framework,default0/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,DrabWeb/osu-framework,naoey/osu-framework,Nabile-Rahmani/osu-framework,paparony03/osu-framework,ZLima...
f889f0df364614214445733214d68ad94bc94416
osu.Game.Rulesets.Taiko.Tests/TestSceneBarLineGeneration.cs
osu.Game.Rulesets.Taiko.Tests/TestSceneBarLineGeneration.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.Game.Beatmaps; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Beatmaps.Timing; using osu.Game.Rulesets.Objects;...
Add tests for the BarLineGenerator
Add tests for the BarLineGenerator
C#
mit
ppy/osu,peppy/osu,ppy/osu,peppy/osu,ppy/osu,peppy/osu
d6d0e2c9a7eec5a2403e8cad5f89213b168feb72
src/base/common/type/suppliers/ISupplierStream.cs
src/base/common/type/suppliers/ISupplierStream.cs
using System; namespace Nohros { /// <summary> /// A implementation of the <see cref="ISupplier{T}"/> class that supply /// elements of type <typeparamref name="T"/> in a sequence. /// </summary> /// <typeparam name="T"> /// The type of objects supplied. /// </typeparam> public interface IS...
Create a supplier that supply elements continually(Stream).
Create a supplier that supply elements continually(Stream).
C#
mit
nohros/must,nohros/must,nohros/must
1ab449b73e081284f88125c696845c51c35ae984
osu.Game.Tournament.Tests/Screens/TestSceneDrawingsScreen.cs
osu.Game.Tournament.Tests/Screens/TestSceneDrawingsScreen.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.IO; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Platform; using osu.Game.Graphics.Cursor; using osu.Game.Tournament.Scr...
Add test scene for drawings screen
Add test scene for drawings screen
C#
mit
NeoAdonis/osu,peppy/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,ppy/osu,peppy/osu-new,smoogipoo/osu,ppy/osu,smoogipooo/osu
a4f86d3660a6034185bc8db45f31d51485cc456f
test/UnitTests/ComparableBase_Struct_DefaultComparer.cs
test/UnitTests/ComparableBase_Struct_DefaultComparer.cs
using System; using System.Collections.Generic; using System.Linq; using Nito.Comparers; using Nito.Comparers.Util; using Xunit; namespace UnitTests { public class ComparableBase_Struct_DefaultComparerUnitTests { private struct Person : IComparable<Person>, IEquatable<Person>, IComparable { ...
Add examples and unit tests for comparing structs.
Add examples and unit tests for comparing structs.
C#
mit
StephenCleary/Comparers
b2564ef0c0184cb285e5f3098e32c28d2be9cc45
LeetCode/remote/reorder_list.cs
LeetCode/remote/reorder_list.cs
// https://leetcode.com/problems/reorder-list/ // // Given a singly linked list L: L0→L1→…→Ln-1→Ln, // reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… // // You must do this in-place without altering the nodes' values. // // For example, // Given {1,2,3,4}, reorder it to {1,4,2,3}. using System; public class ListN...
Reorder list - off by one
Reorder list - off by one
C#
mit
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
4d0736fc2da6328430b2e403a9af1dc78f361bec
test/AsmResolver.DotNet.Tests/Builder/CilMethodBodySerializerTest.cs
test/AsmResolver.DotNet.Tests/Builder/CilMethodBodySerializerTest.cs
using AsmResolver.DotNet.Builder; using AsmResolver.DotNet.Code.Cil; using AsmResolver.DotNet.Signatures; using AsmResolver.PE.DotNet.Cil; using AsmResolver.PE.DotNet.Metadata.Tables.Rows; using Xunit; namespace AsmResolver.DotNet.Tests.Builder { public class CilMethodBodySerializerTest { [Theory] ...
Add unit test for compute max stack override.
Add unit test for compute max stack override.
C#
mit
Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver
e6f183e39edcfe699de25370a91ca2c42bfbe508
src/Components/Web/src/Web/RenderTreeBuilderExtensions.cs
src/Components/Web/src/Web/RenderTreeBuilderExtensions.cs
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNetCore.Components.Rendering; using Microsoft.AspNetCore.Components.RenderTree; namespace Microsoft.AspNetCore.Components.Web { ...
Add RenderTreeBuilder extension methods for "prevent default" and "stop bubbling"
Add RenderTreeBuilder extension methods for "prevent default" and "stop bubbling"
C#
apache-2.0
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
1c8212d510e6bb218570a2ad2fa1afb5a3abc383
osu.Game.Rulesets.Osu.Tests/TestCaseHitCircleLongCombo.cs
osu.Game.Rulesets.Osu.Tests/TestCaseHitCircleLongCombo.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Game.Beatmaps; using osu.Game.Rulesets.Osu.Objects; using osuTK; namespace osu.Game.Rulesets.Osu.Tests { [TestFixture] public cl...
Add a TestCase for looong combos
Add a TestCase for looong combos
C#
mit
ppy/osu,2yangk23/osu,naoey/osu,smoogipooo/osu,peppy/osu,naoey/osu,naoey/osu,UselessToucan/osu,ZLima12/osu,ppy/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,ZLima12/osu,peppy/osu,NeoAdonis/osu,2yangk23/osu,smoogipoo/osu,johnneijzen/osu,DrabWeb/osu,UselessToucan/osu,DrabWeb/osu,EVAST9919/osu,NeoAdonis/osu,ppy/osu,DrabWeb/osu...
08842fccc13e432b35d80a4c565b4a855e63a863
Source/Csla.Wp/DataAnnotations/StringLengthAttribute.cs
Source/Csla.Wp/DataAnnotations/StringLengthAttribute.cs
using System; namespace System.ComponentModel.DataAnnotations { /// <summary> /// Specifies that a data field value must /// fall within the specified range. /// </summary> [AttributeUsage(AttributeTargets.Property)] public class StringLengthAttribute : ValidationAttribute { private int _...
using System; namespace System.ComponentModel.DataAnnotations { /// <summary> /// Specifies that a data field value must /// fall within the specified range. /// </summary> [AttributeUsage(AttributeTargets.Property)] public class StringLengthAttribute : ValidationAttribute { private int _...
Fix comment on attribute ctor. bugid: 862
Fix comment on attribute ctor. bugid: 862
C#
mit
rockfordlhotka/csla,BrettJaner/csla,rockfordlhotka/csla,ronnymgm/csla-light,JasonBock/csla,ronnymgm/csla-light,ronnymgm/csla-light,MarimerLLC/csla,jonnybee/csla,MarimerLLC/csla,jonnybee/csla,JasonBock/csla,rockfordlhotka/csla,jonnybee/csla,JasonBock/csla,BrettJaner/csla,MarimerLLC/csla,BrettJaner/csla
defa118b95bdd1f2b7ee736fbbae3e9aeb8ef39f
Select.outside.of.Profile.cs
Select.outside.of.Profile.cs
//Synchronous template //----------------------------------------------------------------------------------- // PCB-Investigator Automation Script // Created on 14.10.2015 // Autor Fabio Gruber // // Select all elements outside the board contour, e.g. to delete them. //------------------------------------------...
Select everything outside of pcb profile
Select everything outside of pcb profile
C#
bsd-3-clause
sts-CAD-Software/PCB-Investigator-Scripts
ce78f3af70f35cf6ffb4b70275ec2c1c9937d398
slang/Lexing/Trees/Transformers/RepeatRuleExtensions.cs
slang/Lexing/Trees/Transformers/RepeatRuleExtensions.cs
using System.Linq; using slang.Lexing.Rules.Core; using slang.Lexing.Trees.Nodes; namespace slang.Lexing.Trees.Transformers { public static class RepeatRuleExtensions { public static Tree Transform (this Repeat rule) { var tree = rule.Value.Transform (); var transitions...
Transform repeat rules into a tree
Transform repeat rules into a tree
C#
mit
jagrem/slang,jagrem/slang,jagrem/slang
9687ffc5c6fb47386e6703f8d6043d60cf13e988
LeetCode/remote/remove_duplicates_from_sorted_list_II.cs
LeetCode/remote/remove_duplicates_from_sorted_list_II.cs
// https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/ // Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. // // For example, // Given 1->2->3->3->4->4->5, return 1->2->5. // Given 1->1->1->2->3, return 2->3. // //...
Remove duplicates from sorted list II
Remove duplicates from sorted list II
C#
mit
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
892d68512f1fb6835bed2ed386e36d8603c00a0b
CarsControllersTests/CarContextMockBuilder.cs
CarsControllersTests/CarContextMockBuilder.cs
using System.Collections.Generic; using System.Linq; using PathFinder.Cars.DAL.Model; using PathFinder.Cars.WebApi.Queries; namespace CarsControllersTests { public class CarContextQueryMockBuilder { private readonly CarContextMock _fakeQuery; public CarContextQueryMockBuilder() { ...
Add mock builder for CarsContextQuery
Add mock builder for CarsContextQuery
C#
mit
senioroman4uk/PathFinder
ae19a38a805ef4a4a758115497da32f9d31e9030
src/Log4netAssemblyInfo.cs
src/Log4netAssemblyInfo.cs
#region Apache License // // Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 // (...
Make metadata accessible without reflection
Make metadata accessible without reflection git-svn-id: 7230453ef4d2e9c957b80d4737114f575fc9f7f8@1159843 13f79535-47bb-0310-9956-ffa450edef68
C#
apache-2.0
twcclegg/log4net,freedomvoice/log4net,twcclegg/log4net,freedomvoice/log4net,freedomvoice/log4net,freedomvoice/log4net,twcclegg/log4net,twcclegg/log4net
83c6d82f9f866c995fa9f41d533ab885683444bc
SetProfil.cs
SetProfil.cs
//----------------------------------------------------------------------------------- // PCB-Investigator Automation Script // Created on 2014-04-24 // Autor support@easylogix.de // www.pcb-investigator.com // SDK online reference http://www.pcb-investigator.com/sites/default/files/documents/InterfaceDocumentation...
Set Profil to fix Rectangle
Set Profil to fix Rectangle Set Profil to fix Rectangle. The example rectangle is fixed size with 15 Inch x 10 Inch, just change the newBounds rectangle to get the size your company needs.
C#
bsd-3-clause
sts-CAD-Software/PCB-Investigator-Scripts
718d6484ddc2c18e4b269d69d1d60e719e8f0532
InfiniMap.Test/MapTests.cs
InfiniMap.Test/MapTests.cs
using System; using NUnit.Framework; namespace InfiniMap.Test { [TestFixture] public class MapTests { private Map createMap(int chunkSize, int chunksToFill) { var map = new Map(chunkSize, chunkSize); for (int x = 0; x <= (chunksToFill * chunkSize-1); x++) ...
Add missing file for Map tests
Add missing file for Map tests
C#
mit
LambdaSix/InfiniMap,LambdaSix/InfiniMap
f4397a1ee99ac78aa68a619d146b8bef6aba2119
source/Glimpse.AspNet/SerializationConverter/SessionModelConverter.cs
source/Glimpse.AspNet/SerializationConverter/SessionModelConverter.cs
using System.Collections.Generic; using Glimpse.AspNet.Extensions; using Glimpse.AspNet.Model; using Glimpse.Core.Extensibility; namespace Glimpse.AspNet.SerializationConverter { public class SessionModelConverter : SerializationConverter<List<SessionModel>> { public override object Convert(List<Sessi...
using System.Collections.Generic; using Glimpse.AspNet.Extensions; using Glimpse.AspNet.Model; using Glimpse.Core.Extensibility; using Glimpse.Core.Plugin.Assist; namespace Glimpse.AspNet.SerializationConverter { public class SessionModelConverter : SerializationConverter<List<SessionModel>> { public ...
Refactor var in Session to be consistent with rest of the plugins
Refactor var in Session to be consistent with rest of the plugins
C#
apache-2.0
Glimpse/Glimpse,flcdrg/Glimpse,elkingtonmcb/Glimpse,elkingtonmcb/Glimpse,SusanaL/Glimpse,sorenhl/Glimpse,dudzon/Glimpse,Glimpse/Glimpse,sorenhl/Glimpse,Glimpse/Glimpse,paynecrl97/Glimpse,rho24/Glimpse,rho24/Glimpse,paynecrl97/Glimpse,SusanaL/Glimpse,rho24/Glimpse,dudzon/Glimpse,paynecrl97/Glimpse,paynecrl97/Glimpse,rho...
9094691c492894c7a1129de16d988d5d85be4d44
test/UnitTests/SingleDisposableUnitTests.cs
test/UnitTests/SingleDisposableUnitTests.cs
using System; using System.Threading.Tasks; using Nito.AsyncEx; using System.Linq; using System.Threading; using System.Diagnostics.CodeAnalysis; using Xunit; namespace UnitTests { public class SingleDisposableUnitTests { [Fact] public void ConstructedWithNullContext_DisposeIsANoop() {...
Add unit tests for SingleDisposable.
Add unit tests for SingleDisposable.
C#
mit
StephenCleary/AsyncEx.Tasks
7183a1f3aee32c87842f486b5947ddba982bc7c4
src/CommonAssemblyInfo.cs
src/CommonAssemblyInfo.cs
using System; using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyProduct("Harbour.RedisSessionStateStore")] [assembly: AssemblyCompany("http...
using System; using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyProduct("Harbour.RedisSessionStateStore")] [assembly: AssemblyCompany("http...
Update website and copyright year.
Update website and copyright year.
C#
mit
TheCloudlessSky/Harbour.RedisSessionStateStore,TaskStack/Harbour.RedisSessionStateStore,TheCloudlessSky/Harbour.RedisSessionStateStore,piotr-g/Harbour.RedisSessionStateStore,kharabasz/Harbour.RedisSessionStateStore,huyuezheng/Harbour.RedisSessionStateStore
7561cfd431771c14e64dd258542de1ad3ecbea91
src/wwwroot/Edit/Default.aspx.cs
src/wwwroot/Edit/Default.aspx.cs
using System; using N2.Web.UI.WebControls; namespace N2.Edit { [ToolbarPlugin("", "tpPreview", "{url}", ToolbarArea.Preview, Targets.Preview, "~/Edit/Img/Ico/Png/eye.png", 0, ToolTip = "edit", GlobalResourceClassName = "Toolbar")] [ControlPanelLink("cpAdminister", "~/edit/img/ico/png/application_side_tree.png"...
using System; using N2.Web.UI.WebControls; namespace N2.Edit { [ToolbarPlugin("", "tpPreview", "{url}", ToolbarArea.Preview, Targets.Preview, "~/Edit/Img/Ico/Png/eye.png", 0, ToolTip = "edit", GlobalResourceClassName = "Toolbar")] [ControlPanelLink("cpAdminister", "~/edit/img/ico/png/application_side_tree.png"...
Select start page by default instead of root
Select start page by default instead of root
C#
lgpl-2.1
VoidPointerAB/n2cms,nicklv/n2cms,nimore/n2cms,nimore/n2cms,n2cms/n2cms,bussemac/n2cms,nicklv/n2cms,bussemac/n2cms,bussemac/n2cms,DejanMilicic/n2cms,SntsDev/n2cms,VoidPointerAB/n2cms,SntsDev/n2cms,nimore/n2cms,bussemac/n2cms,nicklv/n2cms,EzyWebwerkstaden/n2cms,EzyWebwerkstaden/n2cms,SntsDev/n2cms,VoidPointerAB/n2cms,Ezy...
0d1719e4e421aad60334ca8ffd3157c81d5ce406
src/ResourceManagement/DataFactory/DataFactoryManagement/Generated/Models/Location.cs
src/ResourceManagement/DataFactory/DataFactoryManagement/Generated/Models/Location.cs
// // Copyright (c) Microsoft and contributors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requi...
// // Copyright (c) Microsoft and contributors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requi...
Add NorthEurope to location enum for Data Factories
Add NorthEurope to location enum for Data Factories
C#
apache-2.0
bgold09/azure-sdk-for-net,dasha91/azure-sdk-for-net,felixcho-msft/azure-sdk-for-net,jasper-schneider/azure-sdk-for-net,abhing/azure-sdk-for-net,felixcho-msft/azure-sdk-for-net,gubookgu/azure-sdk-for-net,shuagarw/azure-sdk-for-net,ailn/azure-sdk-for-net,ailn/azure-sdk-for-net,kagamsft/azure-sdk-for-net,nemanja88/azure-s...
7bc40ab13d027632b9ea7b716ea4f4a1822e1958
Content.IntegrationTests/Tests/ReconnectTest.cs
Content.IntegrationTests/Tests/ReconnectTest.cs
using System.Threading.Tasks; using NUnit.Framework; using Robust.Client.Console; using Robust.Shared.Interfaces.Network; using Robust.Shared.IoC; namespace Content.IntegrationTests.Tests { [TestFixture] public class ReconnectTest : ContentIntegrationTest { [Test] public async Task Test() ...
Add test asserting reconnect works.
Add test asserting reconnect works.
C#
mit
space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14
dc2524c7dcb3a4558a6284ef58850b7b99597f10
Postolego/Converters/TextDependentOnSelectedIndexConverter.cs
Postolego/Converters/TextDependentOnSelectedIndexConverter.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; namespace Postolego.Converters { public class TextDependentOnSelectedIndexConverter : IValueConverter { public object Convert(object value, Type targetType, object...
Add 'tabs' and header with converter on main page
Add 'tabs' and header with converter on main page
C#
mit
jonstodle/Postolego
03d80bc2232724dc00c55e665efa027c3f95555d
src/NSync.Core/Http.cs
src/NSync.Core/Http.cs
using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Reactive.Linq; using System.Reactive.Subjects; using System.Text; namespace NSync.Core { public static class Http { /// <summary> /// Download data from an HTTP URL and insert the result into the ...
Add an Rx-friendly HTTP downloader
Add an Rx-friendly HTTP downloader
C#
mit
rzhw/Squirrel.Windows,rzhw/Squirrel.Windows
79c032b3721227724491559ea7617ca70c18236c
examples/basic-mvc-sample/BasicMvcSample/Views/Account/Login.cshtml
examples/basic-mvc-sample/BasicMvcSample/Views/Account/Login.cshtml
@using System.Configuration; @{ ViewBag.Title = "Login"; } <div id="root" style="width: 280px; margin: 40px auto;"> </div> @Html.AntiForgeryToken() <script src="https://cdn.auth0.com/js/lock-7.9.min.js"></script> <script> if (!window.location.origin) { window.location.origin = window.location.protocol...
@using System.Configuration; @{ ViewBag.Title = "Login"; } <div id="root" style="width: 280px; margin: 40px auto;"> </div> @Html.AntiForgeryToken() <script src="https://cdn.auth0.com/js/lock-7.11.min.js"></script> <script> if (!window.location.origin) { window.location.origin = window.location.protoco...
Update lock to version 7.11
Update lock to version 7.11
C#
mit
Amialc/auth0-aspnet-owin,jerriep/auth0-aspnet-owin,jerriep/auth0-aspnet-owin,auth0/auth0-aspnet-owin,Amialc/auth0-aspnet-owin,Amialc/auth0-aspnet-owin,auth0/auth0-aspnet-owin,jerriep/auth0-aspnet-owin,auth0/auth0-aspnet-owin
2e0d4cd40f8b7b0f54104d6facd62d84b6a848a1
Assets/HoloToolkit/Utilities/Scripts/RaycastResultComparer.cs
Assets/HoloToolkit/Utilities/Scripts/RaycastResultComparer.cs
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System.Collections.Generic; using UnityEngine.EventSystems; namespace HoloToolkit.Unity { public class RaycastResultComparer : IComparer<RaycastResult> ...
// 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.Collections.Generic; using UnityEngine.EventSystems; namespace HoloToolkit.Unity { public class RaycastResultComparer : IComparer<Ray...
Add sorting order/layer comparison Also move comparer methods into a list
Add sorting order/layer comparison Also move comparer methods into a list
C#
mit
HattMarris1/HoloToolkit-Unity,NeerajW/HoloToolkit-Unity,paseb/HoloToolkit-Unity,paseb/MixedRealityToolkit-Unity,out-of-pixel/HoloToolkit-Unity,willcong/HoloToolkit-Unity
7ca8255d6f92470493cb24537967786d326acc78
src/Microsoft.VisualStudio.LanguageServices.Razor/VisualStudioForegroundDispatcher.cs
src/Microsoft.VisualStudio.LanguageServices.Razor/VisualStudioForegroundDispatcher.cs
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.ComponentModel.Composition; using Microsoft.VisualStudio.Shell; namespace Microsoft.VisualStudio.LanguageServices.Razor { [Export(typ...
Add a default VS foregrounddispatcher
Add a default VS foregrounddispatcher
C#
apache-2.0
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
fa07dfd7ec10605e8e86f1cfa5fd6a0bc1b84e94
ElectronicCash.Tests/CustomerDataTests.cs
ElectronicCash.Tests/CustomerDataTests.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; namespace ElectronicCash.Tests { [TestFixture] class CustomerDataTests { //private static DateTime _dateTime = new DateTime(); private static readonly...
Write various unit tests for CustomerData, Name, and StreetAddress
Write various unit tests for CustomerData, Name, and StreetAddress
C#
mit
0culus/ElectronicCash
b9d397e6a0a9c2ffe6d7e2160127cb1ea9052624
Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs
Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs
using Microsoft.AspNetCore.Mvc; using Promact.Trappist.DomainModel.Models.Question; using Promact.Trappist.Repository.Questions; using System; namespace Promact.Trappist.Core.Controllers { [Route("api/question")] public class QuestionsController : Controller { private readonly IQuestionRepository ...
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
2f32ca6408e68efc06717a0937d7859b3abb69a8
shared/RendererMapJsonTextWriter.cs
shared/RendererMapJsonTextWriter.cs
using System.IO; using log4net.ObjectRenderer; using log4net.Util.Serializer; namespace Newtonsoft.Json.Serialization { public class RendererMapJsonTextWriter : JsonTextWriter { private readonly RendererMap rendererMap; private readonly TextWriter textWriter; public RendererMapJsonTex...
Add JsonWriter impl. that defaults to using a RendererMap
Add JsonWriter impl. that defaults to using a RendererMap
C#
mit
smarts/log4net.Ext.Json.Serializers
fbcddd2008c690e5689474e058b18b0d0dfb2c9b
src/dotless.AspNet/LessCssHttpHandler.cs
src/dotless.AspNet/LessCssHttpHandler.cs
namespace dotless.Core { using System.Web; using System.Web.SessionState; public class LessCssWithSessionHttpHandler : LessCssHttpHandler, IRequiresSessionState { } public class LessCssHttpHandler : LessCssHttpHandlerBase, IHttpHandler { public void ProcessRequest(HttpContext ...
namespace dotless.Core { using System.Web; using System.Web.SessionState; public class LessCssWithSessionHttpHandler : LessCssHttpHandler, IRequiresSessionState { } public class LessCssHttpHandler : LessCssHttpHandlerBase, IHttpHandler { public void ProcessRequest(HttpContext ...
Remove error message giving away path location if not accessing from the local machine
Remove error message giving away path location if not accessing from the local machine
C#
apache-2.0
rytmis/dotless,modulexcite/dotless,r2i-sitecore/dotless,rytmis/dotless,modulexcite/dotless,r2i-sitecore/dotless,modulexcite/dotless,r2i-sitecore/dotless,rytmis/dotless,dotless/dotless,rytmis/dotless,r2i-sitecore/dotless,r2i-sitecore/dotless,modulexcite/dotless,modulexcite/dotless,rytmis/dotless,modulexcite/dotless,rytm...
da6fdb7be6a4cf377e7ea592531884b0b21f77f4
src/ZeroLog.Tests/SanityChecks.cs
src/ZeroLog.Tests/SanityChecks.cs
using System.Linq; using NUnit.Framework; using ZeroLog.Tests.Support; namespace ZeroLog.Tests; [TestFixture] public class SanityChecks { [Test] public void should_export_expected_types() { // This test prevents mistakenly adding public types in the future. var publicTypes = new[] ...
Add a sanity check for exported types
Add a sanity check for exported types
C#
mit
Abc-Arbitrage/ZeroLog
87a9d293da8126390867235872a5c5d3b95c2edc
src/Spring/Spring.Core/Objects/Factory/Parsing/IProblemReporter.cs
src/Spring/Spring.Core/Objects/Factory/Parsing/IProblemReporter.cs
using System; using System.Collections.Generic; using System.Text; namespace Spring.Objects.Factory.Parsing { public interface IProblemReporter { void Fatal(Problem problem); void Warning(Problem problem); void Error(Problem problem); } }
Add missing file from code config branch
Add missing file from code config branch
C#
apache-2.0
kvr000/spring-net,zi1jing/spring-net,yonglehou/spring-net,djechelon/spring-net,djechelon/spring-net,spring-projects/spring-net,zi1jing/spring-net,spring-projects/spring-net,kvr000/spring-net,dreamofei/spring-net,likesea/spring-net,yonglehou/spring-net,likesea/spring-net,yonglehou/spring-net,likesea/spring-net,kvr000/sp...
a9c30df281ecf47a6ed0d7e78ed0fc4b740ced38
dotNet/Version/VersionHelper.cs
dotNet/Version/VersionHelper.cs
public static string GetProductVersion() { var attribute = (AssemblyVersionAttribute)Assembly .GetExecutingAssembly() .GetCustomAttributes( typeof(AssemblyVersionAttribute), true ) .Single(); return attribute.InformationalVersion; }
Add simple snippet to get InformationalVersion
Add simple snippet to get InformationalVersion
C#
unlicense
lerthe61/Snippets,lerthe61/Snippets
1384a08976698f8fb282022f07418dceb7d83bc3
Http2Tests/ConnectionUnknownFrameTests.cs
Http2Tests/ConnectionUnknownFrameTests.cs
using System; using System.Collections.Generic; using System.Threading.Tasks; using Xunit; using Http2; namespace Http2Tests { public class ConnectionUnknownFrameTests { [Theory] [InlineData(true, 0)] [InlineData(true, 512)] [InlineData(false, 0)] [InlineData(false, 51...
Add a testcase for unknown frame types
Add a testcase for unknown frame types
C#
mit
Matthias247/http2dotnet
71fb7c5b1b1c4d0de4dfa4d3feeb73234cdfb239
SharpNavTests/JSONTests.cs
SharpNavTests/JSONTests.cs
#region License /** * Copyright (c) 2013-2014 Robert Rouhani <robert.rouhani@gmail.com> and other contributors (see CONTRIBUTORS file). * Licensed under the MIT License - https://raw.github.com/Robmaister/SharpNav/master/LICENSE */ #endregion using System; using System.Collections; using System.Collections.Gene...
#region License /** * Copyright (c) 2013-2014 Robert Rouhani <robert.rouhani@gmail.com> and other contributors (see CONTRIBUTORS file). * Licensed under the MIT License - https://raw.github.com/Robmaister/SharpNav/master/LICENSE */ #endregion using System; using System.Collections; using System.Collections.Gene...
Update WriteJSONTest to initialize TiledNavMesh with non-null parameter
Update WriteJSONTest to initialize TiledNavMesh with non-null parameter
C#
mit
unity-chicken/SharpNav,sangdaekim/SharpNav,sangdaekim/SharpNav,unity-chicken/SharpNav
d7dec4ded2b8faa836c7fad5148f25fdab997296
src/System.Globalization.Calendars/tests/KoreanCalendar/KoreanCalendarTwoDigitYearMax.cs
src/System.Globalization.Calendars/tests/KoreanCalendar/KoreanCalendarTwoDigitYearMax.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 Xunit; namespace System.Globalization.Tests { public class KoreanCalendarTwoDigitYearMax { [F...
// 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 Xunit; namespace System.Globalization.Tests { public class KoreanCalendarTwoDigitYearMax { [F...
Add a test for TwoDigitYearMax to KoreanCalendar
Add a test for TwoDigitYearMax to KoreanCalendar
C#
mit
shahid-pk/corefx,Petermarcu/corefx,alexperovich/corefx,shmao/corefx,mmitche/corefx,jlin177/corefx,ericstj/corefx,richlander/corefx,ptoonen/corefx,weltkante/corefx,cydhaselton/corefx,tijoytom/corefx,ptoonen/corefx,rahku/corefx,shimingsg/corefx,dsplaisted/corefx,mazong1123/corefx,krytarowski/corefx,adamralph/corefx,richl...
deadf4066421463183cb3fd436cec9eb0a27bcb1
Extensions/TileExtensions.cs
Extensions/TileExtensions.cs
// This set of methods extends the most excellent Rotorz api. I built this set because, // while I love Rotorz, I find its method paramaters frustrating to use. Specifically, // I tend to send x coordinates first in my params, followed by y coordinates; while // Rotorz transposes this. It has lead to many crazy-making ...
Extend the Rotorz Tile System api
Extend the Rotorz Tile System api I built this set of extensions because, while I love Rotorz, I find its method paramaters frustrating to use. Specifically, I tend to send x coordinates first in my params, followed by y coordinates; while Rotorz transposes these. It has lead to many crazy-making bugs in my code. The...
C#
mit
jguarShark/Unity2D-Components,cmilr/Unity2D-Components
c97caea03dc188aabd7e929276cf62a87c11a3fe
src/Bridge/Property.cs
src/Bridge/Property.cs
using System; using System.Collections.Generic; namespace Cxxi { /// <summary> /// Represents a C++ property. /// </summary> public class Property { public Property(string name, Declaration type) { Name = name; Type = type; } public string Na...
using System; using System.Collections.Generic; namespace Cxxi { /// <summary> /// Represents a C++ property. /// </summary> public class Property : Declaration { public Property(string name, Declaration type) { Name = name; Type = type; } pu...
Change properties to inherit from declarations.
Change properties to inherit from declarations.
C#
mit
xistoso/CppSharp,txdv/CppSharp,SonyaSa/CppSharp,SonyaSa/CppSharp,txdv/CppSharp,SonyaSa/CppSharp,nalkaro/CppSharp,genuinelucifer/CppSharp,ktopouzi/CppSharp,mono/CppSharp,mohtamohit/CppSharp,mono/CppSharp,mono/CppSharp,genuinelucifer/CppSharp,xistoso/CppSharp,inordertotest/CppSharp,zillemarco/CppSharp,KonajuGames/CppShar...
a0678d51dc52629b0d7b13f62a9f35fa0cd4ec6a
Source/ContractsWindow/contractSortClass.cs
Source/ContractsWindow/contractSortClass.cs
 namespace ContractsWindow { public enum contractSortClass { Difficulty = 1, Expiration = 2, Acceptance = 3, Reward = 4, Type = 5, Planet = 6, } }
Move sort class to new file
Move sort class to new file
C#
mit
DMagic1/KSP_Contract_Window