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
7262bfb8fdf4817f648dceaabf4866039cc4e597
Create MessageBoxScrollable.Designer.cs
HartmanDev/WimP
Demo/MessageBoxScrollable.Designer.cs
Demo/MessageBoxScrollable.Designer.cs
namespace PathFinder { partial class MessageBoxScrollable { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
mit
C#
46ce81a6962b7af919d60c3f789f63b2fa1a59b0
Create Cmdlets.cs
secabstraction/PowerWalker
Cmdlets.cs
Cmdlets.cs
using System; using System.Text; using System.Diagnostics; using System.Collections.Generic; using System.Management.Automation; using PowerWalker.Natives; namespace PowerWalker { //OpenProcess [Cmdlet(VerbsCommon.Get, "ProcessHandle")] public class GetProcessHandle : PSCmdlet { [Parameter( ...
bsd-3-clause
C#
b8e73c49fa44cd3cbde64f39d0f0178cfecaa612
add NMSBoxes' test in DnnTest
shimat/opencvsharp,shimat/opencvsharp,shimat/opencvsharp
test/OpenCvSharp.Tests/dnn/DnnTest.cs
test/OpenCvSharp.Tests/dnn/DnnTest.cs
using System; using OpenCvSharp.Dnn; using Xunit; namespace OpenCvSharp.Tests.Dnn { public class DnnTest : TestBase { [Fact] public void NMSBoxes() { var bboxes = new Rect[] { new Rect(10, 10, 20, 20), new Rect(100, 100, 20, 20), ...
apache-2.0
C#
907d4cdab6eb9cdad7d27c3b110c84d27a18fb49
Implement a class to query supported commands and get their instances.
tparviainen/oscilloscope
SCPI/Commands.cs
SCPI/Commands.cs
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; namespace SCPI { public class Commands { private Dictionary<string, ICommand> commands = new Dictionary<string, ICommand>(); /// <summary> /// Creates a list of supported com...
mit
C#
616082926e42f08e272c090e8a7393ca609d0b9e
Create Exercise_07_-_Check-if-any-#-in-an-array-is-odd_-_created-a-method-or-a-function.cs
jesushilarioh/Questions-and-Exercises-in-C-Sharp
Numbers/Exercise_07_-_Check-if-any-#-in-an-array-is-odd_-_created-a-method-or-a-function.cs
Numbers/Exercise_07_-_Check-if-any-#-in-an-array-is-odd_-_created-a-method-or-a-function.cs
/******************************************************************** * * 53. Write a C# program to check if an array contains an odd number. * * Test Data: * Original array: [2, 4, 7, 8, 6] * Check if an array contains an odd number? True * * By: Jesus Hilario Hernandez * Last Updated: October 22th 2017 * *******...
mit
C#
b9e8494145caaf28f6642b54ffac44fa7f25270a
Print pattern without a loop
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
GeeksForGeeks/print_pattern_no_loop.cs
GeeksForGeeks/print_pattern_no_loop.cs
// http://www.geeksforgeeks.org/print-a-pattern-without-using-any-loop/ // // // Print a pattern without using any loop // // Given a number n, print following pattern without using any loop. // // Input: n = 16 // Output: 16, 11, 6, 1, -4, 1, 6, 11, 16 // // Input: n = 10 // Output: 10, 5, 0, 5, 10 // using System; c...
mit
C#
dec0fe37e00c27870e4ac71954da0531a69ab426
Add FinishedLaunching()
sakthivelnagarajan/monotouch-samples,iFreedive/monotouch-samples,sakthivelnagarajan/monotouch-samples,andypaul/monotouch-samples,W3SS/monotouch-samples,YOTOV-LIMITED/monotouch-samples,nelzomal/monotouch-samples,hongnguyenpro/monotouch-samples,robinlaide/monotouch-samples,davidrynn/monotouch-samples,YOTOV-LIMITED/monoto...
TextKitDemo/TextKitDemo/AppDelegate.cs
TextKitDemo/TextKitDemo/AppDelegate.cs
using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; namespace TextKitDemo { [Register ("AppDelegate")] public partial class AppDelegate : UIApplicationDelegate { public override UIWindow Window { get; set; } public override bool FinishedLaunching (UIApplication app...
using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; namespace TextKitDemo { [Register ("AppDelegate")] public partial class AppDelegate : UIApplicationDelegate { public override UIWindow Window { get; set; } static void Main (string[] args) { UIApplication.Mai...
mit
C#
ba8528646bdc3a314b7c187962849b5b824a7315
Create light.cs
DocTyp/DocTyp.github.io,DocTyp/DocTyp.github.io
src/Syntax/syntaxhighlighter/light.cs
src/Syntax/syntaxhighlighter/light.cs
mit
C#
f0aec7123c68436424666416734a4b2d236d830e
Create ArnaudLegouxMovingAverage.cs
Mendelone/forex_trading,Jay-Jay-D/LeanSTP,Mendelone/forex_trading,tomhunter-gh/Lean,redmeros/Lean,jameschch/Lean,StefanoRaggi/Lean,young-zhang/Lean,kaffeebrauer/Lean,QuantConnect/Lean,Jay-Jay-D/LeanSTP,AlexCatarino/Lean,QuantConnect/Lean,AnshulYADAV007/Lean,Mendelone/forex_trading,andrewhart098/Lean,JKarathiya/Lean,red...
Indicators/ArnaudLegouxMovingAverage.cs
Indicators/ArnaudLegouxMovingAverage.cs
apache-2.0
C#
07a63d2dddb65e574c5646ccbc38de0a6d1f5805
Add tests for RazorCompile target
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/RazorCompileIntegrationTest.cs
test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/RazorCompileIntegrationTest.cs
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.IO; using System.Threading.Tasks; using Xunit; namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests { public class RazorCompi...
apache-2.0
C#
404d9c1bf6a46419a378f9230af1f6ea5141253a
Create collision.cs
vvoid-inc/VoidEngine,thakyZ/VoidEngine
VoidEngine/collision.cs
VoidEngine/collision.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; namespace VoidEngine { public class Collision { public struct MapSegment { public Point point1; public Point point2; public MapSegment(Point ...
mit
C#
6e70ab1743e51cca5ec7b2ade197edd2c812214b
Add basic Span<T> test
KrzysztofCwalina/coreclr,KrzysztofCwalina/coreclr,KrzysztofCwalina/coreclr,KrzysztofCwalina/coreclr,KrzysztofCwalina/coreclr,KrzysztofCwalina/coreclr,KrzysztofCwalina/coreclr
tests/src/CoreMangLib/system/span/BasicSpanTest.cs
tests/src/CoreMangLib/system/span/BasicSpanTest.cs
using System; using System.Collections.Generic; class My { static int Sum(Span<int> span) { int sum = 0; for (int i = 0; i < span.Length; i++) sum += span[i]; return sum; } static void Main() { int[] a = new int[] { 1, 2, 3 }; Span<int> span = ne...
mit
C#
73babf6232bc217936ca0fb969dd68f6d765e3bb
Add a EurekaClientService for use by ConfigServer client
SteelToeOSS/Discovery,SteelToeOSS/Discovery,SteelToeOSS/Discovery
src/Steeltoe.Discovery.EurekaBase/EurekaClientService.cs
src/Steeltoe.Discovery.EurekaBase/EurekaClientService.cs
// Copyright 2017 the original author or authors. // // 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...
apache-2.0
C#
1de91191f1eb49f8c00fb7c73a9a02c1a66fdece
Create positive tests for getting values from nested environments
escamilla/squirrel
test/test-library/EnvironmentTests.cs
test/test-library/EnvironmentTests.cs
using Xunit; using Squirrel; using Squirrel.Nodes; namespace Tests { public class EnvironmentTests { private static readonly string TestVariableName = "x"; private static readonly INode TestVariableValue = new IntegerNode(1); [Fact] public void TestGetValueFromCurrentEnvironmen...
mit
C#
a8260257e9bede6cbcad46ad60c77af0cd4bd7f3
add sample code to draw stroked text
jingwood/d2dlib,jingwood/d2dlib,jingwood/d2dlib
src/Examples/SampleCode/StrokedText.cs
src/Examples/SampleCode/StrokedText.cs
/* * MIT License * * Copyright (c) 2009-2021 Jingwood, unvell.com. All right reserved. * * 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 limitat...
mit
C#
549ac20f074a273e9cf54f07f7efe71b774a5f12
test it works
Pondidum/Stronk,Pondidum/Stronk
src/Stronk.Tests/Validation/LambdaValidatorTests.cs
src/Stronk.Tests/Validation/LambdaValidatorTests.cs
using System; using Shouldly; using Stronk.Validation; using Xunit; namespace Stronk.Tests.Validation { public class LambdaValidatorTests { [Theory] [InlineData(typeof(Target), true)] [InlineData(typeof(TargetChild), true)] [InlineData(typeof(OtherTarget), false)] public void CanValidate_checks_type_proper...
lgpl-2.1
C#
6bddd653c13fbd4aff6ccba9a9600319a3a0cbf9
Create a tool for importing Whitebox *.dep files
pergerch/DotSpatial,donogst/DotSpatial,DotSpatial/DotSpatial,DotSpatial/DotSpatial,JasminMarinelli/DotSpatial,bdgza/DotSpatial,CGX-GROUP/DotSpatial,bdgza/DotSpatial,swsglobal/DotSpatial,swsglobal/DotSpatial,pedwik/DotSpatial,donogst/DotSpatial,bdgza/DotSpatial,donogst/DotSpatial,pergerch/DotSpatial,CGX-GROUP/DotSpatial...
DotSpatial.Tools/ImportWhiteboxRaster.cs
DotSpatial.Tools/ImportWhiteboxRaster.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DotSpatial.Tools { class ImportWhiteboxRaster { } }
mit
C#
e81e5af8102114dd574eeaaef1463e7937a97747
Fix BotAuthentication documentation issue
dr-em/BotBuilder,mmatkow/BotBuilder,stevengum97/BotBuilder,mmatkow/BotBuilder,msft-shahins/BotBuilder,stevengum97/BotBuilder,dr-em/BotBuilder,stevengum97/BotBuilder,dr-em/BotBuilder,yakumo/BotBuilder,stevengum97/BotBuilder,xiangyan99/BotBuilder,dr-em/BotBuilder,xiangyan99/BotBuilder,xiangyan99/BotBuilder,xiangyan99/Bot...
CSharp/Documentation/Conventions.cs
CSharp/Documentation/Conventions.cs
namespace Microsoft.Bot.Builder.Connector { /** \page connectormisc Conventions & Security \section serialization Class library vs. Serialization Conventions All of the objects described use lower-camel casing on the wire. The C# libraries use strongly typed names that are pascal cased. Our documentation sometim...
namespace Microsoft.Bot.Builder.Connector { /** \page connectormisc Conventions & Security \section serialization Class library vs. Serialization Conventions All of the objects described use lower-camel casing on the wire. The C# libraries use strongly typed names that are pascal cased. Our documentation sometim...
mit
C#
a2146a4a2c68902f87687f1929f4b964db7b6902
Add Feature model
Mataniko/IV-Play
Data/Models/Feature.cs
Data/Models/Feature.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace IV_Play.Data.Models { public class Feature { [XmlAttribute] public string type { get; set; } [XmlAttribute] public stri...
mit
C#
3667300f2d49f36437cd5fd0055e83f6bf5c84c4
Add LayoutVersion tests
whampson/bft-spec,whampson/cascara
Cascara.Tests/Src/LayoutVersionTests.cs
Cascara.Tests/Src/LayoutVersionTests.cs
using WHampson.Cascara; using Xunit; using Xunit.Abstractions; namespace Cascara.Tests { public class LayoutVersionTests : CascaraTestFramework { public LayoutVersionTests(ITestOutputHelper output) : base(output) { } [Theory] [InlineData(1, 0, 0, 1, 0, 0,...
mit
C#
ba0b1797778db9aab639adb118928e0826c0aae3
Create QuitButton.cs
jon-lad/Battlefleet-Gothic
MainMenu/QuitButton.cs
MainMenu/QuitButton.cs
using UnityEngine; using System.Collections; public class QuitButton : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } void OnMouseOver(){ renderer.material.color = new Color32(212,11,57, 255); } void OnMouseExit(){ renderer....
mit
C#
898cb84db89aa579f3dfc3a400f5a4da6d8e4ecf
Update All.Clear method to use ClearBufferMask enum instead of uint
a9upam/monotouch-samples,nervevau2/monotouch-samples,robinlaide/monotouch-samples,davidrynn/monotouch-samples,peteryule/monotouch-samples,YOTOV-LIMITED/monotouch-samples,markradacz/monotouch-samples,W3SS/monotouch-samples,peteryule/monotouch-samples,robinlaide/monotouch-samples,iFreedive/monotouch-samples,sakthivelnaga...
OpenGLESSample-GameView/EAGLView.cs
OpenGLESSample-GameView/EAGLView.cs
using System; using OpenTK.Platform.iPhoneOS; using Foundation; using ObjCRuntime; using CoreAnimation; using OpenTK; using OpenGLES; using OpenTK.Graphics.ES11; namespace OpenGLESSampleGameView { public partial class EAGLView : iPhoneOSGameView { [Export ("layerClass")] static Class LayerClass() { return...
using System; using OpenTK.Platform.iPhoneOS; using Foundation; using ObjCRuntime; using CoreAnimation; using OpenTK; using OpenGLES; using OpenTK.Graphics.ES11; namespace OpenGLESSampleGameView { public partial class EAGLView : iPhoneOSGameView { [Export ("layerClass")] static Class LayerClass() { return...
mit
C#
f803d9107fa8b11b6da366466e57ea3d02d38710
Create Problem491.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problems/Problem491.cs
Problems/Problem491.cs
using System; using System.Collections.Generic; using System.Numerics; using System.Text; using System.IO; namespace ProjectEuler.Problems { class Problem491 { public static void Run() { DateTime start = DateTime.Now; int[] dblpan = {1, 0, 0, 1, 2, 2, 3, 3, 4, 4, 5, 5...
mit
C#
5330a8cf5be619c78f2bebd48327b18e786d1a96
Add tests for Sha512 class
ektrah/nsec
tests/Algorithms/Sha512Tests.cs
tests/Algorithms/Sha512Tests.cs
using System; using NSec.Cryptography; using Xunit; namespace NSec.Tests.Algorithms { public static class Sha512Tests { public static readonly string HashOfEmpty = "cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e"; ...
mit
C#
f21263bec559708e2a1fe3aa5641d71d75bc2f18
Define a Void type comparable to System.Void, but one that can be used when the compiler does not allow you to use System.Void, such as for return types or generic type arguments.
plioi/parsley
src/Parsley/Void.cs
src/Parsley/Void.cs
namespace Parsley; /// <summary> /// Represents a void type, since `System.Void` is not valid everywhere a type name /// is required, such as for return types or generic type arguments. /// </summary> public readonly struct Void { static readonly Void _value; public static ref readonly Void Value => ref _valu...
mit
C#
fd40c98b707d99741d574f436f075d930daec1dc
Add unit tests for PointND.
KernelA/EOptimization-library
EOptimizationTests/Math/PointNDTests.cs
EOptimizationTests/Math/PointNDTests.cs
namespace EOpt.Math.Tests { using Microsoft.VisualStudio.TestTools.UnitTesting; using EOpt.Math; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; [TestClass()] public class PointNDTests { [TestMethod()]...
mit
C#
98f06e6e987c81ac271d292fc8fdd47108b7e4fd
Create problem019.cs
mvdiener/project_euler,mvdiener/project_euler
CSharp/problem019.cs
CSharp/problem019.cs
//You are given the following information, but you may prefer to do some research for yourself. //1 Jan 1900 was a Monday. //Thirty days has September, //April, June and November. //All the rest have thirty-one, //Saving February alone, //Which has twenty-eight, rain or shine. //And on leap years, twenty-nine. //A lea...
mit
C#
3058d792929b6088c262b8226f846bdfe6c0d36a
set up for lore skill
LiamKenneth/MIM,LiamKenneth/ArchaicQuest,LiamKenneth/ArchaicQuest,LiamKenneth/ArchaicQuest,LiamKenneth/MIM,LiamKenneth/ArchaicQuest,LiamKenneth/MIM
MIMWebClient/Core/Player/Skills/Lore.cs
MIMWebClient/Core/Player/Skills/Lore.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MIMWebClient.Core.Events; namespace MIMWebClient.Core.Player.Skills { using System.Runtime.CompilerServices; using MIMWebClient.Core.PlayerSetup; using MIMWebClient.Core.Room; pu...
mit
C#
b775ff2a37ed3dd22a144fe3fa3c8804516c19c2
Add AssemblyInfo and set CLSCompliant to true
Kingloo/GB-Live
src/AssemblyInfo.cs
src/AssemblyInfo.cs
using System; [assembly:CLSCompliant(true)]
unlicense
C#
8cc3bef52a07d94b57c34e05183a298983ad842d
Create CameraUtility.cs
efruchter/UnityUtilities
CameraUtility.cs
CameraUtility.cs
public class static CameraUtility { // Generate a projection matrix such that the near clip plane is aligned with an arbitrary transform. protected static Matrix4x4 GetObliqueMatrix(this Camera inPortalCamera, Transform inClipPlane) { Vector4 clipPlaneWorldSpace = new Vector4(inClipPlane.forward.x, inClipPl...
mit
C#
564782786ea85143fc55b0487c720493ed7182b1
Add lost files
B1naryStudio/Azimuth,B1naryStudio/Azimuth
Azimuth/Infrastructure/UserCredential.cs
Azimuth/Infrastructure/UserCredential.cs
namespace Azimuth.Infrastructure { public class UserCredential { public string SocialNetworkId { get; set; } public string SocialNetworkName { get; set; } public string AccessToken { get; set; } public string AccessTokenSecret { get; set; } public string AccessTokenE...
mit
C#
e624a8964af3cc26f7a9536126dd932a3bc0fda6
add ExceptionTest
shimat/opencvsharp,shimat/opencvsharp,shimat/opencvsharp
test/OpenCvSharp.Tests/ExceptionTest.cs
test/OpenCvSharp.Tests/ExceptionTest.cs
using System; using Xunit; namespace OpenCvSharp.Tests { // ReSharper disable InconsistentNaming public class ExceptionTest : TestBase { [Fact] public void RedirectError() { using var img = new Mat(3, 3, MatType.CV_8UC1); var ex = Assert.Throws<OpenCVE...
apache-2.0
C#
056faefc8ec5df32be8605903bac4e08f4ed3177
Add basic Mime
ViveportSoftware/vita_core_csharp,ViveportSoftware/vita_core_csharp
source/Htc.Vita.Core/Net/Mime.cs
source/Htc.Vita.Core/Net/Mime.cs
using System.ComponentModel; namespace Htc.Vita.Core.Net { /// <summary> /// Class Mime. /// </summary> public static class Mime { /// <summary> /// Enum ContentType /// </summary> public enum ContentType { /// <summary> /// applicatio...
mit
C#
952c975b0499e3c07c68c1c84d6af3f097875df3
add staticticController
Eskat0n/Wotstat,Eskat0n/Wotstat,Eskat0n/Wotstat
sources/Wotstat.Application/Statistics/StatisticController.cs
sources/Wotstat.Application/Statistics/StatisticController.cs
namespace Wotstat.Application.Statistics { using System.Web.Mvc; public class StatisticController : Controller { public ActionResult Index() { return View(); } } }
mit
C#
52165289fe0bba9fa5e47cff06aad74e4ff7e2bd
Add SubdirectoryHandler for injecting a subdirectory into gRPC calls (#882)
grpc/grpc-dotnet,grpc/grpc-dotnet,grpc/grpc-dotnet,grpc/grpc-dotnet
test/Grpc.Net.Client.Tests/SubdirectoryHandlerTests.cs
test/Grpc.Net.Client.Tests/SubdirectoryHandlerTests.cs
#region Copyright notice and license // Copyright 2019 The gRPC Authors // // 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...
apache-2.0
C#
1ed09020114be0a074df2ee90b35711cd5df5cc8
Update bot builder assembly version
dr-em/BotBuilder,mmatkow/BotBuilder,Clairety/ConnectMe,mmatkow/BotBuilder,msft-shahins/BotBuilder,stevengum97/BotBuilder,Clairety/ConnectMe,xiangyan99/BotBuilder,yakumo/BotBuilder,msft-shahins/BotBuilder,xiangyan99/BotBuilder,stevengum97/BotBuilder,msft-shahins/BotBuilder,yakumo/BotBuilder,msft-shahins/BotBuilder,mmatk...
CSharp/Library/Properties/AssemblyInfo.cs
CSharp/Library/Properties/AssemblyInfo.cs
using System.Resources; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembl...
using System.Resources; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembl...
mit
C#
61f0a2417ceb5ff623682b86360413e4fcdaabd3
Update Encouragements.cs
paritoshmmmec/Encourage,Haacked/Encourage
EncouragePackage/Encouragements.cs
EncouragePackage/Encouragements.cs
using System; using System.Collections.Generic; using System.ComponentModel.Composition; namespace Haack.Encourage { [Export(typeof(IEncouragements))] public class Encouragements : IEncouragements { static readonly Random random = new Random(); readonly List<string> encouragements = new Li...
using System; using System.Collections.Generic; using System.ComponentModel.Composition; namespace Haack.Encourage { [Export(typeof(IEncouragements))] public class Encouragements : IEncouragements { static readonly Random random = new Random(); readonly List<string> encouragements = new Li...
mit
C#
da81741c9340d283e95c29fe54eef78969e9fb0f
Update version for next release
adamcaudill/libsodium-net,deckar01/libsodium-net,bitbeans/libsodium-net,bitbeans/libsodium-net,fraga/libsodium-net,tabrath/libsodium-core,fraga/libsodium-net,adamcaudill/libsodium-net,BurningEnlightenment/libsodium-net,BurningEnlightenment/libsodium-net,deckar01/libsodium-net
libsodium-net/Properties/AssemblyInfo.cs
libsodium-net/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("li...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("li...
mit
C#
e9c69dc5c3d00fb40d628771e8879cff23eaa4c1
add CompressionOption
JesseQin/npoi,akrisiun/npoi,antony-liu/npoi,xl1/npoi,stuartwmurray/npoi,Yijtx/npoi,jcridev/npoi,vinod1988/npoi,tkalubi/npoi-1,tonyqus/npoi
ooxml/openxml4Net/OPC/CompressionOption.cs
ooxml/openxml4Net/OPC/CompressionOption.cs
using System; using System.Collections.Generic; using System.Text; using ICSharpCode.SharpZipLib.Zip.Compression; namespace NPOI.OpenXml4Net.OPC { public enum CompressionOption : int { Fast = Deflater.BEST_SPEED, Maximum = Deflater.BEST_COMPRESSION, Normal = Deflater.DEFAULT...
apache-2.0
C#
ce8ea1245b27795b20826ae61044b770c422c65f
Add smoke tests for settings.
nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke
source/Nuke.Common.Tests/SettingsTest.cs
source/Nuke.Common.Tests/SettingsTest.cs
// Copyright Matthias Koch 2017. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE using System; using System.IO; using System.Linq; using FluentAssertions; using Nuke.Common.Tools.MSBuild; using Nuke.Common.Tools.OpenCover; using Nuke.Common.Tools.Xunit2; using Nuke.Core....
mit
C#
994ff5a6f352e5dd0432eab46db926420261d7ff
Create /Models/DatabaseModels/Teacher Class.
Programazing/Open-School-Library,Programazing/Open-School-Library
src/Open-School-Library/Models/DatabaseModels/Teacher.cs
src/Open-School-Library/Models/DatabaseModels/Teacher.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Open_School_Library.Models.DatabaseModels { public class Teacher { public int TeacherID { get; set; } public string FirstName { get; set; } public string LastName { get; set; } ...
mit
C#
b633960614030aa8c53f2976b64bd7a6491c7d10
Create Common.cs
zelbo/Number-Guessing
Common.cs
Common.cs
namespace NumberGuessing { public enum GameState { Initialize, Guess, Win, Lose, Exit } public enum Difficulty { Low = 1, Medium = 10, High = 100 } public enum Rating { Correct = 0, Close = 2, Off = 4, WayOff = 5 } public enum MyKeys { Escape, Enter, NumberKey_1, NumberKey_2, Number...
mit
C#
94f43a4338b1b86d9a56893501548cee76ef4420
Switch over setup commands from using query class
ZocDoc/ZocMon,modulexcite/ZocMon,ZocDoc/ZocMon,modulexcite/ZocMon,modulexcite/ZocMon,ZocDoc/ZocMon
ZocMon/ZocMon/ZocMonLib/Framework/StorageCommandsSetupSqlServer.cs
ZocMon/ZocMon/ZocMonLib/Framework/StorageCommandsSetupSqlServer.cs
using System; using System.Collections.Generic; using System.Data; using System.Text; using ZocMonLib; namespace ZocMonLib { public class StorageCommandsSetupSqlServer : IStorageCommandsSetup { public virtual IEnumerable<ReduceLevel> SelectAllReduceLevels(IDbConnection conn) { const...
using System; using System.Collections.Generic; using System.Data; using System.Text; using ZocMonLib; namespace ZocMonLib { public class StorageCommandsSetupSqlServer : IStorageCommandsSetup { public virtual IEnumerable<ReduceLevel> SelectAllReduceLevels(IDbConnection conn) { retur...
apache-2.0
C#
bf36eb9d98892631372604291deb822decc6d6cd
Add code for wrapping synchronous code in a task. #108
StephenCleary/AsyncEx
src/Nito.AsyncEx.Tasks/TaskHelper.cs
src/Nito.AsyncEx.Tasks/TaskHelper.cs
using System; using System.Threading.Tasks; namespace Nito.AsyncEx { /// <summary> /// Helper methods for working with tasks. /// </summary> public static class TaskHelper { /// <summary> /// Executes a delegate synchronously, and captures its result in a task. The returned task is...
mit
C#
afaf4fa343c32e6b3cf4aadb56329bdad156f68a
Create GuidoOliveira.cs
planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell
src/Firehose.Web/Authors/GuidoOliveira.cs
src/Firehose.Web/Authors/GuidoOliveira.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 GuidoOliveira : IAmAMicrosoftMVP { public string FirstName => "Guido"; public string LastN...
mit
C#
d770631fe0ecac9389c183ea183b43f7f496bec0
Use public Result.ValueComparer rather than internal equality comparer instance.
Rolstenhouse/sarif-sdk,kschecht/sarif-sdk,kschecht/sarif-sdk,kschecht/sarif-sdk,kschecht/sarif-sdk,kschecht/sarif-sdk,kschecht/sarif-sdk,Rolstenhouse/sarif-sdk,Rolstenhouse/sarif-sdk,Rolstenhouse/sarif-sdk,kschecht/sarif-sdk,Rolstenhouse/sarif-sdk,Rolstenhouse/sarif-sdk,Rolstenhouse/sarif-sdk
src/Sarif/Readers/ResultDiffingVisitor.cs
src/Sarif/Readers/ResultDiffingVisitor.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.Collections.Generic; namespace Microsoft.CodeAnalysis.Sarif.Readers { public class ResultDiffingVisitor : SarifRewritingVisitor { public ...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Collections.Generic; namespace Microsoft.CodeAnalysis.Sarif.Readers { public class ResultDiffingVisitor : SarifRewritingVisitor { public ...
mit
C#
917dba7b4220965f5f05424a45b0d3916f3ce814
Add missing file for ping command test.
qhris/DiabloSpeech,qhris/DiabloSpeech
tests/Twitch/PingCommandProcessorTest.cs
tests/Twitch/PingCommandProcessorTest.cs
using DiabloSpeech.Business.Twitch; using DiabloSpeech.Business.Twitch.Processors; using NUnit.Framework; using tests.Twitch.Mocks; namespace tests.Twitch { public class PingCommandProcessorTest { PingCommandProcessor processor; TwitchConnectionMock connection; TwitchMessageData Messa...
mit
C#
93ffd49f65fe60b213c027d68a6be7b24f024ed5
Add the missing IProvider.
Deathspike/mangarack.cs,Deathspike/mangarack.cs
MangaRack.Provider/Interfaces/IProvider.cs
MangaRack.Provider/Interfaces/IProvider.cs
// ====================================================================== // This source code form is subject to the terms of the Mozilla Public // License, version 2.0. If a copy of the MPL was not distributed with // this file, you can obtain one at http://mozilla.org/MPL/2.0/. // ==================================...
mpl-2.0
C#
c4a44140299bdd60dbf941682d710e26b8797c70
Add utilities to convert from C# to Lua types
taylor001/crown,dbartolini/crown,taylor001/crown,taylor001/crown,dbartolini/crown,galek/crown,mikymod/crown,galek/crown,mikymod/crown,dbartolini/crown,taylor001/crown,mikymod/crown,dbartolini/crown,galek/crown,galek/crown,mikymod/crown
tools/core/Lua.cs
tools/core/Lua.cs
/* * Copyright (c) 2012-2016 Daniele Bartolini and individual contributors. * License: https://github.com/taylor001/crown/blob/master/LICENSE */ using System; namespace Crown { /// <summary> /// Functions to encode C# types to Lua. /// </summary> public static class Lua { public static string FromBool(bool...
mit
C#
cdc9fcd45dbc3c4f9dedf97894864b426f6b3d05
Add bindings for CapsFilter
gstreamer-sharp/gstreamer-sharp,GStreamer/gstreamer-sharp,gstreamer-sharp/gstreamer-sharp,GStreamer/gstreamer-sharp,gstreamer-sharp/gstreamer-sharp,Forage/gstreamer-sharp,freedesktop-unofficial-mirror/gstreamer__gstreamer-sharp,freedesktop-unofficial-mirror/gstreamer__gstreamer-sharp,Forage/gstreamer-sharp,freedesktop-...
gstreamer-sharp/coreplugins/CapsFilter.cs
gstreamer-sharp/coreplugins/CapsFilter.cs
// // CapsFilter.cs: capsfilter element bindings // // Authors: // Maarten Bosmans <mkbosmans@gmail.com> // using System; namespace Gst.CorePlugins { [GTypeName("GstCapsFilter")] public class CapsFilter : Element { public CapsFilter(IntPtr raw) : base(raw) { } ...
lgpl-2.1
C#
02b79907a5cddf9ff9e4da72777392640b7a0f39
Add test covering ThreadedTaskScheduler shutdown
EVAST9919/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,smoogipooo/osu-framework
osu.Framework.Tests/Threading/ThreadedTaskSchedulerTest.cs
osu.Framework.Tests/Threading/ThreadedTaskSchedulerTest.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Threading; using System.Threading.Tasks; using NUnit.Framework; using osu.Framework.Threading; namespace osu.Framework.Tests.Threading { [TestFixture] ...
mit
C#
07ebeeed66f1132907adc6840872d9d8ba9ee688
Add debug utilities to sleep-wait and busy-wait for a given duration
virtuallynaked/virtually-naked,virtuallynaked/virtually-naked
Viewer/src/common/DebugUtilities.cs
Viewer/src/common/DebugUtilities.cs
using System.Diagnostics; using System.Threading; static class DebugUtilities { public static void Burn(long ms) { Stopwatch stopwatch = Stopwatch.StartNew(); while (stopwatch.ElapsedMilliseconds < ms) { } } public static void Sleep(long ms) { Stopwatch stopwatch = Stopwatch.StartNew(); while (stopwatch...
mit
C#
368a979173ea7002a16c9d9812e5e40fcd189603
Add test coverage
ppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,peppy/osu-framework
osu.Framework.Tests/Audio/SampleBassTest.cs
osu.Framework.Tests/Audio/SampleBassTest.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#
900ca7912c34270187d56cd6478454083f1d5b98
Create GenreIndexViewModel.
Programazing/Open-School-Library,Programazing/Open-School-Library
src/Open-School-Library/Models/GenreViewModels/GenreIndexViewModel.cs
src/Open-School-Library/Models/GenreViewModels/GenreIndexViewModel.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Open_School_Library.Models.GenreViewModels { public class GenreIndexViewModel { public int GenreId { get; set; } public string Name { get; set; } } }
mit
C#
64049f2d0b3d17a7d7a662c0b20d55c3059c6337
Add missing FileComponent.cs file
Drenn1/LynnaLab,Drenn1/LynnaLab
LynnaLab/Core/FileComponent.cs
LynnaLab/Core/FileComponent.cs
using System; using System.Drawing; using System.Collections.Generic; namespace LynnaLab { public abstract class FileComponent { protected List<int> spacing; public bool EndsLine {get; set;} // True if a newline comes after this data // True if it's an internally-made object, not to be w...
mit
C#
b97039970111ba4a5d6c6282525aa38255701fb0
Add message type to blob trigger.
brendankowitz/azure-webjobs-sdk,vasanthangel4/azure-webjobs-sdk,shrishrirang/azure-webjobs-sdk,brendankowitz/azure-webjobs-sdk,Azure/azure-webjobs-sdk,shrishrirang/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,Azure/azure-webjobs-sdk,oliver-feng/azure-webjobs-sdk,oaastest/azure-webjobs-sdk,oaastest/azure-webjobs-sdk,gibwa...
src/Microsoft.Azure.WebJobs.Host/Blobs/Listeners/BlobTriggerMessage.cs
src/Microsoft.Azure.WebJobs.Host/Blobs/Listeners/BlobTriggerMessage.cs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.WindowsAzure.Storage.Blob; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Microsoft.Azure.WebJobs...
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.WindowsAzure.Storage.Blob; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Microsoft.Azure.WebJobs...
mit
C#
ba60264f03caf71c68b7a26f58db314439973ad6
Create ServiceCollectionExtensions.cs
tiksn/TIKSN-Framework
TIKSN.Framework.Core/DependencyInjection/ServiceCollectionExtensions.cs
TIKSN.Framework.Core/DependencyInjection/ServiceCollectionExtensions.cs
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using TIKSN.FileSystem; namespace TIKSN.DependencyInjection { public static class ServiceCollectionExtensions { public static IServiceCollection AddFrameworkPlatform(this IServiceCollection servi...
mit
C#
2133a19c513f679c54c49b2a7c5ddee87ad29f28
Add StreamTextSource2
StevenLiekens/TextFx,StevenLiekens/Txt
src/Txt.Core/StreamTextSource2.cs
src/Txt.Core/StreamTextSource2.cs
using System; using System.IO; using System.Text; using JetBrains.Annotations; namespace Txt.Core { public class StreamTextSource2 : TextSource2 { private readonly BinaryReader reader; private bool disposed; public StreamTextSource2([NotNull] Stream input, int capacity = 2048) ...
mit
C#
6715b81fd039e4c8d2b0f937b1383d16296f83ca
Enable Get Element Property tests in Edge
asashour/selenium,asolntsev/selenium,Ardesco/selenium,asashour/selenium,joshmgrant/selenium,valfirst/selenium,5hawnknight/selenium,joshbruning/selenium,chrisblock/selenium,joshbruning/selenium,SeleniumHQ/selenium,Dude-X/selenium,valfirst/selenium,lmtierney/selenium,SeleniumHQ/selenium,joshmgrant/selenium,SeleniumHQ/sel...
dotnet/test/common/ElementPropertyTest.cs
dotnet/test/common/ElementPropertyTest.cs
using System; using System.Collections.Generic; using NUnit.Framework; using System.Collections.ObjectModel; using OpenQA.Selenium.Environment; namespace OpenQA.Selenium { [TestFixture] public class ElementPropertyTest : DriverTestFixture { [Test] [IgnoreBrowser(Browser.Chrome, "Chrome does...
using System; using System.Collections.Generic; using NUnit.Framework; using System.Collections.ObjectModel; using OpenQA.Selenium.Environment; namespace OpenQA.Selenium { [TestFixture] public class ElementPropertyTest : DriverTestFixture { [Test] [IgnoreBrowser(Browser.Edge)] [Igno...
apache-2.0
C#
7df4b0c5b0f216fa43a83efc164e93c7ae0d1303
Fix merge issues
MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,AlexanderS...
src/Package/Impl/Sql/Commands/PublishSProcOptionsCommand.cs
src/Package/Impl/Sql/Commands/PublishSProcOptionsCommand.cs
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.Collections.Immutable; using System.ComponentModel.Composition; using Microsoft.VisualStudio.ProjectSystem; using Microsoft.VisualStudio.R...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.Collections.Immutable; using System.ComponentModel.Composition; using Microsoft.VisualStudio.ProjectSystem; using Microsoft.VisualStudio.R...
mit
C#
f98e96e45b22b3b34e56543f2249d43e62585d5f
Add osu!-specific enum for confine mouse mode
UselessToucan/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu-new,smoogipooo/osu,ppy/osu,peppy/osu,UselessToucan/osu,ppy/osu,ppy/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu
osu.Game/Input/OsuConfineMouseMode.cs
osu.Game/Input/OsuConfineMouseMode.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.ComponentModel; using osu.Framework.Input; namespace osu.Game.Input { /// <summary> /// Determines the situations in which the mouse cursor should b...
mit
C#
ccc45ad1f629686e757afe27f7839d864a6462a1
Add encoding types
coolya/logv.http
SimpleHttpServerExtensions/EncodingType.cs
SimpleHttpServerExtensions/EncodingType.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SimpleHttpServer { public enum EncodingType { Plain, Deflate, Gzip } }
apache-2.0
C#
eb665426c9ee5ba1d844c872482690ffec27923c
Change mobile client to use DefaultsController instead of GetwayController
azure-appservice-samples/ContosoMoments,azure-appservice-samples/ContosoMoments,azure-appservice-samples/ContosoMoments,lindydonna/ContosoMoments,azure-appservice-samples/ContosoMoments,azure-appservice-samples/ContosoMoments,lindydonna/ContosoMoments,lindydonna/ContosoMoments,lindydonna/ContosoMoments,lindydonna/Conto...
src/Mobile/ContosoMoments/Helpers/Utils.cs
src/Mobile/ContosoMoments/Helpers/Utils.cs
using System.Threading.Tasks; using ContosoMoments.Models; using Xamarin.Forms; using System; namespace ContosoMoments { public class ResizeRequest { public string Id { get; set; } public string BlobName { get; set; } } public class ActivityIndicatorScope : IDisposable { p...
using System.Threading.Tasks; using ContosoMoments.Models; using Xamarin.Forms; using System; namespace ContosoMoments { public class ResizeRequest { public string Id { get; set; } public string BlobName { get; set; } } public class ActivityIndicatorScope : IDisposable { p...
mit
C#
49790a4b93b6c76a87afd235972d4019b4eeb42b
Add design-time generated proxy for C# tests
Moq/moq
test/Moq.Tests/Proxies/ICalculatorProxy.cs
test/Moq.Tests/Proxies/ICalculatorProxy.cs
using Moq.Proxy; using System; using System.Collections.Generic; using System.Reflection; using System.Runtime.CompilerServices; using System.Threading; using Moq.Sdk; namespace Proxies { [CompilerGenerated] public partial class ICalculatorProxy : ICalculator, IProxy, IMocked { public int? this[st...
apache-2.0
C#
76d51b5f002bf7d7dbe3849a4807db6fa239b6eb
Add example to get the Log of a source field.
JoePlant/Ampla-Code-Items
Custom/LogFieldRecordUpdater.cs
Custom/LogFieldRecordUpdater.cs
using Code.Records; namespace Code.Custom { /// <summary> /// Record Updater that will calculate the log of the source field. /// </summary> /// <example> /// // handle the record changed event /// new Code.Custom.LogFieldRecordUpdater("Source Field", "Log Field").HandleRecordChang...
mit
C#
6c2520f3352c1f28e1ef28fe3e0b2df00a979578
Make DB flush operation atomic for NTFS
tkellogg/Jump-Location,drmohundro/Jump-Location,drmohundro/Jump-Location
Jump.Location/FileStoreProvider.cs
Jump.Location/FileStoreProvider.cs
using System; using System.IO; using System.Linq; namespace Jump.Location { public interface IFileStoreProvider { void Save(IDatabase database); IDatabase Revive(); DateTime LastChangedDate { get; } } public class FileStoreUpdatedEventArgs : EventArgs { public File...
using System; using System.IO; using System.Linq; namespace Jump.Location { public interface IFileStoreProvider { void Save(IDatabase database); IDatabase Revive(); DateTime LastChangedDate { get; } } public class FileStoreUpdatedEventArgs : EventArgs { public File...
mit
C#
c44d969bb6f62771f16a1126f297fdf6ae41005a
Create TinyMCE.cs
base33/Mentor-Web-Blocks,DaveGreasley/Mentor-Web-Blocks,DaveGreasley/Mentor-Web-Blocks,base33/Mentor-Web-Blocks,DaveGreasley/Mentor-Web-Blocks,base33/Mentor-Web-Blocks,base33/Mentor-Web-Blocks
WebBlocks/WebBlocks/Helpers/TinyMCE.cs
WebBlocks/WebBlocks/Helpers/TinyMCE.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Collections; namespace WebBlocks.Helpers { public class TinyMCE { public string ReplaceMacroTags(string text) { while (FindStartTag(text) > -1) { string resu...
mit
C#
3d1b2a7fce893dac365887a8a0d73de5443b694c
Add a new parameter to hold all science collection sub-params
Kerbas-ad-astra/Orbital-Science,DMagic1/Orbital-Science
Source/Parameters/DMCompleteParameter.cs
Source/Parameters/DMCompleteParameter.cs
#region license /* DMagic Orbital Science - DMCompleteParameter * Parameter To Hold Science Collection Sub-Parameters * * Copyright (c) 2014, David Grandy <david.grandy@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provid...
bsd-3-clause
C#
0845069a2ccdcb66b3b6e35f8e6ef036e6a021ef
Implement unit test for boyer moore
cschen1205/cs-algorithms,cschen1205/cs-algorithms
cs-algorithms/Strings/Search/BoyerMoore.cs
cs-algorithms/Strings/Search/BoyerMoore.cs
using System; namespace Algorithms.Strings.Search { public class BoyerMoore { private int[] right; private const int R = 256; private int M; private string pat; public BoyerMoore(string pat) { this.pat = pat; right = new int[R]; ...
mit
C#
49af142f478da2a94f02da62581257d64895348f
Create AssemblyInfo.cs
Zedohsix/SharpFind
SharpFind/Properties/AssemblyInfo.cs
SharpFind/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("#Fi...
mit
C#
d57bbca0cf3907bf5952a3f668c75783f7f35af6
create unit test for CalculateLevenshteinDistance
takenet/blip-sdk-csharp
src/Take.Blip.Builder.UnitTests/Models/StringExtensionsTests.cs
src/Take.Blip.Builder.UnitTests/Models/StringExtensionsTests.cs
using Take.Blip.Builder.Models; using Xunit; namespace Take.Blip.Builder.UnitTests.Models { public class StringExtensionsTests { /// <summary> /// Test cases get from HackerRank: https://www.hackerrank.com/contests/cse-830-homework-3/challenges/edit-distance /// </summary> [The...
apache-2.0
C#
56d866bc8e7105893493f62c4c3aa1c51d058153
Add CustomAggregateTimings sample
MiniProfiler/dotnet,MiniProfiler/dotnet
samples/Misc/CustomAggregateTimings.cs
samples/Misc/CustomAggregateTimings.cs
using System; using System.Collections.Generic; using System.Text; using System.Threading; using StackExchange.Profiling; namespace Misc { public class CustomAggregateTimings { public void Example() { var profiler = MiniProfiler.StartNew(); var myList = new List<string...
mit
C#
67b417f1cc67b9300be43d017ec0f1937f641d8b
Add files via upload
alchemz/ARL_Training
recursive/Fragment.cs
recursive/Fragment.cs
using UnityEngine; using System.Collections; public class Fragment : MonoBehaviour { public Mesh mesh; public Material material; private int depth; public int maxDepth; public float childScale; void Start(){ gameObject.AddComponent<MeshFilter> ().mesh = mesh; gameObject.AddComponent<MeshRenderer>().material...
mit
C#
a81fe225f50db13388b04cc7c393f52078743e33
Fix Android build by adding missing namespace.
jbruening/lidgren-network-gen3,dragutux/lidgren-network-gen3,PowerOfCode/lidgren-network-gen3,lidgren/lidgren-network-gen3,SacWebDeveloper/lidgren-network-gen3,forestrf/lidgren-network-gen3,RainsSoft/lidgren-network-gen3
Lidgren.Network/Platform/PlatformAndroid.cs
Lidgren.Network/Platform/PlatformAndroid.cs
#if __ANDROID__ using System; using System.Collections.Generic; using System.Security.Cryptography; using System.Net; namespace Lidgren.Network { public static partial class NetUtility { private static byte[] s_randomMacBytes; static NetUtility() { s_randomMacBytes = new byte[8]; MWCRandom.Instance.N...
#if __ANDROID__ using System; using System.Collections.Generic; using System.Net; namespace Lidgren.Network { public static partial class NetUtility { private static byte[] s_randomMacBytes; static NetUtility() { s_randomMacBytes = new byte[8]; MWCRandom.Instance.NextBytes(s_randomMacBytes); } [...
mit
C#
f2c8687296cda5da6da3f3de2169f08749e2be1c
Active QEP for nullables.
chtoucas/Narvalo.NET,chtoucas/Narvalo.NET
src/Narvalo.Fx/Applicative/Qullable.cs
src/Narvalo.Fx/Applicative/Qullable.cs
// Copyright (c) Narvalo.Org. All rights reserved. See LICENSE.txt in the project root for license information. namespace Narvalo.Applicative { using System; using Narvalo; // Query Expression Pattern for nullables. public static class Qullable { public static TResult? Select<TSource, TR...
bsd-2-clause
C#
fbfd0f22d31ad06e9f4a1aa3372c1bdd911fb0bd
Update IOExceptionExtensions.cs
REALTOBIZ/LiteDB,prepare/LiteDB,mbdavid/LiteDB,Skysper/LiteDB,89sos98/LiteDB,icelty/LiteDB,falahati/LiteDB,masterdidoo/LiteDB,prepare/LiteDB,RytisLT/LiteDB,masterdidoo/LiteDB,89sos98/LiteDB,prepare/LiteDB,prepare/LiteDB,RytisLT/LiteDB,falahati/LiteDB,Xicy/LiteDB,guslubudus/LiteDB,tbdbj/LiteDB,kbdavis07/LiteDB
LiteDB/Utils/IOExceptionExtensions.cs
LiteDB/Utils/IOExceptionExtensions.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading; namespace LiteDB { internal static class IOExceptionExtensions { const int ERROR_SHARING_VIOLATION = 32; const int ERROR_LOCK_VIO...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading; namespace LiteDB { internal static class IOExceptionExtensions { const int ERROR_SHARING_VIOLATION = 32; const int ERROR_LOCK_VIO...
mit
C#
744b8f3c8324376148035dbc22c7ec7a434e275e
Monitor plugin interface
a1ezzz/duplicati,a1ezzz/duplicati,duplicati/duplicati,AndersGron/duplicati,klammbueddel/duplicati,klammbueddel/duplicati,gerco/duplicati,gerco/duplicati,AndersGron/duplicati,agrajaghh/duplicati,AndersGron/duplicati,sitofabi/duplicati,mnaiman/duplicati,gerco/duplicati,sitofabi/duplicati,sitofabi/duplicati,sitofabi/dupli...
Duplicati/Scheduler/Data/IMonitorPlugin.cs
Duplicati/Scheduler/Data/IMonitorPlugin.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Duplicati.Scheduler.Data { /// <summary> /// Plugin interface maintains the monitor data /// </summary> public interface IMonitorPlugin { /// <summary> /// Unique name of th...
lgpl-2.1
C#
176f277778c3370304cc8ff6fed051fcd49f1381
add missing files
mispencer/OmniSharpServer,corngood/omnisharp-server,syl20bnr/omnisharp-server,syl20bnr/omnisharp-server,OmniSharp/omnisharp-server,svermeulen/omnisharp-server,corngood/omnisharp-server,x335/omnisharp-server,x335/omnisharp-server
OmniSharp/Configuration/PathReplacement.cs
OmniSharp/Configuration/PathReplacement.cs
using System.Collections.Generic; using System.IO; using System.Reflection; namespace OmniSharp.Configuration { public class ConfigurationLoader { private static OmniSharpConfiguration _config = new OmniSharpConfiguration(); public static void Load() { string executableLoca...
mit
C#
fb9d151491c55fa94635628e69385026529f799a
introduce the new SemVersionRange class
maxhauser/semver
Semver/Ranges/SemVersionRange.cs
Semver/Ranges/SemVersionRange.cs
namespace Semver.Ranges { /// <summary> /// A range of <see cref="SemVersion"/> values. A range can have gaps in it and may include only /// some prerelease versions between included release versions. For a range that cannot have /// gaps see the <see cref="UnbrokenSemVersionRange"/> class. /...
mit
C#
bc177477cbb9f08a39481814339f09fbe0180a69
Make the BuiltinThis test clearer
sander-git/JSIL,sq/JSIL,acourtney2015/JSIL,TukekeSoft/JSIL,Trattpingvin/JSIL,Trattpingvin/JSIL,hach-que/JSIL,FUSEEProjectTeam/JSIL,hach-que/JSIL,FUSEEProjectTeam/JSIL,sander-git/JSIL,mispy/JSIL,dmirmilshteyn/JSIL,acourtney2015/JSIL,volkd/JSIL,mispy/JSIL,antiufo/JSIL,dmirmilshteyn/JSIL,TukekeSoft/JSIL,acourtney2015/JSIL...
Tests/SpecialTestCases/IndexBuiltinByName.cs
Tests/SpecialTestCases/IndexBuiltinByName.cs
using System; using JSIL; public static class Program { public static void Main (string[] args) { const string pri = "pri"; string nt = "nt"; var p = Builtins.Global[pri + nt]; if (p != null) p("printed"); if (Builtins.Local["p"] != null) Builtins...
using System; using JSIL; public static class Program { public static void Main (string[] args) { var print = Builtins.Global["pr" + "int"]; if (print != null) print("printed"); if (Builtins.Local["print"] != null) Builtins.Local["print"]("printed again"); ...
mit
C#
c29e173a3816a36f7793a82e437dca0667f43a06
Add Q260
txchen/csharp-leet,txchen/csharp-leet
solutions/Q260.cs
solutions/Q260.cs
public class Solution { public int[] SingleNumber(int[] nums) { int xor = 0; nums.ToList().ForEach(n => xor = xor ^ n); // xor = a ^ b, find any '1' in the xor int mask = 1; while ((mask & xor) == 0) { mask = mask << 1; } // a or b, one...
mit
C#
67383e220f2592fe0aa9577eff528c54782aea6e
add custom attribute for Username validation
KristianMariyanov/VotingSystem,KristianMariyanov/VotingSystem,KristianMariyanov/VotingSystem
VotingSystem.Web/Infrastructure/Filters/UserNameAllowedSymbolsAtribute.cs
VotingSystem.Web/Infrastructure/Filters/UserNameAllowedSymbolsAtribute.cs
namespace VotingSystem.Web.Infrastructure.Filters { using System; using System.ComponentModel.DataAnnotations; [AttributeUsage(AttributeTargets.Property)] public sealed class UserNameAllowedSymbolsAttribute : ValidationAttribute { private const string AllowedCharacters = "ABCDEFGHI...
mit
C#
e7dceac15949d1ccf8cec1933c0f721dc7c70c5f
Add ingest object
Aux/NTwitch,Aux/NTwitch
src/NTwitch.Core/Entities/Ingests/IIngest.cs
src/NTwitch.Core/Entities/Ingests/IIngest.cs
namespace NTwitch { public interface IIngest : IEntity { double Availability { get; } bool IsDefault { get; } string Name { get; } string UrlTemplate { get; } } }
mit
C#
e8a2d29b565ffc6525a1432d1a01d629f1ca3c2f
Add Default SponsorsViewModel
jamesmontemagno/code-camp-app
CodeCamp/ViewModels/SponsorsViewModel.cs
CodeCamp/ViewModels/SponsorsViewModel.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CodeCamp.ViewModels { class SponsorsViewModel { } }
mit
C#
a8dc93c4bdb5b1534826cba7cf5c3531730c96c6
Add more element types
Arthur2e5/dnlib,yck1509/dnlib,0xd4d/dnlib,modulexcite/dnlib,ilkerhalil/dnlib,jorik041/dnlib,ZixiangBoy/dnlib,kiootic/dnlib,picrap/dnlib
dot10/dotNET/ElementType.cs
dot10/dotNET/ElementType.cs
namespace dot10.dotNET { /// <summary> /// See CorHdr.h/CorElementType /// </summary> public enum ElementType : byte { /// <summary></summary> End = 0x00, /// <summary>System.Void</summary> Void = 0x01, /// <summary>System.Boolean</summary> Boolean = 0x02, /// <summary>System.Char</summary> Cha...
namespace dot10.dotNET { /// <summary> /// See CorHdr.h/CorElementType /// </summary> public enum ElementType : byte { /// <summary></summary> End = 0x00, /// <summary>System.Void</summary> Void = 0x01, /// <summary>System.Boolean</summary> Boolean = 0x02, /// <summary>System.Char</summary> Cha...
mit
C#
d3bc50bb30080cc4e8963eb060738b571d5f5d2d
Rename class.
ExRam/ExRam.Gremlinq
src/ExRam.Gremlinq.Providers.WebSocket.AspNet/WebSocketConfiguratorExtensions.cs
src/ExRam.Gremlinq.Providers.WebSocket.AspNet/WebSocketConfiguratorExtensions.cs
using System; using ExRam.Gremlinq.Providers.WebSocket; using Gremlin.Net.Driver; using Microsoft.Extensions.Configuration; namespace ExRam.Gremlinq.Core.AspNet { public static class WebSocketConfiguratorExtensions { public static IWebSocketConfigurator Configure( this IWebSocketConfigurat...
mit
C#
c313eb143ffa9aa22db7713e946c6fd4d5d50bd5
test proving that [SetterProperty] works in CoreCLR from base classes. Closes GH-490
DixonD-git/structuremap,DixonDs/structuremap,DixonDs/structuremap,khellang/structuremap,khellang/structuremap,DixonD-git/structuremap,DixonD-git/structuremap,DixonD-git/structuremap
src/StructureMap.Testing/Bugs/Bug_490_SetterProperty_in_CoreCLR_from_inherited_base.cs
src/StructureMap.Testing/Bugs/Bug_490_SetterProperty_in_CoreCLR_from_inherited_base.cs
using StructureMap.Attributes; using Xunit; namespace StructureMap.Testing.Bugs { public class Bug_490_SetterProperty_in_CoreCLR_from_inherited_base { private Container container; public Bug_490_SetterProperty_in_CoreCLR_from_inherited_base() { container = new Container(_ ...
apache-2.0
C#
00b3fad6d38e6761db697ad58a02ee780796ad7c
Add tests
EVAST9919/osu-framework,ppy/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,Tom94/osu-framework,ZLima12/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,Tom94/osu-framework,peppy/osu-framework,DrabWeb/osu-framework,EVAST9919/osu-framew...
osu.Framework.Tests/IO/TestDesktopStorage.cs
osu.Framework.Tests/IO/TestDesktopStorage.cs
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using System.IO; using NUnit.Framework; using osu.Framework.Platform; namespace osu.Framework.Tests.IO { [TestFixture] public class Test...
mit
C#
268b70bac728eb46a331f3ef9aadc79aa31330fa
Add missing file
alanmcgovern/gitymcgitface
libgitface/GitClientExtensions.cs
libgitface/GitClientExtensions.cs
using System; using System.Threading.Tasks; using System.Diagnostics; namespace libgitface { public static class GitClientExtensions { public static async Task CreateAndOpenPullRequest (this GitClient client, string branchName, string titleText, string bodyText, bool openPrInBrowser = true) { var prUrl = awa...
mit
C#
d923841de465ca83fd7ba96ef3ad3c278bb1852f
add attribute for marking components
structurizr/dotnet
Structurizr.Annotations/ComponentAttribute.cs
Structurizr.Annotations/ComponentAttribute.cs
using System; namespace Structurizr.Annotations { /// <summary> /// Specifies that the attributed type class or interface can be considered to be a "component". /// </summary> [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, Inherited = false, AllowMultiple = false)] public sea...
apache-2.0
C#
dbfc5b20a9e8336a038c48bd2a31cb79d675becd
add missing file
india-rose/webservice-collection,india-rose/webservice-collection
WebAPI.Common/Responses/VersionResponse.cs
WebAPI.Common/Responses/VersionResponse.cs
using System; namespace WebAPI.Common.Responses { public class VersionResponse { public long Version { get; set; } public DateTime Date { get; set; } public VersionResponse() { } public VersionResponse(long version, DateTime date) { Version = version; Date = date; } } }
mit
C#
e5143f210780d9296490a5a8936ea65af29a1232
Create exemplo_lista_encadeada.cs
matheuslessarodrigues/TPJ1-3003-2017
lista-encadeada/exemplo_lista_encadeada.cs
lista-encadeada/exemplo_lista_encadeada.cs
using System; public class Player { public string name; public Player next = null; public Player( string name ) { this.name = name; } } namespace ListaEncadeada { internal class Program { private static void Main( string[] args ) { Player player1 = new Player("John"); Player player2 = new Player("...
mit
C#
43b7ea34d08b9ddc8f3cd664c37c3bd56bbe50a0
Add UuidVersion enum
AlexArchive/Validator
Validator/UuidVersion.cs
Validator/UuidVersion.cs
namespace Validator { public enum UuidVersion { Any = 0, Three = 3, Four = 4, Five = 5 } }
mit
C#
c9423f7c6c282928f26199e067453c774b6fd7a9
apply overwrite fragments (#2419)
dotnet/docfx,dotnet/docfx,dotnet/docfx,superyyrrzz/docfx,superyyrrzz/docfx,superyyrrzz/docfx
src/Microsoft.DocAsCode.Build.SchemaDriven/ApplyOverwriteFragments.cs
src/Microsoft.DocAsCode.Build.SchemaDriven/ApplyOverwriteFragments.cs
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.DocAsCode.Build.SchemaDriven { using System.Collections.Generic; using System.Composition; using System.Linq; using Microsoft.DocA...
mit
C#
2d4787f07aca3d0c7c2dd32571701d5edb403029
Reduce the size of the keys in the generics migrator. This finally fixes the long standing issue of it failing to create the table on linux sometimes. Thanks go to Hippo_Finesmith for helping find the issue with this :).
TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim
Aurora/DataManager/Migration/Migrators/Generics/GenericsMigrator_4.cs
Aurora/DataManager/Migration/Migrators/Generics/GenericsMigrator_4.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#
308ec6a491a051e029e9fd3d2ee30fa03cd080bf
add extension method for mania skin config retrieval
NeoAdonis/osu,peppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,UselessToucan/osu,smoogipooo/osu,peppy/osu-new,peppy/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,UselessToucan/osu
osu.Game.Rulesets.Mania/Skinning/ManiaSkinConfigExtensions.cs
osu.Game.Rulesets.Mania/Skinning/ManiaSkinConfigExtensions.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Bindables; using osu.Game.Skinning; namespace osu.Game.Rulesets.Mania.Skinning { public static class ManiaSkinConfigExtensions { /// ...
mit
C#
7704c8504a2e21a3d4a3e5afcfec08209801673f
Create Simple-Search.cs
DeanCabral/Code-Snippets
Console/Simple-Search.cs
Console/Simple-Search.cs
class Simple-Search { private static int numberOfElements = 0; static void Main(string[] args) { GetUserInput(); } static void GetUserInput() { Console.Write("Input Element Count: "); numberOfElements = Conve...
mit
C#
98906fa961c97baa069136fe7498b05745b85ce0
Add StatisticsController.
ZooPin/CK-Glouton,ZooPin/CK-Glouton,ZooPin/CK-Glouton,ZooPin/CK-Glouton
src/CK.Glouton.Web/Controllers/StatisticsController.cs
src/CK.Glouton.Web/Controllers/StatisticsController.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using CK.Glouton.Lucene; using Microsoft.AspNetCore.Mvc; namespace CK.Glouton.Web.Controllers { [Route("api/stats")] public class StatisticsController : Controller { LuceneStatistics luceneStatistics; ...
mit
C#
8dea191998e901c60b1867bd893bcad44c76e958
Add a testcase
smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,NeoAdonis/osu,johnneijzen/osu,EVAST9919/osu,2yangk23/osu,ZLima12/osu,smoogipoo/osu,ppy/osu,peppy/osu,UselessToucan/osu,2yangk23/osu,EVAST9919/osu,peppy/osu,smoogipooo/osu,peppy/osu,ppy/osu,ZLima12/osu,UselessToucan/osu,ppy/osu,UselessToucan/osu,johnneijzen/osu,peppy/osu-new,smo...
osu.Game.Tests/Visual/Online/TestSceneGamemodeControl.cs
osu.Game.Tests/Visual/Online/TestSceneGamemodeControl.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.MathUtils; using osu.Game.Graphics; using osu.Game.Overlays.Profile.Header.Components; ...
mit
C#
987924caab2d48cf07369439e3a61661c89ee2e8
Add datatypes for OPNsense Objects
fvanroie/PS_OPNsense
Classes/FtpProxy.cs
Classes/FtpProxy.cs
using System; using System.Management.Automation; namespace OPNsense.Ftpproxy { public class Proxy { #region Parameters public uint debuglevel { get; set; } public string description { get; set; } public bool enabled { get; set; } public uint idletimeout { get; set; } public string listenaddress { get; s...
mit
C#