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
e38a35115ebeb28a18ecd662acb1f5e3f2f458d0
Add new tests for Choose Function
jetreports/EPPlus
EPPlusTest/FormulaParsing/Excel/Functions/RefAndLookup/ChooseTests.cs
EPPlusTest/FormulaParsing/Excel/Functions/RefAndLookup/ChooseTests.cs
using System; using System.IO; using EPPlusTest.FormulaParsing.TestHelpers; using Microsoft.VisualStudio.TestTools.UnitTesting; using OfficeOpenXml; using OfficeOpenXml.FormulaParsing; using OfficeOpenXml.FormulaParsing.Excel.Functions.RefAndLookup; using OfficeOpenXml.FormulaParsing.Exceptions; namespace EP...
lgpl-2.1
C#
6700fd851b8196b34d053bd4956906a6ee6f6c7b
Add a benchmark case for affects render.
SuperJMN/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,grokys/Perspex,AvaloniaUI/Avalonia,SuperJMN/Avalonia,grokys/Perspex
tests/Avalonia.Benchmarks/Visuals/VisualAffectsRenderBenchmarks.cs
tests/Avalonia.Benchmarks/Visuals/VisualAffectsRenderBenchmarks.cs
using Avalonia.Controls; using Avalonia.Media; using BenchmarkDotNet.Attributes; namespace Avalonia.Benchmarks.Visuals; [MemoryDiagnoser] public class VisualAffectsRenderBenchmarks { private readonly TestVisual _target; private readonly IPen _pen; public VisualAffectsRenderBenchmarks() { ...
mit
C#
13c39a01e743e30cdfd450a733faf7959842aca0
Add F
farity/farity
CSharp.Functional/F.cs
CSharp.Functional/F.cs
namespace CSharp.Functional { public static partial class F { } }
mit
C#
dd5f19765ea382b6ae1b08b786c448c923597a5c
add framework overhead "PingBenchmark"
muxi/grpc,jtattermusch/grpc,ctiller/grpc,jboeuf/grpc,jtattermusch/grpc,donnadionne/grpc,grpc/grpc,jtattermusch/grpc,muxi/grpc,muxi/grpc,pszemus/grpc,jboeuf/grpc,ctiller/grpc,firebase/grpc,muxi/grpc,muxi/grpc,ctiller/grpc,stanley-cheung/grpc,vjpai/grpc,grpc/grpc,jtattermusch/grpc,ctiller/grpc,pszemus/grpc,nicolasnoble/g...
src/csharp/Grpc.Microbenchmarks/PingBenchmark.cs
src/csharp/Grpc.Microbenchmarks/PingBenchmark.cs
using System.Threading.Tasks; using BenchmarkDotNet.Attributes; using Grpc.Core; namespace Grpc.Microbenchmarks { // this test creates a real server and client, measuring the inherent inbuilt // platform overheads; the marshallers **DO NOT ALLOCATE**, so any allocations // are from the framework, not the m...
apache-2.0
C#
3dcaedaf8ac3b009f30a9c4a0fcf5f0b05bdc2f7
Add base64 convert helper
CosmosProgramme/Cosmos.Core
src/Cosmos.Core/Helpers/Base64ConvertHelper.cs
src/Cosmos.Core/Helpers/Base64ConvertHelper.cs
using System; using System.Text; namespace Cosmos.Helpers { /// <summary> /// Base64 convert helper /// </summary> public static class Base64ConvertHelper { /// <summary> /// Convert from base64 string to string /// </summary> /// <param name="base64String"></param>...
mit
C#
8f16196a9d1adc140693cecfb3dbc7c90575f5be
Add formatter benchmarks
shyamnamboodiripad/roslyn,tmat/roslyn,AmadeusW/roslyn,wvdd007/roslyn,shyamnamboodiripad/roslyn,stephentoub/roslyn,nguerrera/roslyn,genlu/roslyn,nguerrera/roslyn,KevinRansom/roslyn,davkean/roslyn,heejaechang/roslyn,aelij/roslyn,jasonmalinowski/roslyn,KevinRansom/roslyn,physhi/roslyn,mgoertz-msft/roslyn,CyrusNajmabadi/ro...
src/Tools/IdeBenchmarks/FormatterBenchmarks.cs
src/Tools/IdeBenchmarks/FormatterBenchmarks.cs
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.IO; using System.Linq; using System.Threading; using BenchmarkDotNet.Attributes; using Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces; using...
mit
C#
dfcf760b7be0592eb4212e3fdc9bc21073eaaa59
add OsuMarkdownOrderedListItem
peppy/osu-new,smoogipooo/osu,smoogipoo/osu,ppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,peppy/osu,peppy/osu
osu.Game/Graphics/Containers/Markdown/OsuMarkdownOrderedListItem.cs
osu.Game/Graphics/Containers/Markdown/OsuMarkdownOrderedListItem.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.Graphics; using osu.Framework.Graphics.Sprites; namespace osu.Game.Graphics.Containers.Markdown { public class OsuMarkdownOrderedListItem : OsuMa...
mit
C#
5abe0041968f8cea12a09f8dd6edda517f9654c9
Update Program.cs
medhajoshi27/GitTest1
ConsoleApplication1/ConsoleApplication1/Program.cs
ConsoleApplication1/ConsoleApplication1/Program.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { //hello } } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { //hello //code snippet was added in git hub Console.Writeli...
mit
C#
2e8ea9bd088fadeb22592e1ccb35341fd771a44b
Create Program.cs
Quadrat1c/OpJinx
JinxCrawler/Program.cs
JinxCrawler/Program.cs
using System; using System.Collections.Generic; namespace OpJinx { class Program { static void Main(string[] args) { // Testing github commit string ver = "0.2.2"; Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine($" _,-._"); ...
mit
C#
46ebeb0a1d88c6558ac3cc842bac9db464afe190
Create Problem104.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problems/Problem104.cs
Problems/Problem104.cs
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace ProjectEuler.Problems { class Problem104 { private bool IsPandigital(ref string st) { if (st.Length < 9) { return false; } List<cha...
mit
C#
b09c584d910ffe2271b097524dd86261ef5b1fd5
Add test
ppy/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,smoogipooo/osu,peppy/osu-new,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,ppy/osu
osu.Game.Rulesets.Mania.Tests/TestScenePlayfieldCoveringContainer.cs
osu.Game.Rulesets.Mania.Tests/TestScenePlayfieldCoveringContainer.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Graphics; using osu.Framework.Graphics.Shapes; using osu.Game.Rulesets.Mania.UI; using osu.Game.Rulesets.UI.Scrolling; using os...
mit
C#
e0216605914ce92ae582c801ca90448ef47076e5
Create HttpClient_Tests.cs
cobalto/WordPressPCL,wp-net/WordPressPCL,wp-net/WordPressPCL,cobalto/WordPressPCL
WordPressPCL.Tests.Selfhosted/HttpClient_Tests.cs
WordPressPCL.Tests.Selfhosted/HttpClient_Tests.cs
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; using WordPressPCL.Tests.Selfhosted.Utility; namespace WordPressPCL.Tests.Selfhosted { [TestClass] public class HttpCli...
mit
C#
0aace7589e1d608ebab6506f8fda78115f85bbb8
Add an index to AssetType in the inventory_items table, as suggested by coyled.
TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim
Aurora/DataManager/Migration/Migrators/Inventory/InventoryMigrator_1.cs
Aurora/DataManager/Migration/Migrators/Inventory/InventoryMigrator_1.cs
/* * Copyright (c) Contributors, http://aurora-sim.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 mus...
bsd-3-clause
C#
10c8f74b6cf79162693b4456bfe65181b2dcad5a
Add C# 7.0 Out variables is discards with underscore example
devlights/try-csharp
TryCSharp.Samples/CSharp7/OutVariableDiscardsWithUnderscoreSamples01.cs
TryCSharp.Samples/CSharp7/OutVariableDiscardsWithUnderscoreSamples01.cs
using System.Diagnostics.CodeAnalysis; using TryCSharp.Common; namespace TryCSharp.Samples.CSharp7 { [Sample] public class OutVariableDiscardsWithUnderscoreSamples01 : IExecutable { public void Execute() { // C# 7.0 から out 変数の扱いが楽になった // 不要な out パラメータがある場合、 アンダースコアを指...
mit
C#
c073a82d368efeb04124b7b724e0174580802b0f
add AspectServiceProviderFactory
AspectCore/Abstractions,AspectCore/AspectCore-Framework,AspectCore/Lite,AspectCore/AspectCore-Framework
src/AspectCore.Lite.DependencyInjection/AspectServiceProviderFactory.cs
src/AspectCore.Lite.DependencyInjection/AspectServiceProviderFactory.cs
using System; using AspectCore.Lite.DependencyInjection.Internal; namespace AspectCore.Lite.DependencyInjection { public static class AspectServiceProviderFactory { public static IServiceProvider Create(IServiceProvider serviceProvider) { return new ProxyServiceProvider(serviceProv...
mit
C#
7ef7c5148f21c35426a45f4ae02d6a60755fc584
Add `ScrollingPath` for visualization of the real path of a `JuiceStream`
NeoAdonis/osu,UselessToucan/osu,ppy/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu,smoogipooo/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu,peppy/osu-new,UselessToucan/osu
osu.Game.Rulesets.Catch/Edit/Blueprints/Components/ScrollingPath.cs
osu.Game.Rulesets.Catch/Edit/Blueprints/Components/ScrollingPath.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using System.Linq; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Lines; using osu....
mit
C#
a5936c11b1baf517730f0ecfcc49e7a420fe70bb
Create AuthenticationForm.cs
AlexanderKiselyov/DownloadProject
Belka/BelkaCloudDownloader.Dropbox/AuthenticationForm.cs
Belka/BelkaCloudDownloader.Dropbox/AuthenticationForm.cs
using System; using System.IO; using System.Drawing; using System.Threading; using Dropbox.Api; using System.Threading.Tasks; using System.Windows.Forms; namespace BelkaCloudDownloader.Dropbox { public partial class AuthenticationForm : Form { CancellationTokenSource cancelTokenSource = new CancellationTokenSource...
apache-2.0
C#
d33736d849c2ca0340b2d345939f41acb4ddc8e1
Add CompositeLog
vostok/core
Vostok.Core/Logging/Logs/CompositeLog.cs
Vostok.Core/Logging/Logs/CompositeLog.cs
using System.Linq; namespace Vostok.Logging.Logs { public class CompositeLog : ILog { private readonly ILog[] logs; public CompositeLog(params ILog[] logs) { this.logs = logs; } public void Log(LogEvent logEvent) { foreach (var log in l...
mit
C#
3d95387a00e6dd62116a04ebcdd8e211c94b07e3
Create Metadata.cs
jamesqo/typed-xaml
src/Typed.Xaml/Internal/Metadata.cs
src/Typed.Xaml/Internal/Metadata.cs
using System; using System.Collections.Generic; using System.Windows; using Windows.UI.Xaml; namespace Typed.Xaml.Internal { internal static class Metadata { public static PropertyMetadata CreateFrom<T, TOwner>(PropertyChangedCallback<T, TOwner> callback) where TOwner : DependencyObject ...
mit
C#
ee816776b9b374ce764351f2a3cfc444efb414c1
Add password hash method
stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity
C#Development/C#Web/C#WebDevelopmentBasics/Exams/MeTube/SimpleMvc.Common/PasswordExtensions.cs
C#Development/C#Web/C#WebDevelopmentBasics/Exams/MeTube/SimpleMvc.Common/PasswordExtensions.cs
namespace SimpleMvc.Common { using System.Collections.Generic; using System.Security.Cryptography; using System.Text; public static class PasswordExtensions { public static string GenerateSHA256String(string inputString) { var sha256 = SHA256.Create(); ...
mit
C#
a5ba2fd20fba90949d02d427d473f8f5a90d423c
Create Program.cs
CitrusCurse/PokemonSearch
Program.cs
Program.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PokemonSearch { class Program { static void Main(string[] args) { #region Variable Decalration string input; char re...
mit
C#
24c27da86191dec81b3d5a0bc54056bdf92a681a
Add ArrayExtensions
dv-lebedev/statistics
Statistics/ArrayExtensions.cs
Statistics/ArrayExtensions.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Statistics { public static class ArrayExtensions { public static double[] ToDouble(this decimal[] array) { int size = array.Length; double[] re...
apache-2.0
C#
ec488189302a06a000bab9633e79e28f39dfda09
Fix #
uheerme/core,uheerme/core,uheerme/core
Samesound/Controllers/StatusController.cs
Samesound/Controllers/StatusController.cs
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; using System.Web.Http; using System.Web.Http.Description; namespace Samesound.Controllers { /// <summary> /// The controller responsible for reporting the API status. /...
mit
C#
c39ab2c69219ff8d47337993597d56fc51fd01ab
Add SessionStaticsTest
smoogipoo/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,ppy/osu,peppy/osu-new,smoogipoo/osu,UselessToucan/osu,smoogipooo/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,peppy/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu
osu.Game.Tests/NonVisual/SessionStaticsTest.cs
osu.Game.Tests/NonVisual/SessionStaticsTest.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.Configuration; using osu.Game.Input; namespace osu.Game.Tests.NonVisual { [TestFixture] public class SessionStaticsTest ...
mit
C#
3f1bc66e7310afac41d024812ceba077abf0d63f
Add the new stubs for the IAsyncMessagePosterService.
TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim
OpenSim/Services/Interfaces/IAsyncMessagePosterService.cs
OpenSim/Services/Interfaces/IAsyncMessagePosterService.cs
using System; using System.Collections.Generic; using System.Text; using OpenMetaverse.StructuredData; namespace OpenSim.Services.Interfaces { /// <summary> /// This Service deals with posting events to a (local or remote) host /// This is used for secure communications between regions and the gr...
bsd-3-clause
C#
4129bbf47f2c778d7f4a57643522f812798a6f9b
add the 6-th subchapter from ch 2
ordinary-developer/education,ordinary-developer/education,ordinary-developer/education,ordinary-developer/education,ordinary-developer/education,ordinary-developer/education,ordinary-developer/education
books/techno/.net/c#_6.0_in_a_nutshell_6_ed_j_albahari/ch_2-c#_language_basics/06-arrays/main.cs
books/techno/.net/c#_6.0_in_a_nutshell_6_ed_j_albahari/ch_2-c#_language_basics/06-arrays/main.cs
using System; public struct PointStruct { public int X, Y; } public class PointClass { public int X, Y; } class Test { static void Example1_Arrays() { char[] vowels = new char[5]; vowels[0] = 'a'; vowels[1] = 'e'; vowels[2] = 'i'; vowels[3] = 'o'; vowels[4] = 'u...
mit
C#
225ddbc66f3c0626d848b041afa7ce70c50ac472
add Discount_Tests
vinhch/BizwebSharp
test/BizwebSharp.Tests.xUnit/Discount_Tests.cs
test/BizwebSharp.Tests.xUnit/Discount_Tests.cs
using System.Threading.Tasks; using BizwebSharp.Entities; using BizwebSharp.Enums; using BizwebSharp.Services; using Xunit; namespace BizwebSharp.Tests.xUnit { [Trait("Category", "Discount")] public class Discount_Tests { private DiscountService _Service => new DiscountService(Utils.AuthState); ...
mit
C#
8cf0e3005db456408c9b81bb77afbfd105c04e83
add issue #47 test
SixLabors/Fonts
tests/SixLabors.Fonts.Tests/Issues/Issues_47.cs
tests/SixLabors.Fonts.Tests/Issues/Issues_47.cs
using System.Collections.Immutable; using SixLabors.Fonts.Tests.Fakes; using Xunit; namespace SixLabors.Fonts.Tests.Issues { public class Issues_47 { [Theory] [InlineData("hello world hello world hello world hello world")] public void LeftAlignedTextNewLineShouldNotStartWithWhiteSpace(s...
apache-2.0
C#
c0986f2d40e7ea28ff4b70838dd5a1168152ea9d
Add Apex NetworkSelector (#148)
mikedennis/StratisBitcoinFullNode,mikedennis/StratisBitcoinFullNode,fassadlr/StratisBitcoinFullNode,bokobza/StratisBitcoinFullNode,stratisproject/StratisBitcoinFullNode,Neurosploit/StratisBitcoinFullNode,bokobza/StratisBitcoinFullNode,quantumagi/StratisBitcoinFullNode,quantumagi/StratisBitcoinFullNode,stratisproject/St...
src/Stratis.Sidechains.Networks/ApexNetworks.cs
src/Stratis.Sidechains.Networks/ApexNetworks.cs
using NBitcoin; namespace Stratis.Sidechains.Networks { public static class ApexNetworks { public static NetworksSelector Apex { get { return new NetworksSelector(() => new ApexMain(), () => new ApexTest(), () => new ApexRegTest()); } ...
mit
C#
09161a28b844a2f36218a43a5b5f14b73de89697
add converter
nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet
WalletWasabi.Fluent/Converters/VersionStringConverter.cs
WalletWasabi.Fluent/Converters/VersionStringConverter.cs
using System; using System.Globalization; using Avalonia.Data.Converters; using WalletWasabi.Exceptions; namespace WalletWasabi.Fluent.Converters { public class VersionStringConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value is...
mit
C#
f7451a0e15b59ca997099f072077982b08f86874
Create MultiplicationTable.cs
Zephyr-Koo/sololearn-challenge
MultiplicationTable.cs
MultiplicationTable.cs
using System; using System.Linq; // https://www.sololearn.com/Discuss/698184/?ref=app namespace SoloLearn { class Program { static void Main(string[] zephyr_koo) { var input = "3"; //Console.ReadLine(); int number; if (Int32.TryParse(input, out number)) ...
apache-2.0
C#
b1b59c89993e42a1ae6b815855fe373b09308bec
Create Settings.Designer.cs
Armdroid/Armdroid-Tools-Windows
ArmdroidTools/ArmTest/Properties/Settings.Designer.cs
ArmdroidTools/ArmTest/Properties/Settings.Designer.cs
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18063 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---...
mit
C#
517fd4088594c43dc370d14717979e03e7a65aae
Add tests for anonymous object rendering.
asd-and-Rizzo/ExpressionToCode,EamonNerbonne/ExpressionToCode
ExpressionToCodeTest/AnonymousObjectFormattingTest.cs
ExpressionToCodeTest/AnonymousObjectFormattingTest.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ExpressionToCodeLib; using Xunit; namespace ExpressionToCodeTest { public class AnonymousObjectFormattingTest { [Fact] public void AnonymousObjectsRenderAsCode...
apache-2.0
C#
0b9c81a34d33e4ade1b7b09caaa9d63ad1904925
Sort unmanaged array specified with <paramref name="pointer"/> at specified area.
bitzhuwei/CSharpGL,bitzhuwei/CSharpGL,bitzhuwei/CSharpGL
CSharpGL/0Foundations/Utilities/SortingHelper.cs
CSharpGL/0Foundations/Utilities/SortingHelper.cs
using System; using System.Runtime.InteropServices; using System.Text; namespace CSharpGL { /// <summary> /// Helper class for sorting unmanaged array. /// </summary> public static class SortingHelper { static void Test() { IntPtr pointer = IntPtr.Zero;// map, new, etc....
mit
C#
40ad54d242faa83fe2d171ec1fc9256360543ef9
add WindowToWallpapersSetter
sagamors/AnyWallpapers
AnyWallpapers/WindowToWallpapersSetter.cs
AnyWallpapers/WindowToWallpapersSetter.cs
using System; using System.Windows; using System.Windows.Interop; namespace AnyWallpapers { class WindowToWallpapersSetter { public void Set(Window window) { // Fetch the Progman window IntPtr progman = Win32.FindWindow("Progman", null); IntPtr result = Int...
mit
C#
4d22f75d9b95c0e7cc18f54d94dacf463f8c682d
Change SafePipeHandle to use IntPtr.Zero instead of new IntPtr(0)
alphonsekurian/corefx,Alcaro/corefx,arronei/corefx,Alcaro/corefx,kyulee1/corefx,ptoonen/corefx,fffej/corefx,rahku/corefx,stephenmichaelf/corefx,dtrebbien/corefx,dkorolev/corefx,fernando-rodriguez/corefx,EverlessDrop41/corefx,manu-silicon/corefx,Alcaro/corefx,anjumrizwi/corefx,fgreinacher/corefx,cydhaselton/corefx,tijoy...
src/System.IO.Pipes/src/Microsoft/Win32/SafeHandles/SafePipeHandle.Windows.cs
src/System.IO.Pipes/src/Microsoft/Win32/SafeHandles/SafePipeHandle.Windows.cs
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Runtime.InteropServices; using System.Security; namespace Microsoft.Win32.SafeHandles { public sealed partial class SafePipeHandle : Saf...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Runtime.InteropServices; using System.Security; namespace Microsoft.Win32.SafeHandles { public sealed partial class SafePipeHandle : Saf...
mit
C#
aa4b687662ce23439213eb04dddd649922d4e009
Revert "Remove empty class"
Voxelgon/Voxelgon,Voxelgon/Voxelgon
Assets/Voxelgon/Physics/Softbody.cs
Assets/Voxelgon/Physics/Softbody.cs
using UnityEngine; using System.Collections; namespace Voxelgon { public class Softbody : Physics { } }
apache-2.0
C#
9066cc8889b06de567a462f8fef35445d13173a5
Add support for tag helpers
grantcolley/authorisationmanager,grantcolley/authorisationmanager,grantcolley/authorisationmanager,grantcolley/authorisationmanager
UI/ASPNetCore/Views/_ViewImports.cshtml
UI/ASPNetCore/Views/_ViewImports.cshtml
 @addTagHelper *,Microsoft.AspNetCore.Mvc.TagHelpers
apache-2.0
C#
c7b8c1b45d7b963e78dfa0d3df9efb695b04f732
Add discord tests
tgstation/tgstation-server,tgstation/tgstation-server,Cyberboss/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server-tools
tests/Tgstation.Server.Host.Tests/Components/Chat/Providers/TestDiscordProvider.cs
tests/Tgstation.Server.Host.Tests/Components/Chat/Providers/TestDiscordProvider.cs
using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Tgstation.Server.Host.Components.Chat.Providers.Tests { [TestClass] public sealed clas...
agpl-3.0
C#
de7eef2c62b564a3991a71527e0ce08f852bc565
Add Darwin's Cloudywindows.io feed
planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell
src/Firehose.Web/Authors/DarwinSanoy.cs
src/Firehose.Web/Authors/DarwinSanoy.cs
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class DarwinSanoy : IAmACommunityMember { public string FirstName => "Darwin"; public string La...
mit
C#
9ffa3fe9bcbe9bd48c1673703da56a9b61335de2
Allow for types with no namespaces
stsrki/fluentmigrator,fluentmigrator/fluentmigrator,tommarien/fluentmigrator,schambers/fluentmigrator,eloekset/fluentmigrator,KaraokeStu/fluentmigrator,amroel/fluentmigrator,fluentmigrator/fluentmigrator,igitur/fluentmigrator,eloekset/fluentmigrator,dealproc/fluentmigrator,lcharlebois/fluentmigrator,wolfascu/fluentmigr...
src/FluentMigrator.Runner/TypeFinder.cs
src/FluentMigrator.Runner/TypeFinder.cs
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace FluentMigrator.Runner { /// <summary> /// Advanced searching and filtration of types collections. /// </summary> static class TypeFinder { /// <summary> /// Searches for types loca...
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace FluentMigrator.Runner { /// <summary> /// Advanced searching and filtration of types collections. /// </summary> static class TypeFinder { /// <summary> /// Searches for types loca...
apache-2.0
C#
f7edcaa3fba184e56290003ce8f4099d706958bd
Create Component.cs
QetriX/CS
QetriX/libs/components/Component.cs
QetriX/libs/components/Component.cs
namespace com.qetrix.libs.components { /* Copyright (c) QetriX.com. Licensed under MIT License, see /LICENSE.txt file. * 16.04.11 | QetriX Component class */ using System; using System.Collections.Generic; using System.Text; class Component { } }
mit
C#
5b8a2ead4c4845a3cdbbe1438a75a620d9187782
add unitest for issue #3867
imcarolwang/wcf,dotnet/wcf,imcarolwang/wcf,StephenBonikowsky/wcf,dotnet/wcf,mconnew/wcf,dotnet/wcf,imcarolwang/wcf,StephenBonikowsky/wcf,mconnew/wcf,mconnew/wcf
src/System.ServiceModel.Security/tests/ServiceModel/SupportingTokenParametersTest.cs
src/System.ServiceModel.Security/tests/ServiceModel/SupportingTokenParametersTest.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.ObjectModel; using System.ServiceModel.Security.Tokens; using Infrastructure.Common; usin...
mit
C#
12afe557c172df9c22b3ac4024c70443b939cb00
Add skeleton network file
axay/eigen,axay/eigen
kinect/Main/KinectStreams/Network.cs
kinect/Main/KinectStreams/Network.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace KinectStreams { class Network { } }
artistic-2.0
C#
c6437565e6600782cb62a5022d7a18f51bb78611
Add PdfWriter
Codinlab/PDF-SDK
src/DocumentFormat.Pdf/IO/PdfWriter.cs
src/DocumentFormat.Pdf/IO/PdfWriter.cs
using System; using System.IO; using System.Text; namespace DocumentFormat.Pdf.IO { /// <summary> /// Represents a Pdf document reader /// </summary> public class PdfWriter { private static Encoding encoding = Encoding.GetEncoding("ASCII"); private readonly Encoder encoder; ...
mit
C#
cb17fb2091b351c0bf79f31a0818923529d2b274
Create Test Scene
peppy/osu,ppy/osu,ppy/osu,peppy/osu,ppy/osu,peppy/osu
osu.Game.Rulesets.Osu.Tests/Mods/TestSceneOsuModFreezeFrame.cs
osu.Game.Rulesets.Osu.Tests/Mods/TestSceneOsuModFreezeFrame.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.Rulesets.Osu.Mods; namespace osu.Game.Rulesets.Osu.Tests.Mods { public class TestSceneOsuModFreezeFrame : OsuModTestScene {...
mit
C#
f1f6c21ea53f21bd14f317dcddc71b688ad25ced
Create Arrangement.cs
SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming
Kattis-Solutions/Arrangement.cs
Kattis-Solutions/Arrangement.cs
using System; namespace Arrangement { class Program { static string buildarr(int n) { string s = ""; for (int i = 0; i < n; i++) { s += "*"; } return s; } static void Main(string[] args) { int nr, np; string sm...
mit
C#
d9863d120f7063c7ee94d95227bafd0fd02537b7
Set correct Appveyor criteria
jerriep/auth0.net,jerriep/auth0.net,auth0/auth0.net,auth0/auth0.net,jerriep/auth0.net
build.cake
build.cake
var target = Argument("target", "Default"); var configuration = Argument("configuration", "Release"); // GLOBAL VARIABLES var artifactsDirectory = Directory("./artifacts"); var solutionFile = "./Auth0.Net.sln"; var IsOnAppVeyorAndNotPR = AppVeyor.IsRunningOnAppVeyor && !AppVeyor.Environment.PullRequest.IsPullRequest; ...
var target = Argument("target", "Default"); var configuration = Argument("configuration", "Release"); // GLOBAL VARIABLES var artifactsDirectory = Directory("./artifacts"); var solutionFile = "./Auth0.Net.sln"; var IsOnAppVeyorAndNotPR = AppVeyor.IsRunningOnAppVeyor && !AppVeyor.Environment.PullRequest.IsPullRequest; ...
mit
C#
ff117c0bc6f0de0e83c42bf6a89d8146635c0da6
Revert "Remove AbstractGraph."
DasAllFolks/SharpGraphs
Graph/AbstractGraph.cs
Graph/AbstractGraph.cs
using System; using System.Collections.Generic; namespace Graph { /// <summary> /// Implements shared functionality among both /// see cref="SimpleGraph{V, E, W}"/>s and /// <see cref="MultiGraph{V, E, W}"/>s. /// </summary> /// <typeparam name="V"> /// The type used to create vertex (nod...
apache-2.0
C#
2ba503c579576fff7aeafdcb8d9abe85142477cb
测试【统一下单】接口,可提交至正式环境
crushway/JCWX,cuittzq/JCWX,JamesYing/JCWX,sitexa/JCWX,lepon/JCWX,linyujie/JCWX
test/FrameworkCoreTest/Pay/ReallyPayUnifiedorderRequestTest.cs
test/FrameworkCoreTest/Pay/ReallyPayUnifiedorderRequestTest.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WX.Pay.Request; using WX.Pay.Response; namespace FrameworkCoreTest.Pay { public class ReallyPayUnifiedorderRequestTest : PayTest<PayUnifiedOrderRequest, PayUnifiedOrderResponse> { ...
mit
C#
cbe01f68312fa135e94ef3242c0c9c28a2dc9f1a
Create ZoomWithMouse.cs
UnityCommunity/UnityLibrary
Scripts/Camera/ZoomWithMouse.cs
Scripts/Camera/ZoomWithMouse.cs
using UnityEngine; // Zoom forward and backward with mousewheel, Attach this script to camera public class ZoomWithMouse : MonoBehaviour { public float zoomSpeed = 20; void Update() { var mouseScroll = Input.GetAxis("Mouse ScrollWheel"); if (mouseScroll!=0) { transfo...
mit
C#
c2796feeab1ffb94bd411fb2b491c6fe5eee3add
Create Resources.Designer.cs
Armdroid/Armdroid-Tools-Windows
ArmdroidTools/ArmTest/Properties/Resources.Designer.cs
ArmdroidTools/ArmTest/Properties/Resources.Designer.cs
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18063 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---...
mit
C#
c384bceb7c187b8a6534dd990784cc51465fa0a3
Update ShowDefaultCloseButtonConverter.cs
ButchersBoy/Dragablz,coderUT/Dragablz
Dragablz/Converters/ShowDefaultCloseButtonConverter.cs
Dragablz/Converters/ShowDefaultCloseButtonConverter.cs
using System; using System.Globalization; using System.Windows; using System.Windows.Data; namespace Dragablz.Converters { public class ShowDefaultCloseButtonConverter : IMultiValueConverter { /// <summary> /// [0] is owning tabcontrol ShowDefaultCloseButton value. /// [1] is owning ta...
using System; using System.Globalization; using System.Windows; using System.Windows.Data; namespace Dragablz.Converters { public class ShowDefaultCloseButtonConverter : IMultiValueConverter { /// <summary> /// [0] is owning tabcontrol ShowDefaultCloseButton value. /// [1] is owning ta...
mit
C#
fcb7d254f9d0f147dd85c38200a3ebd896c65b3c
Add IColorPalette
AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia
src/Avalonia.Controls.ColorPicker/ColorPalette/IColorPalette.cs
src/Avalonia.Controls.ColorPicker/ColorPalette/IColorPalette.cs
using Avalonia.Media; namespace Avalonia.Controls { /// <summary> /// Interface to define a color palette. /// </summary> public interface IColorPalette { /// <summary> /// Gets the total number of colors in this palette. /// A color is not necessarily a single value and ma...
mit
C#
cd66f83eee815646368cd656333e78f5b609e71b
add cashierModel repo
VladTsiukin/AirlineTicketOffice
AirlineTicketOffice.Repository/Repositories/CashierRepository.cs
AirlineTicketOffice.Repository/Repositories/CashierRepository.cs
using AirlineTicketOffice.Model.IRepository; using System; using System.Collections.Generic; using System.Linq; using System.Text; using AirlineTicketOffice.Model.Models; using System.Linq.Expressions; using System.Data.Entity; using AirlineTicketOffice.Data; using System.Threading.Tasks; namespace AirlineTicketOffic...
mit
C#
0410d121c2eadd41e75cd09d147c227d267e287f
Add windowing subsystem hookup for reflection UsePlatformDetect.
AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,Perspex/Perspex,jkoritzinsky/Avalonia,jkoritzinsky/Perspex,wieslawsoltes/Perspex,SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,jkoritzinsky/Avalon...
src/Avalonia.Native/Properties/AssemblyInfo.cs
src/Avalonia.Native/Properties/AssemblyInfo.cs
using Avalonia.MonoMac; using Avalonia.Platform; [assembly: ExportWindowingSubsystem(OperatingSystemType.OSX, 1, "MonoMac", typeof(MonoMacPlatform), nameof(MonoMacPlatform.Initialize))]
mit
C#
2ba96cf2600a3795d86215c99c07337efa55b619
update exception message in folder package resolver
tsolarin/dotnet-globals,tsolarin/dotnet-globals
src/DotNet.Globals.Core/PackageResolvers/FolderPackageResolver.cs
src/DotNet.Globals.Core/PackageResolvers/FolderPackageResolver.cs
using System; using System.IO; using System.Linq; using DotNet.Globals.Core.Utils; namespace DotNet.Globals.Core.PackageResolvers { internal class FolderPackageResolver : PackageResolver { public FolderPackageResolver(DirectoryInfo packagesFolder, string source, Options options) : base(packagesFolder,...
using System; using System.IO; using System.Linq; using DotNet.Globals.Core.Utils; namespace DotNet.Globals.Core.PackageResolvers { internal class FolderPackageResolver : PackageResolver { public FolderPackageResolver(DirectoryInfo packagesFolder, string source, Options options) : base(packagesFolder,...
mit
C#
a973e6a565ef5882d64c2d1c4fc94076739b23e7
Add model functions
tobyclh/UnityCNTK,tobyclh/UnityCNTK
Assets/UnityCNTK/HelperClasses/ModelExtensions.cs
Assets/UnityCNTK/HelperClasses/ModelExtensions.cs
using UnityEngine; using CNTK; using System; using System.Linq; using System.Collections.Generic; using System.IO; using UnityCNTK; using System.Net; using System.Threading; namespace UnityCNTK { public static class ModelExtensions { public static void Forward(this Model model) { ...
mit
C#
20788cfb8f381d0b40ee283347c565a1a5174399
Add Sqlite provider.
ctigeek/InvokeQueryPowershellModule
InvokeSqliteQuery.cs
InvokeSqliteQuery.cs
using System.Data.Common; using System.Data.SQLite; using System.Management.Automation; namespace InvokeQuery { [Cmdlet("Invoke", "SqliteQuery", SupportsTransactions = true, SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Low)] public class InvokeSqliteQuery : InvokeQueryBase { ...
mit
C#
173228474a241cf1436567a8d7f52e119af2b427
Create FileSizeFormatProvider.cs
skitsanosinc/vzaar-api-net
samples/console/user-details/FileSizeFormatProvider.cs
samples/console/user-details/FileSizeFormatProvider.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace utils { //Credits: http://blog.flimflan.com/FileSizeFormatProvider.html public class FileSizeFormatProvider : IFormatProvider, ICustomFormatter { public object GetFormat(Type formatType) ...
mit
C#
06adf3eb1d71989451358eb5f171ef12e9e895f1
Add extra logging for TickCount test
dsplaisted/corefx,the-dwyer/corefx,marksmeltzer/corefx,MaggieTsang/corefx,nchikanov/corefx,Jiayili1/corefx,stone-li/corefx,ravimeda/corefx,tijoytom/corefx,the-dwyer/corefx,iamjasonp/corefx,axelheer/corefx,gkhanna79/corefx,weltkante/corefx,Ermiar/corefx,cydhaselton/corefx,jlin177/corefx,ptoonen/corefx,rjxby/corefx,shimi...
src/System.Runtime.Extensions/tests/System/Environment.TickCount.cs
src/System.Runtime.Extensions/tests/System/Environment.TickCount.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.Linq; using System.Threading; using Xunit; namespace System.Tests { ...
// 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.Threading; using Xunit; namespace System.Tests { public class EnvironmentTickCount { [...
mit
C#
215df6e8a2fa0b71c58788855e3c05f6dcae3497
Use exaustive list for 1 and -1.
wvdd007/roslyn,KevinRansom/roslyn,ErikSchierboom/roslyn,eriawan/roslyn,gafter/roslyn,heejaechang/roslyn,KirillOsenkov/roslyn,bartdesmet/roslyn,shyamnamboodiripad/roslyn,mavasani/roslyn,AmadeusW/roslyn,diryboy/roslyn,aelij/roslyn,diryboy/roslyn,mgoertz-msft/roslyn,weltkante/roslyn,mgoertz-msft/roslyn,KevinRansom/roslyn,...
src/Analyzers/CSharp/Analyzers/UseCompoundAssignment/CSharpUseCompoundAssignmentDiagnosticAnalyzer.cs
src/Analyzers/CSharp/Analyzers/UseCompoundAssignment/CSharpUseCompoundAssignmentDiagnosticAnalyzer.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 Microsoft.CodeAnalysis.CSharp.LanguageServices; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.C...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using Microsoft.CodeAnalysis.CSharp.LanguageServices; using Microsoft.CodeAnalysis.CSharp.Syntax; usi...
mit
C#
145469d032468487709fa47e5ca1e76efc93323a
Test for double linked middleware.
Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex
backend/extensions/Squidex.Extensions/Samples/Middleware/DoubleLinkedContentMiddleware.cs
backend/extensions/Squidex.Extensions/Samples/Middleware/DoubleLinkedContentMiddleware.cs
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ===========================...
mit
C#
81d607bab847c42a7752de600ccb8e1576f68fd5
Create pangram.cs
shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/hackerrank,shreeharshas/Algorithms
pangram.cs
pangram.cs
/* File : FindIndex.cs Author : Shree Harsha Sridharamurthy Author email : s.shreeharsha@gmail.com Disclaimer : For use by concerned personnel only. Released under MIT License - permitted to use this but need to quote the source origin. Program : Solution for hackerrank question poste...
mit
C#
e88cd16386d03cee8f0fcd2e419381c670585856
Create program.cs
justinamiller/Exception-guidelines
program.cs
program.cs
class program { public program() {} }
mit
C#
cd89e2d32356c472711d072e109d00aba9d40f81
Create program.cs
ARMmaster17CodeSchool/ACS-CSharp-L1-A1
program.cs
program.cs
namespace System; class Program { public static void main() { Console.WriteLine("Hello World!"); Console.ReadKey(); } }
unlicense
C#
798e6b55dbd68ba384bdf7e02dc74ecc831da571
Create SaveInODSFormat.cs
asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-as...
Examples/CSharp/Files/Handling/SaveInODSFormat.cs
Examples/CSharp/Files/Handling/SaveInODSFormat.cs
using System.IO; using Aspose.Cells; namespace Aspose.Cells.Examples.Files.Handling { public class SaveInODSFormat { public static void Main(string[] args) { //ExStart:1 // The path to the documents directory. string dataDir = Aspose.Cells.Examples.Utils.Get...
mit
C#
55fd4bf1eb30531230daf40e3b41a2c5cc199bba
Create program.cs
justinamiller/Coding-Standards
program.cs
program.cs
class program { public program() { } }
mit
C#
11a66a34f5920c2eda1c93dac90cf708cc3310bf
Implement gameObject.RecursiveLayerMask ().
jorgenpt/unity-utilities
ExtensionMethods/GameObjectExtensions.cs
ExtensionMethods/GameObjectExtensions.cs
using UnityEngine; namespace ExtensionMethods { public static class GameObjectExtensions { public static int RecursiveLayerMask(this GameObject go) { LayerMask mask = 1 << go.layer; foreach (Transform t in go.transform) { mask |= t.gameObject.RecursiveLayerMask (); } return mask; } } }
mit
C#
ffee4a1ce975de78e7c8dfbb01bda850f878b1f2
remove duplicate
eclaus/docs.particular.net,pedroreys/docs.particular.net,pashute/docs.particular.net,WojcikMike/docs.particular.net,yuxuac/docs.particular.net
Snippets/Snippets_3/Callback/Callback.cs
Snippets/Snippets_3/Callback/Callback.cs
namespace MyServer.Callback { using System; using NServiceBus; public class Callback { class PlaceOrder : ICommand { } class PlaceOrderResponse : IMessage { public object Response { get; set; } } public void CallbackSnippet() ...
namespace MyServer.Callback { using System; using NServiceBus; public class Callback { class PlaceOrder : ICommand { } class PlaceOrderResponse : IMessage { public object Response { get; set; } } public void CallbackSnippet() ...
apache-2.0
C#
b8b88c78cead1ab39d3ce0dcfccfa0c1bcff3e68
Add IAsyncDelayer
tgstation/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server-tools,Cyberboss/tgstation-server,tgstation/tgstation-server
src/Tgstation.Server.Host/Core/IAsyncDelayer.cs
src/Tgstation.Server.Host/Core/IAsyncDelayer.cs
using System; using System.Threading; using System.Threading.Tasks; namespace Tgstation.Server.Host.Core { /// <summary> /// For waiting asynchronously /// </summary> interface IAsyncDelayer { /// <summary> /// Create a <see cref="Task"/> that completes after a given <paramref name="timeSpan"/> /// </summa...
agpl-3.0
C#
6c1fede18e0b0b133a89a7629f5aeb3db5439fe3
add wiki sidebar test scene
peppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,smoogipooo/osu,UselessToucan/osu,peppy/osu-new,ppy/osu,UselessToucan/osu,UselessToucan/osu,ppy/osu
osu.Game.Tests/Visual/Online/TestSceneWikiSidebar.cs
osu.Game.Tests/Visual/Online/TestSceneWikiSidebar.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 Markdig.Parsers; using Markdig.Syntax; using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Graphics.Containers.Markdown; using osu.Game.Overl...
mit
C#
86f617884b6c9e6731206254255aa53fcbfa39ba
Add TemplatesController
denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs
src/Diploms.WebUI/Controllers/TemplatesController.cs
src/Diploms.WebUI/Controllers/TemplatesController.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Diploms.Core; using Diploms.Dto; using Diploms.Services.Templates; namespace Diploms.WebUI.Controllers { [Route("api/[controller]")] public class TemplatesController : Controll...
mit
C#
6065b988c0f483b601927223263e890419c3e78f
Add Sync grant.
twilio/twilio-csharp
Twilio/JWT/SyncGrant.cs
Twilio/JWT/SyncGrant.cs
using System.Collections.Generic; namespace Twilio.JWT { public class SyncGrant : IGrant { public string ServiceSid { get; set; } public string EndpointId { get; set; } public string GetGrantKey() { return "data_sync"; } public object...
mit
C#
9f51ed77696a0f542e94aedc8290dda186e9917d
Create GrowthPush interface
SIROK/growthbeat-unity,growthbeat/growthbeat-unity,SIROK/growthbeat-unity,growthbeat/growthbeat-unity
plugin/Assets/Growthbeat/IGrowthPush.cs
plugin/Assets/Growthbeat/IGrowthPush.cs
internal interface IGrowthPush { void RequestDeviceToken(); void SetDeviceToken(); bool enableNotification(); void clearBadge(); void Tag (string name); void Tag (string name, string value); void Tag (GrowthPush.TagType type, string name, string value); void SetDeviceTag (); void Track (strin...
apache-2.0
C#
e14ff17848d7cf0cae0d53edaa0f4037ef5bb705
Remove highvolume tests
CenturyLinkCloud/kafka-net,martijnhoekstra/kafka-net,EranOfer/KafkaNetClient,Jroland/kafka-net,bridgewell/kafka-net,BDeus/KafkaNetClient,aNutForAJarOfTuna/kafka-net,gigya/KafkaNetClient,nightkid1027/kafka-net,geffzhang/kafka-net,PKRoma/kafka-net
kafka-tests/Integration/HighVolumeTests.cs
kafka-tests/Integration/HighVolumeTests.cs
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; using System.Threading.Tasks; using KafkaNet; using KafkaNet.Model; using KafkaNet.Protocol; using NUnit.Framework; namespace kafka_tests.Integration { [TestFixture] [Category("Integration")] ...
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; using System.Threading.Tasks; using KafkaNet; using KafkaNet.Model; using KafkaNet.Protocol; using NUnit.Framework; namespace kafka_tests.Integration { [TestFixture] [Category("Integration")] ...
apache-2.0
C#
d2955e48dec3c92b547380808c73ec6fe76b404b
Add sum of digits for c#
ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovs...
math/sum_of_digits/csharp/SumOfDigits.cs
math/sum_of_digits/csharp/SumOfDigits.cs
using System; public class SumOfDigits { public static void main(String[] args) { int sum = SumOfDigits.sumOfDigits(25114); Console.Write(sum); } private static int SumOfDigits(int i) { int res = 0; while ((i != 0)) { res = (res + (i % 10)); ...
cc0-1.0
C#
e76c2d8c4ed691459245322b2869036d91e86b24
Add Automated Build
salmonmoose/salmonmoose-UnityEd
AutomatedBuild.cs
AutomatedBuild.cs
/* AutoBuilder.cs Automatically changes the target platform and creates a build. Installation Place in an Editor folder. Usage Go to File > AutoBuilder and select a platform. These methods can also be run from the Unity command line using -executeMethod AutoBuilder.MethodName. License Copyright (C) 2011 by Think...
mit
C#
e6cf95db3bb89ad83c31fdd60b72d9db1bf8c9d7
Add unit tests for DefaultSwaggerTagCatalog
catcherwong/Nancy.Swagger,khellang/Nancy.Swagger,yahehe/Nancy.Swagger
test/Nancy.Swagger.Tests/Services/DefaultSwaggerTagCatalogTest.cs
test/Nancy.Swagger.Tests/Services/DefaultSwaggerTagCatalogTest.cs
using FakeItEasy; using Nancy.Swagger.Services; using Swagger.ObjectModel; using System.Collections.Generic; using Xunit; namespace Nancy.Swagger.Tests.Services { public class DefaultSwaggerTagCatalogTest { private DefaultSwaggerTagCatalog _defaultSwaggerTagCatalog; public DefaultSwaggerTagCa...
mit
C#
52ed3510f464d97a5b08f2fb4af21d81f76ba351
Remove unused
sharwell/roslyn,bartdesmet/roslyn,tmat/roslyn,CyrusNajmabadi/roslyn,weltkante/roslyn,KevinRansom/roslyn,aelij/roslyn,eriawan/roslyn,mgoertz-msft/roslyn,dotnet/roslyn,ErikSchierboom/roslyn,heejaechang/roslyn,CyrusNajmabadi/roslyn,eriawan/roslyn,ErikSchierboom/roslyn,physhi/roslyn,aelij/roslyn,mavasani/roslyn,heejaechang...
src/Features/Core/Portable/Diagnostics/IDiagnosticServiceExtensions.cs
src/Features/Core/Portable/Diagnostics/IDiagnosticServiceExtensions.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.Immutable; using System.Threading; using Microsoft.CodeAnalysis.PooledObjects; using Rosly...
// 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.Immutable; using System.Threading; using Microsoft.CodeAnalysis.PooledObjects; using Rosly...
mit
C#
cb3bcd4be40249d2a189b19c35b2416c1d911e24
Change base class of System.Data.OperationAbortedException to System.SystemException
Jiayili1/corefx,Jiayili1/corefx,yizhang82/corefx,Ermiar/corefx,BrennanConroy/corefx,rjxby/corefx,billwert/corefx,dotnet-bot/corefx,the-dwyer/corefx,stone-li/corefx,ericstj/corefx,wtgodbe/corefx,weltkante/corefx,the-dwyer/corefx,the-dwyer/corefx,shimingsg/corefx,MaggieTsang/corefx,stephenmichaelf/corefx,cydhaselton/core...
src/System.Data.SqlClient/src/System/Data/OperationAbortedException.cs
src/System.Data.SqlClient/src/System/Data/OperationAbortedException.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. //------------------------------------------------------------------------------ using System.Runtime.Serializati...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. //------------------------------------------------------------------------------ using System.Runtime.Serializati...
mit
C#
2bb0bb94e2325d238c4a885587ad4f9db8ec50bb
Create Analyzer.cs
jimpoulakos/c-sharp-statistics-library
Analyzer.cs
Analyzer.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace StatisticsLibrary { public class Analyzer<T> where T:IComparable { private T[] m_Values; public Analyzer(T[] theSeed) { m_Values = theSeed; ...
mit
C#
3d156fd8943d829708ed90979559452e7857c154
add checker InLockChecker
BigBabay/AsyncConverter,BigBabay/AsyncConverter
AsyncConverter/AsyncHelpers/CanBeUseAsyncMethodCheckers/InLockChecker.cs
AsyncConverter/AsyncHelpers/CanBeUseAsyncMethodCheckers/InLockChecker.cs
using JetBrains.ProjectModel; using JetBrains.ReSharper.Psi.CSharp.Tree; namespace AsyncConverter.AsyncHelpers.CanBeUseAsyncMethodCheckers { [SolutionComponent] internal class InLockChecker : IConcreteCanBeUseAsyncMethodChecker { public bool CanReplace(IInvocationExpression element) => ...
mit
C#
80ec878e89fc4b8b11957e3d6d3779ca5a9ff286
Create app.cs
samkho/BladeScript,samkho/BladeScript,samkho/BladeScript
app.cs
app.cs
body { font-family: 'Segoe UI', sans-serif; } span { font-style: italic; }
mit
C#
9244cd76648e3943142480da5c82e962f9d2caac
Create sharedResources_unsafe.cs
alchemz/ARL_Training
CSharpDotNet_Programming/Async_Parallel_Programming/sharedResources_unsafe.cs
CSharpDotNet_Programming/Async_Parallel_Programming/sharedResources_unsafe.cs
// shared resources //unsafe: writes and reads the sum the same time int sum=0;//parallel code; Task.Factory.StartNew(()=> {sum= sum+ obj1.Computation();}); Task.Factory.StartNew(()=> {sum=sum+obj2.Computation();}); Task.Factory.StartNew(()=> {sum= sum+ obj3.Computation();});
mit
C#
bc0c9687d4b68141a30e41399883214d98d92d71
Fix - Tolta la ListaPartenze
vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf
src/backend/SO115App.Models/Servizi/CQRS/Commands/GestioneSoccorso/GestioneIntervento/Shared/InserimentoChiamata.cs
src/backend/SO115App.Models/Servizi/CQRS/Commands/GestioneSoccorso/GestioneIntervento/Shared/InserimentoChiamata.cs
//----------------------------------------------------------------------- // <copyright file="InserimentoChiamata.cs" company="CNVVF"> // Copyright (C) 2017 - CNVVF // // This file is part of SOVVF. // SOVVF is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public ...
agpl-3.0
C#
4b712e35442d6818dc8071bf66abbc158c49364b
Create MainCode.cs
UnstableMutex/OutlookAddinSaveAttachments
MainCode.cs
MainCode.cs
public partial class ThisAddIn { private void ThisAddIn_Startup(object sender, System.EventArgs e) { SaveUnreadAttachments(); this.Application.NewMailEx += app_NewMailEx; } void app_NewMailEx(string EntryIDCollection) { // MessageBox.Sh...
mit
C#
db638843db28de3bcccaa306c0dbcf2da342e39d
Add AppInternalInfo class
NFig/NFig
NFig/AppInternalInfo.cs
NFig/AppInternalInfo.cs
using System; using System.Collections.Generic; using JetBrains.Annotations; using NFig.Converters; namespace NFig { class AppInternalInfo { static readonly Dictionary<string, AppInternalInfo> s_infoByApp = new Dictionary<string, AppInternalInfo>(); internal string AppName { get; } [C...
mit
C#
7ef9e7516db817c28961aa7f875abac20c362f01
Create Node.cs
jeroen1985/c-sharp-data-structures-algorithms
Node.cs
Node.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SingleLinkedList { class Node { public int info; public Node link; public Node(int i) { info = i; link = null; } } }...
mit
C#
061167cbd459da9cb38836020bf9bc8ae8debe0b
Add interface
whampson/cascara,whampson/bft-spec
Cascara/Src/Interpreter/ISourceElement.cs
Cascara/Src/Interpreter/ISourceElement.cs
#region License /* Copyright (c) 2017 Wes Hampson * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, ...
mit
C#
8ac889d92d6f59b8c45de7fd44753f3e48c3c191
Add MinVerAttribute
nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke
source/Nuke.Common/Tools/MinVer/MinVerAttribute.cs
source/Nuke.Common/Tools/MinVer/MinVerAttribute.cs
// Copyright 2021 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE using System; using System.Linq; using System.Reflection; using JetBrains.Annotations; using Nuke.Common.CI.AppVeyor; using Nuke.Common.CI.AzurePipelines; using Nuke.Common.CI.TeamCit...
mit
C#
a3d98176dedf74bf1ee42714aa1ef9e0feaed077
Add Stream.CreateWaitHandle non-null check
alexperovich/corefx,ViktorHofer/corefx,axelheer/corefx,dhoehna/corefx,YoupHulsebos/corefx,marksmeltzer/corefx,alexperovich/corefx,lggomez/corefx,dhoehna/corefx,JosephTremoulet/corefx,nchikanov/corefx,ViktorHofer/corefx,DnlHarvey/corefx,marksmeltzer/corefx,the-dwyer/corefx,wtgodbe/corefx,cydhaselton/corefx,shimingsg/cor...
src/System.IO/tests/Stream/Stream.netstandard17.cs
src/System.IO/tests/Stream/Stream.netstandard17.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.Threading; using Xunit; namespace System.IO.Tests { public class TestStream : MemoryStream { ...
// 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.Threading; using Xunit; namespace System.IO.Tests { public partial class StreamMethods { ...
mit
C#
d4af85e0431d1ba50a2b917c2113169c9385c2ba
Add new [LinkerSafe] attribute - which tells the linker (when enabled) that an assembly is safe to link (even if Link All is not used)
mono/maccore
src/Foundation/LinkerSafeAttribute.cs
src/Foundation/LinkerSafeAttribute.cs
// // Copyright 2013 Xamarin Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, /...
apache-2.0
C#
9f8094ed500cd2522aacf21d87a731155a24f22c
Create SelectionSort.cs
maazsq/Algorithms_Example,maazsq/Algorithms_Example,Astrophilic/Algorithms_Example,pranjalrai/Algorithms_Example,AtoMc/Algorithms_Example,AtoMc/Algorithms_Example,pranjalrai/Algorithms_Example,AtoMc/Algorithms_Example,alok760/Algorithms_Example,alok760/Algorithms_Example,xiroV/Algorithms_Example,xiroV/Algorithms_Exampl...
SelectionSort/C_Sharp/SelectionSort.cs
SelectionSort/C_Sharp/SelectionSort.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace CSharpAlgorithms { public class Program { public static void Main(string[] args) { int[] array={5,3,7,2}; SelectionSort(array); arra...
apache-2.0
C#
3cf8e1ad7d02787f758b59753b7bd58b9ee65ee7
add lexer states
maul-esel/CobaltAHK,maul-esel/CobaltAHK
CobaltAHK/Lexer/State.cs
CobaltAHK/Lexer/State.cs
using System; namespace CobaltAHK { public partial class Lexer { public enum State { Root, Traditional, Expression } } }
mit
C#
c84eafe1947e8c389aa7c2be196299cd7d56eecc
Add ShotArchiveView
skacofonix/WhatTheMovie,skacofonix/WhatTheMovie,skacofonix/WhatTheMovie
WTM.Mobile.Droid/Views/ShotArchiveView.cs
WTM.Mobile.Droid/Views/ShotArchiveView.cs
using Android.App; using Android.OS; namespace WTM.Mobile.Droid.Views { [Activity(Label = "The Archive")] public class ShotArchiveView : BaseView { protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.ShotOverviewVie...
mit
C#
4931374e9182283fdf563109a3a783bcdd975258
Create Problem42.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problems/Problem42.cs
Problems/Problem42.cs
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace ProjectEuler { class Problem42 { private Dictionary<char, int> letter; public Problem42() { string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; letter = new Dictionary<char,...
mit
C#
87d1f6d9770e66207c443f4d2445a93beadd278e
Create Problem94.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problems/Problem94.cs
Problems/Problem94.cs
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace ProjectEuler.Problems { class Problem94 { //long upper = 1000000000; long upper = 1000000000; //public void Run() //{ // // Heron's Formula for the area of a triangle ...
mit
C#
757a4b5c319cf0b382e97db6ae5775c5ff5f1105
Add hitobject lifetime model
ppy/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,peppy/osu-new,peppy/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,peppy/osu
osu.Game/Rulesets/Objects/HitObjectLifetimeEntry.cs
osu.Game/Rulesets/Objects/HitObjectLifetimeEntry.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.Graphics.Performance; using osu.Game.Rulesets.Objects.Drawables; namespace osu.Game.Rulesets.Objects { /// <summary> /// A <see cref="Lifetim...
mit
C#
0670403e4fb7b449d293f208a249082920e0dfb3
Add nHINterceptor
peopleware/net-ppwcode-vernacular-nhibernate
src/PPWCode.Vernacular.NHibernate.I/Implementations/NhInterceptor.cs
src/PPWCode.Vernacular.NHibernate.I/Implementations/NhInterceptor.cs
// Copyright 2018-2018 by PeopleWare n.v.. // // 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 ...
apache-2.0
C#