commit
stringlengths
40
40
subject
stringlengths
4
1.73k
repos
stringlengths
5
127k
old_file
stringlengths
2
751
new_file
stringlengths
2
751
new_contents
stringlengths
1
8.98k
old_contents
stringlengths
0
6.59k
license
stringclasses
13 values
lang
stringclasses
23 values
d188792ed0783697072231f6ee8de47587571799
Add UIExtensions
LightPaper/Infrastructure
Helpers/UIExtensions.cs
Helpers/UIExtensions.cs
#region Using using System.Windows; using System.Windows.Media; #endregion namespace LightPaper.Infrastructure.Helpers { public static class UIExtensions { public static T FindVisualChild<T>(this DependencyObject depObj) where T : DependencyObject { if (depObj == nul...
mit
C#
746f28c8487d05b697db217f0a66849c16132396
Add test scene for song bar component
peppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,ppy/osu,peppy/osu,ppy/osu
osu.Game.Tournament.Tests/Components/TestSceneSongBar.cs
osu.Game.Tournament.Tests/Components/TestSceneSongBar.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.Game.Beatmaps.Legacy; using osu.Game.Tests.Visual; using osu.Game.Tournament.Components; namespace osu.Gam...
mit
C#
b3bf12855db4ca667d868de9866e2d60e383abd1
Create FYI.cs
SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming
Kattis-Solutions/FYI.cs
Kattis-Solutions/FYI.cs
using System; namespace FYI { class Program { static void Main(string[] args) { string telnum = Console.ReadLine(); Console.WriteLine(telnum.StartsWith("555")? 1 : 0); } } }
mit
C#
3c961ee8552cdd70a9378a26d4c3608c8cb1354f
Implement Cached Blocks Provider
nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet
WalletWasabi/Wallets/CachedBlocksProvider.cs
WalletWasabi/Wallets/CachedBlocksProvider.cs
using NBitcoin; using System.Threading; using System.Threading.Tasks; namespace WalletWasabi.Wallets { /// <summary> /// CachedBlocksProvider is a blocks provider that keep the blocks on a repository to satify future requests. /// </summary> public class CachedBlocksProvider : IBlocksProvider { public CachedBl...
mit
C#
ae4add824a3531fd84264201971cb29406dd7d77
Debug Utils
dlerps/ddev-tools
lib/src/utils/DebugUtils.cs
lib/src/utils/DebugUtils.cs
using System; using System.Collections.Generic; using System.Text; namespace DDev.Tools { public static class DebugUtils { /// <summary> /// Convenience method which combines String.Format and Console.WriteLine(...) /// </summary> /// <param name="msg"></param> /// <par...
mit
C#
2da905486c1898137e716266e1c03b4aa5181db9
Create Number.cs
drawcode/labs-csharp
utilities/Number.cs
utilities/Number.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Labs.Utility { public class Number { public static Random r = new Random((int)DateTime.Now.Ticks); public static int RandomInt(int min, int max) { return r.Next(min, max); }...
mit
C#
6f8d66073fba277f1b67c8a7d007570903ecad73
Create TransformResetButton.cs
scmcom/unitycode
TransformResetButton.cs
TransformResetButton.cs
using UnityEngine; using UnityEditor; using System.Collections; [CustomEditor(typeof(Transform))] public class TransformResetButton : Editor { public override void OnInspectorGUI() { if(GUILayout.Button("Reset")) { var transform = target as Transform; transform.position = Vector3.zero; transform.local...
mit
C#
1b7f774a63a46c908048928cb57bcf57fa2714aa
Add benchmark for stream extensions
peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework
osu.Framework.Benchmarks/BenchmarkStreamExtensions.cs
osu.Framework.Benchmarks/BenchmarkStreamExtensions.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.IO; using BenchmarkDotNet.Attributes; using osu.Framework.Extensions; namespace osu.Framework.Benchmarks { [MemoryDiagnoser] public c...
mit
C#
d81c2d2cd7492b9a8861fe65acd4f7532b13bbe4
Test added, damn
Squidex/squidex,Squidex/squidex,Squidex/squidex,pushrbx/squidex,pushrbx/squidex,pushrbx/squidex,pushrbx/squidex,Squidex/squidex,Squidex/squidex,pushrbx/squidex
tests/Squidex.Domain.Apps.Read.Tests/Rules/RuleDequeuerTests.cs
tests/Squidex.Domain.Apps.Read.Tests/Rules/RuleDequeuerTests.cs
// ========================================================================== // RuleDequeuerTests.cs // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex Group // All rights reserved. // =====================================================...
mit
C#
3628bec5e616cd5f34af03cbe547e91a5b7dacde
add TimeSpan extensions
yisoft-dotnet/framework
src/Yisoft.Framework/Extensions/TimeSpanExtensions.cs
src/Yisoft.Framework/Extensions/TimeSpanExtensions.cs
// ) * // ( /( * ) ( ( ` // )\()) ( ` ) /( ( )\ )\))( // ((_)\ )\ ( )(_)))\ ((((_)( ((_)()\ // __ ((_)((_) (_(_())((_) )\ _ )\ (_()((_) // \ \ / / (_) |_ _|| __|(_)_\(_)| \/ | // \ V / | | _ | | | _| / _ \ | |\/| | // ...
apache-2.0
C#
17bcf39106827aae8b131b2f867a59689b03b021
Create StaticConverter.cs
UnstableMutex/BytesConverter
StaticConverter.cs
StaticConverter.cs
public enum ByteUnits:byte { Bytes=0, KBytes=1,MBytes=2,GBytes=3,TBytes=4,PBytes=5 } public enum BitUnits:byte { Bits=0, KBits=1, MBits=2, GBits=3, TBits=4, PBits=5 } public static class Ext { public static long Convert(this ByteUnits bu,int size) { ...
mit
C#
5dc21754c27969ef4c01aa5f1d70e66d4de4d128
Add abstract class
jasonmalinowski/roslyn,weltkante/roslyn,tmat/roslyn,AlekseyTs/roslyn,tmat/roslyn,KevinRansom/roslyn,brettfo/roslyn,sharwell/roslyn,genlu/roslyn,jmarolf/roslyn,mgoertz-msft/roslyn,diryboy/roslyn,gafter/roslyn,dotnet/roslyn,CyrusNajmabadi/roslyn,panopticoncentral/roslyn,heejaechang/roslyn,brettfo/roslyn,aelij/roslyn,aeli...
src/EditorFeatures/Core/ExternalAccess/VSTypeScript/VSTypeScriptInlineRenameInfoBase.cs
src/EditorFeatures/Core/ExternalAccess/VSTypeScript/VSTypeScriptInlineRenameInfoBase.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.Collections.Generic; using System.Collections.Immutable; using System.Threading; using System.Threadin...
mit
C#
82d9f177bbe9e9f8a3f020d73eca830b6c49db1d
add CancellationTokenProvider
WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common
src/WeihanLi.Common/Services/CancellationTokenProvider.cs
src/WeihanLi.Common/Services/CancellationTokenProvider.cs
using System.Threading; namespace WeihanLi.Common.Services { public interface ICancellationTokenProvider { CancellationToken GetCancellationToken(); } }
mit
C#
397f3b966967424807c8e523adc1732b67dee8c7
Fix error message formatting in a test helper
oliver-feng/libgit2sharp,AArnott/libgit2sharp,vivekpradhanC/libgit2sharp,red-gate/libgit2sharp,nulltoken/libgit2sharp,red-gate/libgit2sharp,OidaTiftla/libgit2sharp,psawey/libgit2sharp,mono/libgit2sharp,vivekpradhanC/libgit2sharp,github/libgit2sharp,jorgeamado/libgit2sharp,vorou/libgit2sharp,github/libgit2sharp,OidaTift...
LibGit2Sharp.Tests/TestHelpers/SelfCleaningDirectory.cs
LibGit2Sharp.Tests/TestHelpers/SelfCleaningDirectory.cs
using System; using System.IO; namespace LibGit2Sharp.Tests.TestHelpers { public class SelfCleaningDirectory : IDisposable { public SelfCleaningDirectory() : this(BuildTempPath()) { } public SelfCleaningDirectory(string path) { if (Directory.Exists(path)) ...
using System; using System.IO; namespace LibGit2Sharp.Tests.TestHelpers { public class SelfCleaningDirectory : IDisposable { public SelfCleaningDirectory() : this(BuildTempPath()) { } public SelfCleaningDirectory(string path) { if (Directory.Exists(path)) ...
mit
C#
cecf61cdd2c76e688a3466b46b399710a732d119
Implement SaveLocation
RonnChyran/snowflake,RonnChyran/snowflake,SnowflakePowered/snowflake,SnowflakePowered/snowflake,SnowflakePowered/snowflake,RonnChyran/snowflake
src/Snowflake.Framework/Emulator/Saving/SaveLocation.cs
src/Snowflake.Framework/Emulator/Saving/SaveLocation.cs
using System; using System.Collections.Generic; using System.IO; using System.Text; using Snowflake.Records.Game; namespace Snowflake.Emulator.Saving { public class SaveLocation : ISaveLocation { public SaveLocation(IGameRecord gameRecord, string saveFormat, DirectoryInfo providerRoot) { ...
mpl-2.0
C#
118f98adf9e4e6b9d3a2130d88451914eb7dc504
Add add Michelin wmts sample
pauldendulk/Mapsui,charlenni/Mapsui,charlenni/Mapsui
Samples/Mapsui.Samples.Common/Maps/WmtsMichellinSample.cs
Samples/Mapsui.Samples.Common/Maps/WmtsMichellinSample.cs
using System.Linq; using System.Net.Http; using BruTile.Wmts; using Mapsui.Layers; using Mapsui.UI; namespace Mapsui.Samples.Common.Maps { public class WmtsMichelinSample : ISample { public string Name => "5 WMTS Michelin"; public string Category => "Data"; public void Setup(IMapContr...
mit
C#
14dafde8d27b33691dedb2e0d252d4b4d3112558
Add AppSettingsHelper.csx
mschray/CalendarHelper
shared/AppSettingsHelper.csx
shared/AppSettingsHelper.csx
load "LogHelper.csx" using System.Configuration; public static class AppSettingHelper { public static string GetAppSetting(string SettingName, bool LogValue = true ) { string SettingValue = ""; try { string SettingValue = ConfigurationManager.AppSettings[SettingName].ToSt...
mit
C#
f9793e66d557404ff90cbb6cdf0e0b7df92c9020
Fix build
Hitcents/Xamarin.Forms,Hitcents/Xamarin.Forms,Hitcents/Xamarin.Forms
Xamarin.Forms.Platform.Android/Cells/TextViewExtensions.cs
Xamarin.Forms.Platform.Android/Cells/TextViewExtensions.cs
using Android.Content; using Android.OS; using Android.Widget; namespace Xamarin.Forms.Platform.Android { internal static class TextViewExtensions { public static void SetTextAppearanceCompat(this TextView textView, Context context, int resId) { if ((int)Build.VERSION.SdkInt < 23) { #pragma warning disable...
mit
C#
3ecd0231fca02faac5c14147f7e38d62cd55f105
Create BinaryHeap.cs
efruchter/UnityUtilities
BinaryHeap.cs
BinaryHeap.cs
using System.Collections.Generic; using System.Collections; using System; //http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=789 // -Not Eric namespace Utility { public class BinaryHeap<T> : IEnumerable<T> { private IComparer<T> Comparer; private List<T> Items = new List<T>(); public BinaryHeap() ...
mit
C#
604cb08fdbd305fc2afea10deb081874651129f2
Remove duplicates from sorted array II
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
LeetCode/remote/remove_duplicates_from_sorted_array_II.cs
LeetCode/remote/remove_duplicates_from_sorted_array_II.cs
// https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/ // // Follow up for "Remove Duplicates": // What if duplicates are allowed at most twice? // // For example, // Given sorted array nums = [1,1,1,2,2,3], // // Your function should return length = 5, // with the first five elements of ...
mit
C#
23a50a98efdec550c2ce26191812c78daa86fe96
add main activity for hosting the grid view and managing infinite scrolling.
wislon/xam-gridview-infinite-scroll
src/GridViewInfiniteScroll/GridViewInfiniteScroll/MainActivity.cs
src/GridViewInfiniteScroll/GridViewInfiniteScroll/MainActivity.cs
using System; using Android.App; using Android.Content; using Android.Runtime; using Android.Util; using Android.Views; using Android.Widget; using Android.OS; namespace GridViewInfiniteScroll { [Activity(Label = "GridViewInfiniteScroll", MainLauncher = true, Icon = "@drawable/icon")] public class Mai...
mit
C#
0057b368ec18dcdb47c7566bfcea8b3ad990c52d
Add unit tests for custom emojis and smileys
lunet-io/markdig
src/Markdig.Tests/TestCustomEmojis.cs
src/Markdig.Tests/TestCustomEmojis.cs
using System.Collections.Generic; using Markdig.Extensions.Emoji; using NUnit.Framework; namespace Markdig.Tests { [TestFixture] public class TestCustomEmojis { [Test] [TestCase(":smiley:", "<p>♥</p>\n")] [TestCase(":confused:", "<p>:confused:</p>\n")] // default emoji does not w...
bsd-2-clause
C#
8892dfe52f695d3ceb3fc70e6c8727dfc8bd00c6
Fix whitespace.
faustoscardovi/nuproj,ericstj/nuproj,AArnott/nuproj,kovalikp/nuproj,DavidAnson/nuproj,oliver-feng/nuproj,PedroLamas/nuproj,zbrad/nuproj,DavidAnson/nuproj,nuproj/nuproj,NN---/nuproj
src/NuProj.Tests/AssertNu.cs
src/NuProj.Tests/AssertNu.cs
namespace NuProj.Tests { using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Build.Evaluation; using Microsoft.Build.Execution; using Xunit; /// <su...
namespace NuProj.Tests { using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Build.Evaluation; using Microsoft.Build.Execution; using Xunit; /// <summary> /// NuProj specific asser...
mit
C#
76657b4e37e02426dd167a9bf537d31f5aa9835d
Create DeleteStatCommand.cs
NinjaVault/NinjaHive,NinjaVault/NinjaHive
NinjaHive.Contract/Commands/DeleteStatCommand.cs
NinjaHive.Contract/Commands/DeleteStatCommand.cs
using System.ComponentModel.DataAnnotations; using NinjaHive.Contract.DTOs; using NinjaHive.Core.Validations; namespace NinjaHive.Contract.Commands { public class DeleteStatCommand { [Required] [ValidateObject] public StatInfo Stat { get; set; } } }
apache-2.0
C#
c8dfe386b9e739c756210f0b800a3d21e461c27b
Define common Complex dialog interface
michaltakac/IronAHK,yatsek/IronAHK,polyethene/IronAHK,michaltakac/IronAHK,polyethene/IronAHK,yatsek/IronAHK,michaltakac/IronAHK,yatsek/IronAHK,michaltakac/IronAHK,michaltakac/IronAHK,yatsek/IronAHK,polyethene/IronAHK,yatsek/IronAHK,polyethene/IronAHK
Rusty/Core/Gui/Dialogs/IComplexDialoge.cs
Rusty/Core/Gui/Dialogs/IComplexDialoge.cs
using System; using System.Collections.Generic; using System.Text; namespace IronAHK.Rusty { interface IComplexDialoge { string MainText { get; set; } string Subtext { get; set; } string Title { get; set; } #region Form //DialogResult ShowDialog(); void Show()...
bsd-2-clause
C#
8bf40c77e654d8bc6d9efeb53247b6013da56462
Implement top sort in CompositeExporter
adamsitnik/BenchmarkDotNet,adamsitnik/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,alinasmirnova/BenchmarkDotNet,Ky7m/BenchmarkDotNet,adamsitnik/BenchmarkDotNet,PerfDotNet/BenchmarkDotNet,PerfDotNet/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,PerfDotNet/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,alinasmirnova/BenchmarkDot...
src/BenchmarkDotNet.Core/Exporters/CompositeExporter.cs
src/BenchmarkDotNet.Core/Exporters/CompositeExporter.cs
using System; using System.Collections.Generic; using System.Linq; using BenchmarkDotNet.Loggers; using BenchmarkDotNet.Reports; namespace BenchmarkDotNet.Exporters { public class CompositeExporter : IExporter { internal readonly IEnumerable<IExporter> exporters; public CompositeExporter(para...
using System.Collections.Generic; using System.Linq; using BenchmarkDotNet.Loggers; using BenchmarkDotNet.Reports; namespace BenchmarkDotNet.Exporters { public class CompositeExporter : IExporter { internal readonly IEnumerable<IExporter> exporters; public CompositeExporter(params IExporter[]...
mit
C#
0f83b66cdabb1aad42d7f9d1c205b38089d7b2c2
Add separate test for stateful multiplayer client
ppy/osu,NeoAdonis/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu-new,ppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,smoogipooo/osu,UselessToucan/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu
osu.Game.Tests/OnlinePlay/StatefulMultiplayerClientTest.cs
osu.Game.Tests/OnlinePlay/StatefulMultiplayerClientTest.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.Testing; using osu.Game.Tests.Visual.Multiplayer; using osu.Game.Users; namespace osu.Game.Tests.OnlinePlay { [HeadlessTes...
mit
C#
08c68e5888a9862c79c337380669b6700738139d
Add test
ppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework
osu.Framework.Tests/Audio/SampleBassInitTest.cs
osu.Framework.Tests/Audio/SampleBassInitTest.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.Threading; using ManagedBass; using NUnit.Framework; using osu.Framework.Audio.Sample; using osu.Framework.Development; using osu.Framework.IO....
mit
C#
5c52d725747e8f1aed27b95d998f78c6eb06b1b9
Create Input.cs
zelbo/Number-Guessing
Input.cs
Input.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NumberGuessing { // while the ConsoleKey enum is great, // i'm doing this here to avoid having to check both regular numbers and keypad all the time. // and then of course i still check both. i'm such a spaghett...
mit
C#
5ce5de0b2420a325dc0ab7ec4c378cb516652bdc
Add mediator filter consume test for #3271
MassTransit/MassTransit,phatboyg/MassTransit,phatboyg/MassTransit,MassTransit/MassTransit
tests/MassTransit.Containers.Tests/MediatorFilter_Specs.cs
tests/MassTransit.Containers.Tests/MediatorFilter_Specs.cs
namespace MassTransit.Containers.Tests { namespace MediatorFilter { using System.Threading.Tasks; using Mediator; using Microsoft.Extensions.DependencyInjection; using NUnit.Framework; public class SubmitOrder { } public class OrderStatus ...
apache-2.0
C#
729c02869d64ceba06fb996cf2e4f5d740724887
Add sealed record example.
ejball/XmlDocMarkdown
tools/ExampleAssembly/ExampleSealedRecord.cs
tools/ExampleAssembly/ExampleSealedRecord.cs
using System; namespace ExampleAssembly { /// <summary> /// A sealed C# 9 record. /// </summary> public sealed record ExampleSealedRecord { /// <summary> /// Constructs an instance. /// </summary> /// <param name="value">The value.</param> public ExampleSealedRecord(string value) => Value = value ?? thr...
mit
C#
77254e937dac1b348149fb1be18dac83d513a2c1
Add new playmaker action for high score award display
missionpinball/unity-bcp-server
Assets/BCP/Scripts/PlayMaker/GetBCPHighScoreAwardDisplay.cs
Assets/BCP/Scripts/PlayMaker/GetBCPHighScoreAwardDisplay.cs
using UnityEngine; using System; using HutongGames.PlayMaker; using TooltipAttribute = HutongGames.PlayMaker.TooltipAttribute; /// <summary> /// Custom PlayMaker action for MPF that sends an Event when a high_score_award_display BCP Trigger /// command is received. /// </summary> [ActionCategory("BCP")] [Tooltip("Se...
mit
C#
8dbbd2bb1248a83dc86da09502353d9e33024bf9
Fix RelayState parameter casing. Closes #186
jerriep/auth0.net,auth0/auth0.net,jerriep/auth0.net,auth0/auth0.net,jerriep/auth0.net
src/Auth0.AuthenticationApi/Builders/SamlUrlBuilder.cs
src/Auth0.AuthenticationApi/Builders/SamlUrlBuilder.cs
using System.Linq; namespace Auth0.AuthenticationApi.Builders { /// <summary> /// Used to build a SAML authorization URL. /// </summary> public class SamlUrlBuilder : UrlBuilderBase<SamlUrlBuilder> { /// <summary> /// Initializes a new instance of the <see cref="SamlUrlBuilder"/> cl...
using System.Linq; namespace Auth0.AuthenticationApi.Builders { /// <summary> /// Used to build a SAML authorization URL. /// </summary> public class SamlUrlBuilder : UrlBuilderBase<SamlUrlBuilder> { /// <summary> /// Initializes a new instance of the <see cref="SamlUrlBuilder"/> cl...
mit
C#
f0d498f8f96c54c200c68236ecf826b7e26afa90
Update RPCOperations
lontivero/NBitcoin,thepunctuatedhorizon/BrickCoinAlpha.0.0.1,HermanSchoenfeld/NBitcoin,MetacoSA/NBitcoin,dangershony/NStratis,MetacoSA/NBitcoin,bitcoinbrisbane/NBitcoin,stratisproject/NStratis,NicolasDorier/NBitcoin
NBitcoin/RPC/RPCOperations.cs
NBitcoin/RPC/RPCOperations.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NBitcoin.RPC { //from rpcserver.h public enum RPCOperations { getconnectioncount, getpeerinfo, ping, addnode, getaddednodeinfo, getnettotals, dumpprivkey, ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NBitcoin.RPC { //from rpcserver.h public enum RPCOperations { getconnectioncount, getpeerinfo, ping, addnode, getaddednodeinfo, getnettotals, dumpprivkey, ...
mit
C#
4c372e9af11df788ec908e5d2025117d6f54f9ff
Refactor bitmap section to allow a toolkit to be specified.
l8s/Eto,PowerOfCode/Eto,bbqchickenrobot/Eto-1,PowerOfCode/Eto,bbqchickenrobot/Eto-1,l8s/Eto,PowerOfCode/Eto,bbqchickenrobot/Eto-1,l8s/Eto
Source/Eto.Test/Eto.Test/Sections/Drawing/BitmapSection.cs
Source/Eto.Test/Eto.Test/Sections/Drawing/BitmapSection.cs
using Eto.Forms; using Eto.Drawing; using ImageView = Eto.Test.Sections.Drawing.DrawableImageView; namespace Eto.Test.Sections.Drawing { /// <summary> /// We use this class instead of ImageView to /// hook into the rendering and supply a different /// drawing toolkit. /// </summary> public class DrawableImageVie...
using Eto.Forms; using Eto.Drawing; namespace Eto.Test.Sections.Drawing { public class BitmapSection : Scrollable { public BitmapSection() { var layout = new DynamicLayout(); layout.AddRow(new Label { Text = "Load from Stream" }, LoadFromStream()); layout.AddRow( new Label { Text = "Custom 32-bit"...
bsd-3-clause
C#
95cb5b961b84c2fc6cede96f51b669be36415cba
test assumption "is"-operator is polymorphic
mm999/OrigoDB
src/LiveDomain.Core.Test/Assumptions.cs
src/LiveDomain.Core.Test/Assumptions.cs
using System; using System.Text; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace LiveDomain.Core.Test { [TestClass] public class Assumptions { private class MyImmutableCommand : Command, IImmutable { internal ov...
mit
C#
b93b6d3288339f03e05499f8299c3caba7a8de0d
fix #1
AlonAmsalem/NLoad
src/NLoad.Tests/LoadTests.cs
src/NLoad.Tests/LoadTests.cs
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace NLoad.Tests { [TestClass] public class LoadTests { [TestMethod] public void RunLoadTest() { const int numberOfThreads = 10; var loadTest = NLoad.Test<TestMock>() ...
apache-2.0
C#
ea20805ca573b621949aa0f3c22d9e89f56a92dd
Add DecoderExceptionFallbackBuffer.cs
YallaDotNet/syslog
SyslogNet.Client/Text/DecoderExceptionFallbackBuffer.cs
SyslogNet.Client/Text/DecoderExceptionFallbackBuffer.cs
// // DecoderExceptionFallbackBuffer.cs // // Author: // Atsushi Enomoto <atsushi@ximian.com> // // // Copyright (C) 2005 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), t...
mit
C#
65baf73d97b3e4b4bfcc22ffb5a1971054c306f4
Add test scene
peppy/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu,ppy/osu
osu.Game.Tests/Visual/Editing/TestSceneDifficultyDelete.cs
osu.Game.Tests/Visual/Editing/TestSceneDifficultyDelete.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.Linq; using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Extensions; using osu.Framework.Graphics.Sprites; using osu.Fr...
mit
C#
a4ed64312efab1c26fb24cc179ee3991a1533d46
Use GetConsumingEnumerable when taking from the blocking collection and wait for the worker to complete when disposed. Fixes #265
AGiorgetti/NEventStore,D3-LucaPiombino/NEventStore,gael-ltd/NEventStore,marcoaoteixeira/NEventStore,deltatre-webplu/NEventStore,nerdamigo/NEventStore,chris-evans/NEventStore,adamfur/NEventStore,NEventStore/NEventStore,jamiegaines/NEventStore,paritoshmmmec/NEventStore
src/NEventStore/Dispatcher/AsynchronousDispatchScheduler.cs
src/NEventStore/Dispatcher/AsynchronousDispatchScheduler.cs
namespace NEventStore.Dispatcher { using System; using System.Collections.Concurrent; using System.Threading.Tasks; using NEventStore.Logging; using NEventStore.Persistence; public class AsynchronousDispatchScheduler : SynchronousDispatchScheduler { private const int BoundedCapacity...
namespace NEventStore.Dispatcher { using System.Collections.Concurrent; using System.Threading.Tasks; using NEventStore.Logging; using NEventStore.Persistence; public class AsynchronousDispatchScheduler : SynchronousDispatchScheduler { private const int BoundedCapacity = 1024; p...
mit
C#
6363e2b011ee0d77eddeee3aaac7da09221d880d
Document types structure, closes #8
svasorcery/rzd-ru-api
Kaolin.Services.PassRzdRu.Parser/Catalogues/DocumentTypes.cs
Kaolin.Services.PassRzdRu.Parser/Catalogues/DocumentTypes.cs
namespace Kaolin.Services.PassRzdRu.Parser.Catalogues { /// <summary> /// Document types /// <para>GET https://pass.rzd.ru/catalogue/app_passport_type/ru</para> /// <para>GET https://pass.rzd.ru/catalogue/app_passport_type/en</para> /// </summary> public class DocumentTypes { public...
mit
C#
39b5460699e153568f845e7cda620fd4e3565f4f
Implement tests for Commands interface, tests include lazy loading and "not supported command" -test.
tparviainen/oscilloscope
SCPI.Tests/Commands_Tests.cs
SCPI.Tests/Commands_Tests.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; namespace SCPI.Tests { public class Commands_Tests { [Fact] public void HasSupportedCommands() { // Arrange var commands = new Commands(); // Act ...
mit
C#
dfd119284621d9a45232b29adb95c2fc8fa56a5c
Add Post Status resource.
maxcutler/wp-api-csharp
PortableWordPressApi/Resources/PostStatus.cs
PortableWordPressApi/Resources/PostStatus.cs
namespace PortableWordPressApi.Resources { public class PostStatus { public string Name { get; set; } public string Slug { get; set; } public bool Public { get; set; } public bool Protected { get; set; } public bool Private { get; set; } public bool Queryable { get; set; } public bool ShowInList ...
mit
C#
2067c3bca7fed39e4f760d713537790ebdd4988d
add ByteStream
acple/ParsecSharp
ParsecSharp/Data/ByteStream.cs
ParsecSharp/Data/ByteStream.cs
using System; using System.IO; using ParsecSharp.Internal; namespace ParsecSharp { public sealed class ByteStream : IParsecStateStream<byte> { private readonly IDisposable disposable; private readonly LinearPosition _position; private readonly Lazy<IParsecStateStream<byte>> _next; ...
mit
C#
d8e2b7fae99497594c283a806b5751026431193d
Add SaveHandler class (blank for now)
freemanovec/Hexy
Scripts/Saving/SaveHandler.cs
Scripts/Saving/SaveHandler.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; public static class SaveHandler { }
mit
C#
850f4793c05c46ce987b6bff6072028b1bb94d97
Add aspnet-environment
304NotModified/NLog.Web,NLog/NLog.Web
NLog.Web.AspNetCore/LayoutRenderers/AspNetEnvironmentLayoutRenderer.cs
NLog.Web.AspNetCore/LayoutRenderers/AspNetEnvironmentLayoutRenderer.cs
#if NETSTANDARD_1plus using System; using System.Text; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using NLog.LayoutRenderers; using NLog.Web.Internal; namespace NLog.Web.LayoutRenderers { /// <summary> /// Rendering development environment. <see cref="IHostingEnvironm...
bsd-3-clause
C#
76dabdfcf622496c7f05f9d19e831f0a19581453
Add Specialities mappings
denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs
src/Diploms.Services/Specialities/SpecialitiesMappings.cs
src/Diploms.Services/Specialities/SpecialitiesMappings.cs
using AutoMapper; using Diploms.Core; using Diploms.Dto.Specialities; namespace Diploms.Services.Specialities { public class SpecialitiesMappings : Profile { public SpecialitiesMappings() { CreateMap<SpecialityEditDto, Speciality>(); } } }
mit
C#
056de9c6bca40551c2f7d96a2f979023db558a12
Fix build breaks
jtlibing/azure-powershell,hungmai-msft/azure-powershell,zhencui/azure-powershell,zhencui/azure-powershell,AzureRT/azure-powershell,devigned/azure-powershell,rohmano/azure-powershell,ClogenyTechnologies/azure-powershell,zhencui/azure-powershell,pankajsn/azure-powershell,krkhan/azure-powershell,naveedaz/azure-powershell,...
src/ResourceManager/HDInsight/Commands.HDInsight/ManagementCommands/AddAzureHDInsightComponentVersionCommand.cs
src/ResourceManager/HDInsight/Commands.HDInsight/ManagementCommands/AddAzureHDInsightComponentVersionCommand.cs
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apa...
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apa...
apache-2.0
C#
b6617125bacb49f66172fed7100886c90640dce9
Add back in tablet flow from home page.
jamesmontemagno/MyShoppe,fabianwilliams/MyShoppe,carlosviana/MyShoppe,usmanm77/MyShoppe
MyShop/Views/HomePage.xaml.cs
MyShop/Views/HomePage.xaml.cs
using MyShop.Views.Tablet; using System; using System.Collections.Generic; using Xamarin.Forms; namespace MyShop { public partial class HomePage : ContentPage { public HomePage () { InitializeComponent (); Xamarin.Insights.Track ("Home"); BindingContext = new HomeViewModel (this); ButtonFindStore.C...
using MyShop.Views.Tablet; using System; using System.Collections.Generic; using Xamarin.Forms; namespace MyShop { public partial class HomePage : ContentPage { public HomePage () { InitializeComponent (); Xamarin.Insights.Track ("Home"); BindingContext = new HomeViewModel (this); ButtonFindStore.C...
mit
C#
d0b9ecc9e6ae0d099823838198c7340f3aee0d34
Add TinySatoException.cs
karronoli/tiny-sato
TinySato/TinySatoException.cs
TinySato/TinySatoException.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TinySato { public class TinySatoException : Exception { public TinySatoException() { } public TinySatoException(string message) : base(message...
apache-2.0
C#
1b688fbed5273ab24fbb4bd271182a9e826e70ad
Add FormatForMathematicaExtensions extension class
virtuallynaked/virtually-naked,virtuallynaked/virtually-naked
Viewer/src/math/FormatForMathematicaExtensions.cs
Viewer/src/math/FormatForMathematicaExtensions.cs
using SharpDX; public static class FormatForMathematicaExtensions { public static string FormatForMathematica(this Vector3 v) { return "{" + v.X + ", " + v.Y + ", " + v.Z + "}"; } public static string FormatForMathematica(this Matrix3x3 m) { return "{" + FormatForMathematica(m.Row1) + ", " + FormatForMathemat...
mit
C#
b620dba7843a1fda46e75deb8078113f6f71b111
Create SaveInExcel2007xlsbFormat.cs
maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cell...
Examples/CSharp/Files/Handling/SaveInExcel2007xlsbFormat.cs
Examples/CSharp/Files/Handling/SaveInExcel2007xlsbFormat.cs
using System.IO; using Aspose.Cells; namespace Aspose.Cells.Examples.Files.Handling { public class SaveInExcel2007xlsbFormat { public static void Main(string[] args) { //Save in Excel2007 xlsb format workbook.Save(dataDir + "book1.out.xlsb", SaveFormat.Xlsb); ...
mit
C#
e70b73e676fd813581d98fc88b68801ad45fbcb7
Add benchmark for Util.Helpers.Convert.ToInt
yuleyule66/Util,yuleyule66/Util
performance/Util.Performance/Benchmarks/ConvertBenchmarks.cs
performance/Util.Performance/Benchmarks/ConvertBenchmarks.cs
using System; using System.Collections.Generic; using System.Text; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Attributes.Columns; using BenchmarkDotNet.Attributes.Jobs; namespace Util.Performance.Benchmarks { [MemoryDiagnoser] [AllStatisticsColumn] public class ConvertBenchmarks { ...
mit
C#
3783024d0a03edfa1213fb766e7fa444089b268c
Create Default.aspx.designer.cs
lerwine/JSCookbook,lerwine/JSCookbook,lerwine/JSCookbook
JSCookbook/Default.aspx.designer.cs
JSCookbook/Default.aspx.designer.cs
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //-----------------------------------------...
apache-2.0
C#
7ffab38728014fffdeedbc9906258f693c26167a
Add test coverage of TransactionalCommitComponent
ppy/osu,UselessToucan/osu,NeoAdonis/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu-new,peppy/osu,smoogipooo/osu,ppy/osu,peppy/osu,UselessToucan/osu,ppy/osu,peppy/osu
osu.Game.Tests/Editing/TransactionalCommitComponentTest.cs
osu.Game.Tests/Editing/TransactionalCommitComponentTest.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.Game.Screens.Edit; namespace osu.Game.Tests.Editing { [TestFixture] public class TransactionalCommitComponentTest ...
mit
C#
f82a083e90f17bfcb1a09b1d4a584a792d044318
Create Base62CorrelationService.cs
tiksn/TIKSN-Framework
TIKSN.Core/Integration/Correlation/Base62CorrelationService.cs
TIKSN.Core/Integration/Correlation/Base62CorrelationService.cs
using Microsoft.Extensions.Options; using System; namespace TIKSN.Integration.Correlation { public class Base62CorrelationService { private readonly Random _random; private readonly IOptions<Base62CorrelationServiceOptions> _base62CorrelationServiceOptions; public Base62CorrelationSer...
mit
C#
78ff32f44fa27b001c1cb32b707f723fef93d7d6
Create PingModule
mariocatch/MODiX,mariocatch/MODiX,mariocatch/MODiX,mariocatch/MODiX
Modix/Modules/PingModule.cs
Modix/Modules/PingModule.cs
using System.Threading.Tasks; using Discord.Commands; namespace Modix.Modules { public class PingModule : ModuleBase { [Command("ping")] public Task Ping() => ReplyAsync("Pong!"); } }
mit
C#
ecf919d5a75e6e790f2ff4b975159957e039617e
Fix using portable directory separator character
feanz/Thinktecture.IdentityServer3.Samples,geffzhang/Thinktecture.IdentityServer.v3.Samples,IdentityServer/IdentityServer3.Samples,feanz/Thinktecture.IdentityServer3.Samples,codehedgehog/IdentityServer3.Samples,codehedgehog/IdentityServer3.Samples,IdentityServer/IdentityServer3.Samples,geffzhang/Thinktecture.IdentitySe...
source/AspNet5/src/IdentityServer/Startup.cs
source/AspNet5/src/IdentityServer/Startup.cs
using Microsoft.AspNet.Builder; using Microsoft.AspNet.Hosting; using Microsoft.Extensions.DependencyInjection; using IdentityServer3.Core.Configuration; using IdentityServer.Configuration; using System.Security.Cryptography.X509Certificates; using Microsoft.Extensions.PlatformAbstractions; using Microsoft.Extensions....
using Microsoft.AspNet.Builder; using Microsoft.AspNet.Hosting; using Microsoft.Extensions.DependencyInjection; using IdentityServer3.Core.Configuration; using IdentityServer.Configuration; using System.Security.Cryptography.X509Certificates; using Microsoft.Extensions.PlatformAbstractions; using Microsoft.Extensions....
apache-2.0
C#
2b7cc563e53d4b3d288495df515401d091d19db3
Add diagnostics
AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,karthiknadig...
src/Package/Impl/Feedback/SendMailCommand.cs
src/Package/Impl/Feedback/SendMailCommand.cs
using System; using Microsoft.Languages.Editor.Shell; using Microsoft.VisualStudio.R.Package.Commands; using Microsoft.VisualStudio.R.Package.Interop; namespace Microsoft.VisualStudio.R.Package.Feedback { internal class SendMailCommand : PackageCommand { public SendMailCommand(Guid group, int id) : ...
using System; using Microsoft.VisualStudio.R.Package.Commands; using Microsoft.VisualStudio.R.Package.Interop; namespace Microsoft.VisualStudio.R.Package.Feedback { internal class SendMailCommand : PackageCommand { public SendMailCommand(Guid group, int id) : base(group, id) { } prote...
mit
C#
f6f421e5891d8327fa4539fd3f9fefba125d0c4c
Create as.cs
mkuciapski/test
as.cs
as.cs
dfdf
mit
C#
9eca42200a4bcadf327818b90c6a5e674591e058
Add interface for a migration
rapidcore/rapidcore,rapidcore/rapidcore
src/Migration/IMigration.cs
src/Migration/IMigration.cs
using System.Threading.Tasks; namespace RapidCore.Migration { /// <summary> /// Defines a migration /// </summary> public interface IMigration { /// <summary> /// Code that is run when upgrading the environment /// </summary> Task UpgradeAsync(IMigrationContext cont...
mit
C#
8966b87e0d7eeba2e77116502cc99d66d934aae3
Add missing sdb file
Unity-Technologies/debugger-libs,joj/debugger-libs,mono/debugger-libs,joj/debugger-libs,mono/debugger-libs,Unity-Technologies/debugger-libs
Mono.Debugger.Soft/Mono.Debugger.Soft/TypeLoadEventRequest.cs
Mono.Debugger.Soft/Mono.Debugger.Soft/TypeLoadEventRequest.cs
using System; using System.Collections.Generic; using System.Linq; namespace Mono.Debugger.Soft { public sealed class TypeLoadEventRequest : EventRequest { string[] sourceFiles; string[] typeNames; internal TypeLoadEventRequest (VirtualMachine vm) : base (vm, EventType.TypeLoad) { } public string[] Source...
mit
C#
770e949cbddbd0a1f81ba3c8cf0915e39d159688
Add missing file
softwarejc/documentdb-backups-csharp
DocumentDB.Framework.Tests/Helpers/DocumentDBTestsBase.cs
DocumentDB.Framework.Tests/Helpers/DocumentDBTestsBase.cs
using System; using System.Diagnostics; using DocumentDB.Framework.Database; using Microsoft.Azure.Documents.Client; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace DocumentDB.Framework.Tests.Helpers { [TestClass] public class DocumentDBTestsBase { [AssemblyInitialize] publ...
mit
C#
40d772295bd5ebed2c7b77319107478c0d19b789
add lost files
aurora-lzzp/Aurora-Weather
com.aurora.auweather/com.aurora.auweather/Models/Speed.cs
com.aurora.auweather/com.aurora.auweather/Models/Speed.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Com.Aurora.AuWeather.Models { public class Speed { private double kmph; public double KMPH { get { retu...
mit
C#
f4cacf74abfbf402f5dbacdbccd758a23531c4d9
Add ConsoleWindow class.
Si13n7/SilDev.CSharpLib
src/SilDev/ConsoleWindow.cs
src/SilDev/ConsoleWindow.cs
#region auto-generated FILE INFORMATION // ============================================== // This file is distributed under the MIT License // ============================================== // // Filename: ConsoleWindow.cs // Version: 2020-01-27 23:21 // // Copyright (c) 2020, Si13n7 Developments(tm) // All rights...
mit
C#
d9681bee778191643d2d2e4133f414870fb4217d
add vacancy API's ApplicationMethod enum
SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice
src/SFA.DAS.EAS.Portal.Client/Services/DasRecruit/Models/ApplicationMethod.cs
src/SFA.DAS.EAS.Portal.Client/Services/DasRecruit/Models/ApplicationMethod.cs
namespace SFA.DAS.EAS.Portal.Client.Services.DasRecruit.Models { public enum ApplicationMethod { ThroughFindAnApprenticeship, ThroughExternalApplicationSite } }
mit
C#
09628d92fa3f2dced789f48026203751dfc73f93
Add IntervalReachedEventArgs class and definition.
jcheng31/IntervalTimer
IntervalReachedEventArgs.cs
IntervalReachedEventArgs.cs
using System; using Microsoft.SPOT; namespace IntervalTimer { public enum IntervalType { Short, Long }; class IntervalReachedEventArgs : EventArgs { public IntervalType Type { get; set; } public String Message { get; set; } public Interv...
mit
C#
edf9745bda83c92ec9fb213e12c6bff206722267
Add EighthBlock
tjcsl/ionapp-w10,tjcsl/ionapp-w10
Ion10/Models/EighthBlock.cs
Ion10/Models/EighthBlock.cs
namespace Ion10.Models { public sealed class EighthBlock { } }
mit
C#
50ff66c79f3f8dc4c2576fc3190ed4ac8a950e77
Update the l\paths in the server side of the resource
SusanaL/Glimpse,sorenhl/Glimpse,sorenhl/Glimpse,sorenhl/Glimpse,Glimpse/Glimpse,flcdrg/Glimpse,codevlabs/Glimpse,Glimpse/Glimpse,rho24/Glimpse,rho24/Glimpse,codevlabs/Glimpse,SusanaL/Glimpse,elkingtonmcb/Glimpse,gabrielweyer/Glimpse,flcdrg/Glimpse,elkingtonmcb/Glimpse,paynecrl97/Glimpse,SusanaL/Glimpse,dudzon/Glimpse,p...
source/Glimpse.Core2/Framework/GlimpseMetadata.cs
source/Glimpse.Core2/Framework/GlimpseMetadata.cs
using System; using System.Collections.Generic; namespace Glimpse.Core2.Framework { public class GlimpseMetadata { public GlimpseMetadata() { plugins = new Dictionary<string, PluginMetadata>(); //TODO: this is really bad... Nik needs to work on how we want to do this. V...
using System; using System.Collections.Generic; namespace Glimpse.Core2.Framework { public class GlimpseMetadata { public GlimpseMetadata() { plugins = new Dictionary<string, PluginMetadata>(); } public string version{ get; set; } public IDictionary<string,P...
apache-2.0
C#
1236ece06cf9c1020722c0fb3287ba807a211565
Use this instead of LocaleType
lnu/nhibernate-core,ManufacturingIntelligence/nhibernate-core,ngbrown/nhibernate-core,RogerKratz/nhibernate-core,nkreipke/nhibernate-core,fredericDelaporte/nhibernate-core,hazzik/nhibernate-core,livioc/nhibernate-core,RogerKratz/nhibernate-core,nhibernate/nhibernate-core,nkreipke/nhibernate-core,ManufacturingIntelligen...
src/NHibernate/Type/CultureInfoType.cs
src/NHibernate/Type/CultureInfoType.cs
using System; using System.Data; using System.Globalization; namespace NHibernate.Type { /// <summary> /// CultureInfoType. /// </summary> public class CultureInfoType : ImmutableType, ILiteralType { public override object Get(IDataReader rs, string name) { string str = (string) NHibernate.String.Get(rs, na...
lgpl-2.1
C#
df35f61906c94403c0475448c93690a275fa5a22
add failing tests for parsing points in xaml
grokys/Perspex,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,Perspex/Perspex,jkoritzinsky/Avalonia,Perspex/Perspex,SuperJMN/Avalonia,jkoritzinsky/Avalonia,grokys/Perspex,AvaloniaUI/Avalonia,Avalon...
tests/Avalonia.Markup.Xaml.UnitTests/Converters/PointsListTypeConverterTests.cs
tests/Avalonia.Markup.Xaml.UnitTests/Converters/PointsListTypeConverterTests.cs
using System.Collections.Generic; using Avalonia.Controls.Shapes; using Avalonia.Markup.Xaml.Converters; using Xunit; namespace Avalonia.Markup.Xaml.UnitTests.Converters { public class PointsListTypeConverterTests { [Theory] [InlineData("1,2 3,4")] [InlineData("1 2 3 4")] [Inlin...
mit
C#
9e533505a5eba8e0cc2ba11a4f029dece645b49c
Create StringExtensions.cs
itsuart/cs-goodies
StringExtensions.cs
StringExtensions.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NAMESPACE { internal static class StringExtensions { /// <summary> /// If source is null, returns string.empty. If not - returns it as is. /// <...
unlicense
C#
9138860ac8b4a57e2667cf4bc2735703fe08f5e0
Create Bounce.cs
Irraquated/CrossyRoadScripts
Bounce.cs
Bounce.cs
using UnityEngine; using System.Collections; public class Bounce : MonoBehaviour { float lerpTime; float currentLerpTime; float percentage = 1; Vector3 startPos; Vector3 endPos; bool firstInput; public bool justJump; void Update () { if(Input.GetButtonDown("up") || Input.GetButtonDown("down") || Input.Ge...
mit
C#
026bdd7b1873507f669fd7648a826faab441e729
Add IEmitter interface
tristanles/mapreduce-dojo-csharp
MapReduceDojo/Emitter.cs
MapReduceDojo/Emitter.cs
using System; namespace MapReduceDojo { public interface IEmitter<in T> { void Emit(String key, T value); } }
mit
C#
47b259b85b6f162e5a407c523b9c2d614bc16b7a
Add Xamarin.iOS.DeviceHardware class
dannycabrera/Get-iOS-Model
Xamarin.iOS.DeviceHarware.cs
Xamarin.iOS.DeviceHarware.cs
using System; using System.Runtime.InteropServices; using MonoTouch.Foundation; using Constants = MonoTouch.Constants; namespace Xamarin.iOS { public static class DeviceHardware { public const string HardwareProperty = "hw.machine"; [DllImport(Constants.SystemLibrary)] internal static...
mit
C#
276c982e2376f222adf692bb6b22c284700321d7
Create Sample.cs
schungx/WebApi-OData
Sample.cs
Sample.cs
using System.Collections.Generic; using System.Diagnostics.Contracts; using System.Net.Http; using System.Threading.Tasks; using System.Web.Http; using System.Web.Http.OData; using System.Web.Http.OData.Batch; using System.Web.Http.OData.Builder; using System.Web.Http.OData.Routing; using System.Web.Http.OData.Routing....
mit
C#
6480001dea58f62248abb14eb3b739bb4fec26c3
add HttpFactoryException, representing all executable errors occuring during http requests
hanssens/extensions
src/Hanssens.Net/Http/HttpFactoryException.cs
src/Hanssens.Net/Http/HttpFactoryException.cs
using System; namespace Hanssens.Net.Http { /// <summary> /// Represents errors that occur when executing http requests through the HttpFactory utility class. /// </summary> public class HttpFactoryException : Exception { public HttpFactoryException() : base() { } public HttpFactory...
mit
C#
166f2581cca3ef5d6be82c4a8750955a98936c52
Add generic restrict
caronyan/CSharpRecipe
CSharpRecipe/Recipe.ClassAndGeneric/RestrictGenericClass.cs
CSharpRecipe/Recipe.ClassAndGeneric/RestrictGenericClass.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Recipe.ClassAndGeneric { public class DisposableList<T> : IList<T> where T : class, IDisposable { private List<T> _items = new List<T>(); pri...
mit
C#
81015698a5a11538ec58dae74a510264afe146b7
add a missing file
daviwil/poshtools,adamdriscoll/poshtools,erwindevreugd/poshtools,mgreenegit/poshtools,KevinHorvatin/poshtools,zbrad/poshtools,YOTOV-LIMITED/poshtools,SpotLabsNET/poshtools,Microsoft/poshtools
PowerShellTools/Intellisense/DteWindowsEventsHandlerProxy.cs
PowerShellTools/Intellisense/DteWindowsEventsHandlerProxy.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using EnvDTE; using EnvDTE80; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; namespace PowerShellTools.Intellisense { public sealed class DteWindowsEvent...
apache-2.0
C#
adda230bff5608b59e4807b195f24d241e7cdb6e
Create CreateOutlineForPanelEditor.cs
UnityCommunity/UnityLibrary
Assets/Scripts/Editor/ContextMenu/CreateOutlineForPanelEditor.cs
Assets/Scripts/Editor/ContextMenu/CreateOutlineForPanelEditor.cs
// Custom Contect menu for UI Image component (in WorldSpace UI canvas) // used for creating outline for panel (image) using LineRenderer using UnityEngine; using UnityEditor; using UnityEngine.UI; namespace UnityLibrary { public class CreateOutlineForPanelEditor : MonoBehaviour { [MenuItem("CONTEXT/I...
mit
C#
4607624e11f72110d71a7654f8823bc67504a881
Add support for UIViews in section headers and footers.
danmiser/MonoTouch.Dialog,hisystems/MonoTouch.Dialog,Milan1992/MonoTouch.Dialog,migueldeicaza/MonoTouch.Dialog,jstedfast/MonoTouch.Dialog,ClusterReplyBUS/MonoTouch.Dialog,benoitjadinon/MonoTouch.Dialog,newky2k/MonoTouch.Dialog
Sample/DemoHeadersFooters.cs
Sample/DemoHeadersFooters.cs
using System; using System.Drawing; using System.Linq; using MonoTouch.UIKit; using MonoTouch.Dialog; namespace Sample { public partial class AppDelegate { public void DemoHeadersFooters () { var section = new Section () { HeaderView = new UIImageView (UIImage.FromFile ("caltemplate.png")), FooterVi...
mit
C#
71712440449ea590234a097307e00c28a0af183d
Add Orchard.Tags.TagsCloud "no data" message
Codinlab/Orchard,jimasp/Orchard,aaronamm/Orchard,LaserSrl/Orchard,AdvantageCS/Orchard,Codinlab/Orchard,gcsuk/Orchard,Dolphinsimon/Orchard,tobydodds/folklife,fassetar/Orchard,fassetar/Orchard,yersans/Orchard,grapto/Orchard.CloudBust,li0803/Orchard,tobydodds/folklife,Fogolan/OrchardForWork,ehe888/Orchard,ehe888/Orchard,y...
src/Orchard.Web/Modules/Orchard.Tags/Views/Parts/TagCloud.cshtml
src/Orchard.Web/Modules/Orchard.Tags/Views/Parts/TagCloud.cshtml
@using Orchard.Tags.Models <ul class="tag-cloud"> @if (((IEnumerable<object>)Model.TagCounts).Any()) { foreach (TagCount tagCount in Model.TagCounts) { <li class="tag-cloud-tag tag-cloud-tag-@tagCount.Bucket"> @Html.ActionLink(tagCount.TagName, "Search", "Home", new { ...
@using Orchard.Tags.Models <ul class="tag-cloud"> @foreach (TagCount tagCount in Model.TagCounts) { <li class="tag-cloud-tag tag-cloud-tag-@tagCount.Bucket"> @Html.ActionLink(tagCount.TagName, "Search", "Home", new { area = "Orchard.Tags", tagName = tagCount.TagName ...
bsd-3-clause
C#
93e29063d8d82fdbf38247d113253ee84bd5375e
Create Main.cs
neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu...
POH7/Megane/Main.cs
POH7/Megane/Main.cs
// Try POH // author: Leonardone @ NEETSDKASU using System; using System.Linq; public class Solver { public static void Main() { long r = 1, n = gl(); int c = 0; while (n > 1) { var x = n--; while (x % 5 == 0) { x /= 5...
mit
C#
85a3fea4ac3155c334fc28627c33290b94bd1b3d
add ArticleService
vinhch/BizwebSharp
src/BizwebSharp/Services/Article/ArticleService.cs
src/BizwebSharp/Services/Article/ArticleService.cs
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using BizwebSharp.Entities; using BizwebSharp.Extensions; using BizwebSharp.Infrastructure; using BizwebSharp.Options; namespace BizwebSharp.Services { public class ArticleService : BaseService { public ArticleService(B...
mit
C#
dc885fdaa751777ec9fc3b03f224c78c63979020
Add decimal extensions
imasm/CSharpExtensions
CSharpEx/DecimalEx.cs
CSharpEx/DecimalEx.cs
using System; namespace CSharpEx { /// <summary> /// Decimal extensions /// </summary> public static class DecimalEx { /// <summary> /// Returns a number rounded to the desired multiple /// </summary> public static decimal MRound(this decimal value, decimal divisor)...
apache-2.0
C#
d05cf0b37068ed7f5fad15997791d0abf6f1b495
Add DetourRedoTest
AngelDE98/MonoMod,0x0ade/MonoMod
MonoMod.UnitTest/RuntimeDetour/DetourRedoTest.cs
MonoMod.UnitTest/RuntimeDetour/DetourRedoTest.cs
#pragma warning disable CS1720 // Expression will always cause a System.NullReferenceException because the type's default value is null #pragma warning disable xUnit1013 // Public method should be marked as test using Xunit; using MonoMod.RuntimeDetour; using System; using System.Reflection; using System.Runtime.Comp...
mit
C#
b5dc6524752c26cc0ea66f43b7aa7544d53f4cbc
add CutTheSticks.cs
regeldso/hrank
Algorithms/Implementation/CutTheSticks.cs
Algorithms/Implementation/CutTheSticks.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { public static void getAnswer(int n, int[] arr) { int[] tmp = arr; int count = tmp.Count(); while (count > 0) { Console.WriteLine(count); int min = tmp.Min(...
mit
C#
d275ecdd9cd0d3005afd67f8762e634f8c62ffef
Add streaming model
tobyclh/UnityCNTK,tobyclh/UnityCNTK
Assets/UnityCNTK/Models/StreamingModel.cs
Assets/UnityCNTK/Models/StreamingModel.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityCNTK; using CNTK; using System; namespace UnityCNTK{ public class StreamingModel<T, V> : Model where T:IConvertible where V:IConvertible { public new T input; public new V output; // Evaluation carry ...
mit
C#
b4142736845641d6deca561aec456ff6ce3e40cc
Create ProductPriceSaving.cs
daniela1991/hack4europecontest
ProductPriceSaving.cs
ProductPriceSaving.cs
namespace Cdiscount.OpenApi.ProxyClient.Contract.Common { /// <summary> /// Product price saving details /// </summary> public class ProductPriceSaving { /// <summary> /// Saving details (amount or ratio) /// </summary> public decimal Type { get; set; } /// <...
mit
C#
fcc9a6c2438c5efb1933ff710fc6a9aa35142f17
Fix the solution not building after a fresh clone.
henon/GitSharp,henon/GitSharp
SharedAssemblyInfo.cs
SharedAssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyCompany("The Git Development Community")] [assembly: AssemblyCopyright("Copyright © 2009 The GitSharp Team")] [assembly: ComVisible(false)] #if DEBUG [assembly: AssemblyConfiguration("Deb...
lgpl-2.1
C#
2d311095acef4496a8511bdf4b30959e17bae043
add DNT.Diag.Data.LiveDataBuffer
rockyx/dntdiag
DNT/Diag/Data/LiveDataBuffer.cs
DNT/Diag/Data/LiveDataBuffer.cs
using System; namespace DNT.Diag.Data { public class LiveDataBuffer { private byte[] buff; private int length; public LiveDataBuffer () { buff = new byte[32]; length = 0; } public byte[] Buff { get { lock (this) { return buff; } } } public int Le...
apache-2.0
C#
f3bbb14db7d1f398bcf19f4ded058389904c614c
Add tests for LondonTravelRole
martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site
tests/LondonTravel.Site.Tests/Identity/LondonTravelRoleTests.cs
tests/LondonTravel.Site.Tests/Identity/LondonTravelRoleTests.cs
// Copyright (c) Martin Costello, 2017. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.LondonTravel.Site.Identity { using System; using System.Security.Claims; using Shouldly; using Xunit; ...
apache-2.0
C#
f6c4e35776b52da7d4e7ca7c82920f9e24f079b4
Add class to relay progress reporting For use whenever directly implementing IReportProgress is impossible
evandixon/SkyEditor.Core
SkyEditor.Core/Utilities/ProgressReportToken.cs
SkyEditor.Core/Utilities/ProgressReportToken.cs
using System; using System.Collections.Generic; using System.Text; namespace SkyEditor.Core.Utilities { /// <summary> /// A basic implementation of <see cref="IReportProgress"/> that can be used to relay progress reporting when a function's parent class cannot implement this interface. /// </summary> ...
mit
C#
787a8d5cbe85a9d92375e96360f7f0cbaf84abc5
Create an Address class
penblade/Training.Serialization
Training.Serialization/Models/PrimaryAddress.cs
Training.Serialization/Models/PrimaryAddress.cs
namespace Training.Serialization.Models { public class PrimaryAddress { public string FullName { get; set; } public string AddressLine1 { get; set; } public string AddressLine2 { get; set; } public string City { get; set; } public string StateOrProvinceOrRegion { get; se...
mit
C#
f3501ebe35eada0ebb17838614e499a1265dc301
add HasPreferHeaderWithReturnRepresentation extension for HttpRequest
Abhith/Code.Library,Abhith/Code.Library
src/Code.Library.AspNetCore/Extensions/HttpRequestExtensions.cs
src/Code.Library.AspNetCore/Extensions/HttpRequestExtensions.cs
using Microsoft.AspNetCore.Http; using System.Linq; namespace Code.Library.AspNetCore.Extensions { public static class HttpRequestExtensions { /// <summary> /// Return true if HTTP request contain Prefer header with value 'return=representation' /// </summary> /// <param name="...
apache-2.0
C#
e376facb0d7fbcb932f4c3dd1422ae15b22fad6e
add implementation of IUserRoleStore
joinrpg/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net
Joinrpg.Web.Identity/AspNetCore/MyUserStore.IUserRoleStore.cs
Joinrpg.Web.Identity/AspNetCore/MyUserStore.IUserRoleStore.cs
using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using JoinRpg.DataModel; using Microsoft.AspNetCore.Identity; namespace Joinrpg.Web.Identity { public partial class MyUserStore : IUserRoleStore<JoinIdentityUser> { Task IUserRoleStore<JoinIdentityUser...
mit
C#
6b4e9ce31437edfee767a88126030f44e4b4272d
Create AssemblyInfo.cs
wieslawsoltes/AvaloniaBehaviors,XamlBehaviors/XamlBehaviors,wieslawsoltes/AvaloniaBehaviors,XamlBehaviors/XamlBehaviors
src/Avalonia.Xaml.Interactions.Custom/Properties/AssemblyInfo.cs
src/Avalonia.Xaml.Interactions.Custom/Properties/AssemblyInfo.cs
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System.Reflection; using System.Runtime.CompilerServices; [assembly: AssemblyTitle("Avalonia.Xaml.Interactions.Custom")] [assembly: InternalsVisibleTo("...
mit
C#
b7bc7c27542374855c32175dac31b5991ddfafcf
Add missing file
Cybermaxs/RedisMemoryCacheInvalidation
src/RedisMemoryCacheInvalidation/Redis/RedisConnectionFactory.cs
src/RedisMemoryCacheInvalidation/Redis/RedisConnectionFactory.cs
using StackExchange.Redis; namespace RedisMemoryCacheInvalidation.Redis { internal class RedisConnectionFactory { public static IRedisConnection New(IConnectionMultiplexer mux) { return new ExistingRedisConnnection(mux); } public static IRedisConnection New(Configu...
mit
C#
dd97e6ad9e75bda8973001b2307f0127b6b28828
add Common.MediaFormats class
IUMDPI/IUMediaHelperApps
Common/Models/MediaFormats.cs
Common/Models/MediaFormats.cs
using System; using System.Collections.Generic; using System.Linq; namespace Common.Models { public class Formats { private Formats(string key, string properName) { Key = key; ProperName = properName; } public string Key { get; } public string P...
apache-2.0
C#
3f9d4e4bb76e017a5de08c7c9abdeb3307b8604e
Create GameManager.cs
kinifi/framework-unity
GameManager.cs
GameManager.cs
/* * Game Manager * This is how we will save our persistent data such as: * Logged in save data from a json file and assigning variables which we access in game * With this Singleton we can store data we need for later use * Example on how to use: GameManager.Instance.[Variable Name / Method Name] * Method...
mit
C#