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
e295d3cde84b9a18e75135f1facadbac54088c96
Define interface for a command in setup or cleanup
Seddryck/NBi,Seddryck/NBi
NBi.Core/Etl/IEtlRunCommand.cs
NBi.Core/Etl/IEtlRunCommand.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NBi.Core.Etl { public interface IEtlRunCommand: IEtl { } }
apache-2.0
C#
8b278a6df7b64ce1568edfc77373f2ef9b85ffaa
Add ImageConverter
yamachu/Mastodot
Mastodot/Utils/ImageConverter.cs
Mastodot/Utils/ImageConverter.cs
using System; using System.Linq; using System.IO; using System.Threading.Tasks; namespace Mastodot { public class ImageConverter { public static string Base64EncodedImageFromByteArray(byte[] image) { var mime = GetMime(image); // ToDo: Handling unsupported format ...
mit
C#
c88451f669b9afd499af5e5a0c8a24972c7835e9
Create ResponsePacket client side
MineLibOrg/MineLib.Core,MineLib/MineLib.Core,MineLib/MineLib.Network
Packets/Client/ResponsePacket.cs
Packets/Client/ResponsePacket.cs
using CWrapped; namespace MineLib.Network.Packets.Client { public struct ResponsePacket : IPacket { public string Response; public const byte PacketID = 0x00; public byte Id { get { return 0x00; } } public void ReadPacket(ref Wrapped stream) { Response = st...
mit
C#
36fd454869e25d95456b9e5f9989d53a8bcf80e6
Fix compilation error
Bohdan127/ArDependency,bbenetskyy/ArDependency
UniversalSolution/FormulasCollection/Realizations/ResultForForks.cs
UniversalSolution/FormulasCollection/Realizations/ResultForForks.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FormulasCollection.Realizations { public class ResultForForks { public string Event; public string Type; public string Coef; public string ...
mit
C#
252a3061eb0132dc27f68a4085582e25e0b233d0
update to uc wrapper serialization helper
marcemarc/Umbraco-CMS,markoliver288/Umbraco-CMS,tompipe/Umbraco-CMS,gkonings/Umbraco-CMS,Jeavon/Umbraco-CMS-RollbackTweak,Jeavon/Umbraco-CMS-RollbackTweak,rasmusfjord/Umbraco-CMS,gavinfaux/Umbraco-CMS,AzarinSergey/Umbraco-CMS,ordepdev/Umbraco-CMS,wtct/Umbraco-CMS,MicrosoftEdge/Umbraco-CMS,engern/Umbraco-CMS,kasperhhk/U...
components/editorControls/userControlWrapper/SerializationHelper.cs
components/editorControls/userControlWrapper/SerializationHelper.cs
using System; using System.Text; using System.Xml.Serialization; using System.IO; using System.Xml; namespace umbraco.editorControls.userControlGrapper { public class SerializationHelper { public static object ValueFromXmlString(object value, Type type) { XmlSerializer ...
using System; using System.Text; using System.Xml.Serialization; using System.IO; using System.Xml; namespace umbraco.editorControls.userControlGrapper { public class SerializationHelper { public static object ValueFromXmlString(object value, Type type) { XmlSerializer ...
mit
C#
8aff7e1d1bc1163a978b0f41f253f2bd1208d0db
Create OrbitCamera.cs
BorisMilkman/PathFinding3D
Unity3d/Scripts/Camera/OrbitCamera.cs
Unity3d/Scripts/Camera/OrbitCamera.cs
using UnityEngine; using System.Collections; public class OrbitCamera : MonoBehaviour { public Transform _target; public float _distance = 20.0f; public float _zoomStep = 1.0f; public float _xSpeed = 1f; public float _ySpeed = 1f; private float _x = 0.0f; private float _y = 0.0f; ...
mit
C#
b6cace088799f5ae96aa47da05cda4d380f2b574
Add FinishedLaunching()
labdogg1003/monotouch-samples,nelzomal/monotouch-samples,kingyond/monotouch-samples,xamarin/monotouch-samples,nelzomal/monotouch-samples,YOTOV-LIMITED/monotouch-samples,a9upam/monotouch-samples,andypaul/monotouch-samples,nervevau2/monotouch-samples,a9upam/monotouch-samples,iFreedive/monotouch-samples,W3SS/monotouch-sam...
SpriteTour/SpriteTour/AppDelegate.cs
SpriteTour/SpriteTour/AppDelegate.cs
using System; using Foundation; using UIKit; namespace SpriteTour { [Register ("AppDelegate")] public partial class AppDelegate : UIApplicationDelegate { public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions) { return true; } // class-level declarations public ...
using System; using Foundation; using UIKit; namespace SpriteTour { [Register ("AppDelegate")] public partial class AppDelegate : UIApplicationDelegate { // class-level declarations public override UIWindow Window { get; set; } } }
mit
C#
83e0f9b1b903cdca2cb31baa4d59d5f1a439ba32
Fix on previous commit ...
AlexDovgan/FreeSCADA
Common/SchemaModule/Manipulators/GeometryHilightManipulator.cs
Common/SchemaModule/Manipulators/GeometryHilightManipulator.cs
using System; using System.Collections.Generic; using System.Text; using System.Windows.Media; using System.Windows.Shapes; using System.Windows; using System.Windows.Input; namespace FreeSCADA.Schema.Manipulators { class GeometryHilightManipulator:BaseManipulator { Rectangle hilightRect =...
epl-1.0
C#
cb7551d2d974435e0f54146cbd893c4ca1f18d87
Add failing GL disposal stress test
ZLima12/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework
osu.Framework.Tests/Visual/Drawables/TestSceneStressGLDisposal.cs
osu.Framework.Tests/Visual/Drawables/TestSceneStressGLDisposal.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Linq; using NUnit.Framework; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; using osuTK; namesp...
mit
C#
94fabaa091b020ac81724134048ec55f1f2e67d2
Add missing controller
RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast
RightpointLabs.Pourcast.Web/Controllers/ComponentsController.cs
RightpointLabs.Pourcast.Web/Controllers/ComponentsController.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.IO; using RightpointLabs.Pourcast.Web.Models; namespace RightpointLabs.Pourcast.Web.Controllers { public class ComponentsController : Controller { // GET: Components public A...
mit
C#
0ea624e99fd4154166cd33baf2e13f62fd09db06
Add unit test for getuserrole
SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments
src/CommitmentsV2/SFA.DAS.CommitmentsV2.Api.UnitTests/Authentication/AuthenticationServiceTests.cs
src/CommitmentsV2/SFA.DAS.CommitmentsV2.Api.UnitTests/Authentication/AuthenticationServiceTests.cs
using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Text; using Microsoft.AspNetCore.Http; using Moq; using NUnit.Framework; using NUnit.Framework.Internal; using SFA.DAS.CommitmentsV2.Api.Authentication; using SFA.DAS.CommitmentsV2.Authentication; using SFA.DA...
mit
C#
59a5f1e8eb4b5ede361d3d6c000a5eb41b0c2b71
Add specs for AddHostnameCommand
appharbor/appharbor-cli
src/AppHarbor.Tests/Commands/AddHostnameCommandTest.cs
src/AppHarbor.Tests/Commands/AddHostnameCommandTest.cs
using AppHarbor.Commands; using Moq; using Ploeh.AutoFixture.Xunit; using Xunit; using Xunit.Extensions; namespace AppHarbor.Tests.Commands { public class AddHostnameCommandTest { [Theory, AutoCommandData] public void ShouldThrowIfNoArguments(AddHostnameCommand command) { Assert.Throws<CommandException>(()...
namespace AppHarbor.Tests.Commands { public class AddHostnameCommandTest { } }
mit
C#
342d68f557316a646b3f26429f4ca9b69d0d7671
Create 18.DifferentIntegersSize.cs
stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity
TechnologiesFundamentals/ProgrammingFundamentals/DataTypesAndVariables-Exercises/18.DifferentIntegersSize.cs
TechnologiesFundamentals/ProgrammingFundamentals/DataTypesAndVariables-Exercises/18.DifferentIntegersSize.cs
using System; using System.Numerics; public class DifferentIntegersSize { public static void Main(string[] args) { string userNumber = Console.ReadLine(); BigInteger parsedNumber = BigInteger.Parse(userNumber); if (parsedNumber > long.MaxValue || parsedNumbe...
mit
C#
c127cd6e235976a89fe3afefceb329eab4d194cf
add atlassian bamboo as cloud build
AArnott/Nerdbank.GitVersioning,AArnott/Nerdbank.GitVersioning,AArnott/Nerdbank.GitVersioning
src/NerdBank.GitVersioning/CloudBuildServices/AtlassianBamboo.cs
src/NerdBank.GitVersioning/CloudBuildServices/AtlassianBamboo.cs
namespace Nerdbank.GitVersioning.CloudBuildServices { using System; using System.Collections.Generic; using System.IO; /// <summary> /// /// </summary> /// <remarks> /// The Bamboo-specific properties referenced here are documented here: /// https://confluence.atlassian.com/bamboo...
mit
C#
4fded7f4c905b2550f2a67972d4cfb0bd83dc266
add failing test for the assembly cache
Caliburn-Micro/Caliburn.Micro,serenabenny/Caliburn.Micro
src/Caliburn.Micro.Platform.Tests/AssemblyCacheTests.cs
src/Caliburn.Micro.Platform.Tests/AssemblyCacheTests.cs
using System; using System.Globalization; using Xunit; namespace Caliburn.Micro.Platform.Tests { public class AssemblyCacheTests { [Fact] public void AddingTheSameAssemblyMoreThanOnceShouldNotThrow() { AssemblySourceCache.Install(); var testAssembly = typeof(As...
mit
C#
d4c932ab83907b520cb556c921138cc3159f13ec
Add MigrationDocument
rapidcore/rapidcore,rapidcore/rapidcore
src/Migration/Internal/MigrationDocument.cs
src/Migration/Internal/MigrationDocument.cs
using System; using System.Collections.Generic; using System.Text; using MongoDB.Bson; using MongoDB.Bson.Serialization.Attributes; namespace RapidCore.Mongo.Migration.Internal { /// <summary> /// Mongodb document for storing migrations that have been executed /// </summary> public class MigrationDocu...
mit
C#
594a2ae2eba13cc565fa44ab08a970dfc6c90816
create CRUD operations for players in PlayersController
YeeRSoft/broken-shoe-league,YeeRSoft/broken-shoe-league,YeeRSoft/broken-shoe-league
Source/BrokenShoeLeague.Web.API/Controllers/PlayersController.cs
Source/BrokenShoeLeague.Web.API/Controllers/PlayersController.cs
using System; using System.Collections.Generic; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using BrokenShoeLeague.Domain; using BrokenShoeLeague.Domain.Repositories; namespace BrokenShoeLeague.Web.API.Controller...
mit
C#
323f6e6a4d09157f5ce71f30d6791f20f0f3b836
Add test scene for arc bounding box computation
peppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework
osu.Framework.Tests/Visual/Drawables/TestSceneCircularArcBoundingBox.cs
osu.Framework.Tests/Visual/Drawables/TestSceneCircularArcBoundingBox.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Linq; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; using osu.Framework.Graphics.Lines; using os...
mit
C#
333caca38667c35b10630ed9c111daf0b992e60b
Add test for catcher plate flipping configuration
NeoAdonis/osu,peppy/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,peppy/osu-new,ppy/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipooo/osu
osu.Game.Rulesets.Catch.Tests/TestSceneCatchSkinConfiguration.cs
osu.Game.Rulesets.Catch.Tests/TestSceneCatchSkinConfiguration.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Linq; using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; using osu.Framework.Graphics.Contai...
mit
C#
90334a2b91888698e449797f8c29d6f71c526885
Add test scene
peppy/osu,ppy/osu,peppy/osu,ppy/osu,ppy/osu,peppy/osu
osu.Game.Tests/Visual/UserInterface/TestSceneModsEffectDisplay.cs
osu.Game.Tests/Visual/UserInterface/TestSceneModsEffectDisplay.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Localisation; using osu.Game.Graphics; using osu.Game.Graphics.Sp...
mit
C#
edbe03acb0c4aedd5f320067cf707019635b5946
Create Program.cs
lakumlalit/Hello-Git
Program.cs
Program.cs
using System; using System.Collections.Generic; using System.Linq; namespace Hello-Git { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { // Start writing code.. ...
mit
C#
3d4fdf149ba3d457680fa338b1ba1a8435467536
add compupter behavior for buying property
pseale/monopoly-dotnet,pseale/monopoly-dotnet
src/MonopolyDotNet/MonopolyTests/Tests/OpponentBuyingProperty.cs
src/MonopolyDotNet/MonopolyTests/Tests/OpponentBuyingProperty.cs
namespace MonopolyTests.Tests { public class OpponentBuyingProperty { } }
mit
C#
9d026f0bafc59cf6f7a3f4cd7764331ec8c36875
Create AssemblyInfo.cs
barnharts4/SnoValleyConverter
Properties/AssemblyInfo.cs
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("Sno...
mit
C#
35d9e61d5cd455ef7a9f64633adf55ce9ebd4d83
Create Singleton.cs
UnityCommunity/UnityLibrary
Assets/Scripts/Utilities/Singleton.cs
Assets/Scripts/Utilities/Singleton.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; public abstract class Singleton<T> : MonoBehaviour where T : Component { #region Fields /// <summary> /// The instance. /// </summary> private static T instance; #endregion #region Properties /// <summary> /// Gets the instan...
mit
C#
4dd6b8b0953362fdd4bef239ea3c608edced9e26
Create SettingIndexViewModel.
Programazing/Open-School-Library,Programazing/Open-School-Library
src/Open-School-Library/Models/SettingViewModel/SettingIndexViewModel.cs
src/Open-School-Library/Models/SettingViewModel/SettingIndexViewModel.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Open_School_Library.Models.SettingViewModel { public class SettingIndexViewModel { } }
mit
C#
08bb6e7a9efe588ee7d25fdfc502d4799c0890ed
Add WeekValuesFormViewModel
morarj/ACStalkMarket,morarj/ACStalkMarket,morarj/ACStalkMarket
ACStalkMarket/ACStalkMarket/ViewModels/WeekValuesFormViewModel.cs
ACStalkMarket/ACStalkMarket/ViewModels/WeekValuesFormViewModel.cs
using ACStalkMarket.Models; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; namespace ACStalkMarket.ViewModels { public class WeekValuesFormViewModel { [Required] public int WeekId { get; set; } [Require...
mit
C#
89427ebb6bd7fe10afa6294a41af58cf0bae5d53
Create hello.cs
AUNaseef/Hello-World,AUNaseef/Hello-World,AUNaseef/Hello-World,AUNaseef/Hello-World
CSharp/hello.cs
CSharp/hello.cs
class hello { static void Main() { System.Console.WriteLine("Hello, GIT"); } }
unlicense
C#
553cb5f17bc1961987b3fa4f3d9e28bd114f8640
Create IApiExplorer.cs
MingLu8/Nancy.WebApi.HelpPages
src/Nancy.WebApi.HelpPages.Demo/HelpPage/IApiExplorer.cs
src/Nancy.WebApi.HelpPages.Demo/HelpPage/IApiExplorer.cs
using System.Collections.Generic; using WebApplication1.Areas.HelpPage.ModelDescriptions; namespace Nancy.WebApi.Demo { public interface IApiExplorer { Dictionary<string, RouteInfo> RouteTable { get; } IEnumerable<ModuleRouteSummary> ModuleRouteCatelog { get; } RouteDetail GetRouteDeta...
mit
C#
c3a8f76e9b225d41ab24bd12bae3b54a5a45bd44
Create CSTest.cs
KhanAcademyAmateurs/Blaze,KhanAcademyAmateurs/Blaze,KhanAcademyAmateurs/Blaze
Cities-Skylines/CSTest.cs
Cities-Skylines/CSTest.cs
class Test{ }
mit
C#
2df7789b9730113f1650de78b51356b55ae74692
Add near-empty Row class
12joan/hangman
row.cs
row.cs
using System; namespace Hangman { public class Row { public Row() { } } }
unlicense
C#
76163dd2f46c26df9492a31af68728f2918c562c
Add unit tests for the DeepClone method.
PiranhaCMS/piranha.core,PiranhaCMS/piranha.core,PiranhaCMS/piranha.core,PiranhaCMS/piranha.core
test/Piranha.Tests/Utils/DeepClone.cs
test/Piranha.Tests/Utils/DeepClone.cs
using System; using Piranha.Models; using Xunit; namespace Piranha.Tests.Utils { public class DeepClone { [Fact] public void WithBoolean() { bool parameter = true; bool result = Piranha.Utils.DeepClone(parameter); parameter = false; // ...
mit
C#
e78a1c91a032e06fb140b707f6c68e7952d762bc
Add extension methods to determine whether an actor is an ancestor or descendant of another actor.
tintoy/aykay-deekay
src/AKDK/Utilities/AkkaExtensions.cs
src/AKDK/Utilities/AkkaExtensions.cs
using Akka.Actor; using System; namespace AKDK.Utilities { /// <summary> /// Extension methods for Akka types. /// </summary> public static class AkkaExtensions { /// <summary> /// Determine whether another actor is a descendent of the actor. /// </summary> ...
mit
C#
b6cae57694b813b1649c5e99efce25003dfce02f
Add TestSceneCatcherSkinning
ppy/osu,smoogipoo/osu,UselessToucan/osu,2yangk23/osu,peppy/osu,peppy/osu-new,UselessToucan/osu,NeoAdonis/osu,EVAST9919/osu,ZLima12/osu,smoogipoo/osu,NeoAdonis/osu,johnneijzen/osu,ppy/osu,NeoAdonis/osu,johnneijzen/osu,ppy/osu,peppy/osu,UselessToucan/osu,peppy/osu,2yangk23/osu,ZLima12/osu,EVAST9919/osu,smoogipooo/osu,smo...
osu.Game.Rulesets.Catch.Tests/TestSceneCatcherSkinning.cs
osu.Game.Rulesets.Catch.Tests/TestSceneCatcherSkinning.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics; using osu.Game.Rulesets.Catch.UI; using osu...
mit
C#
79d2e16904c1d19cf9b562005bc04aeb6bb74acc
bump version
ColinDabritzViewpoint/Fody,GeertvanHorrik/Fody,PKRoma/Fody,ichengzi/Fody,furesoft/Fody,distantcam/Fody,Fody/Fody,jasonholloway/Fody,huoxudong125/Fody
CommonAssemblyInfo.cs
CommonAssemblyInfo.cs
using System.Reflection; [assembly: AssemblyTitle("Fody")] [assembly: AssemblyProduct("Fody")] [assembly: AssemblyVersion("1.17.0")] [assembly: AssemblyFileVersion("1.17.0")]
using System.Reflection; [assembly: AssemblyTitle("Fody")] [assembly: AssemblyProduct("Fody")] [assembly: AssemblyVersion("1.16.2")] [assembly: AssemblyFileVersion("1.16.2")]
mit
C#
2c2adbbe21cd51d79bc37b0de34605ecc7bf8aaf
bump version
GeertvanHorrik/Fody,ColinDabritzViewpoint/Fody,huoxudong125/Fody,Fody/Fody,jasonholloway/Fody,distantcam/Fody,furesoft/Fody
CommonAssemblyInfo.cs
CommonAssemblyInfo.cs
using System.Reflection; [assembly: AssemblyTitle("Fody")] [assembly: AssemblyProduct("Fody")] [assembly: AssemblyVersion("1.29.3")] [assembly: AssemblyFileVersion("1.29.3")]
using System.Reflection; [assembly: AssemblyTitle("Fody")] [assembly: AssemblyProduct("Fody")] [assembly: AssemblyVersion("1.29.2")] [assembly: AssemblyFileVersion("1.29.2")]
mit
C#
06dcc138194e3da37aac6ab376191c20c434141a
Create Music.cs
highnet/Java-101,highnet/Java-101
TowerTDAlpha/Music.cs
TowerTDAlpha/Music.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Music : MonoBehaviour { public AudioClip gameMusic; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } }
mit
C#
f2e7a2dc95974f3a101bfba26fe64b5c72e05748
Add files via upload
khalidsoliman/Udacity_VR_ND_P2
HeadRotation.cs
HeadRotation.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; public class HeadRotation : MonoBehaviour { void Start () { Input.gyro.enabled = true; //activate the gyro on the phone } // Update is called once per frame void Update () { Quaternion att = Input.gyro.attitude; //get the gyro da...
mit
C#
15ddfd896b0b9133250b53a583f7d6c112312730
add compare method to ItemizedOverlay
beginor/BaiduMapBinding
AndroidBinding/Additions/ItemizedOverlay.cs
AndroidBinding/Additions/ItemizedOverlay.cs
using System; namespace Binding { public class ItemizedOverlay { public ItemizedOverlay () { } } }
mit
C#
d8e5b24f1b1c20951aa14d61b50ab2e9eeb7c1cf
Add serialization compatibility tests
nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet
WalletWasabi.Tests/UnitTests/Converters/OutPointAsTxoRefJsonConverterTests.cs
WalletWasabi.Tests/UnitTests/Converters/OutPointAsTxoRefJsonConverterTests.cs
using System; using System.ComponentModel.DataAnnotations; using NBitcoin; using Newtonsoft.Json; using WalletWasabi.JsonConverters; using Xunit; namespace WalletWasabi.Tests.UnitTests { public class OutPointAsTxoRefJsonConverterTests { [Fact] public void Tests() { var outpoint = new OutPoint(new uint256("2...
mit
C#
ca3d4b8519f529302358bfbfc29b81a2d36caa28
Implement ApiEXceptionFilter
vbliznikov/colabedit,vbliznikov/colabedit,vbliznikov/colabedit,vbliznikov/colabedit
src/web-editor/Filters/ApiExceptionFilter.cs
src/web-editor/Filters/ApiExceptionFilter.cs
using System; using System.Collections.Generic; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Logging; namespace CollabEdit.Filters { public class ApiExceptionFilterAttribute : ExceptionFilterAttribute, IFilterFactory { ...
mit
C#
0afeedadc5d77200a738f9a53afbc2ed3e8a0cd8
Add Offset Begin/End/Stored/Invalid constants
MrGlenThomas/confluent-kafka-dotnet,bjornicus/confluent-kafka-dotnet,bjornicus/confluent-kafka-dotnet,ah-/rdkafka-dotnet,MrGlenThomas/confluent-kafka-dotnet,MaximGurschi/rdkafka-dotnet,treziac/confluent-kafka-dotnet,treziac/confluent-kafka-dotnet
src/RdKafka/Offset.cs
src/RdKafka/Offset.cs
namespace RdKafka { public static class Offset { /// <summary> /// Start consuming from beginning of kafka partition queue: oldest msg /// </summary> public static long Beginning = -2; /// <summary> /// Start consuming from end of kafka partition queue: next msg...
apache-2.0
C#
c1a3134ed764df0c3348d6cdbeb8e89941eb1a09
Improve caching mechanism
OvidiuCaba/StatisticsRomania,OvidiuCaba/StatisticsRomania,OvidiuCaba/StatisticsRomania,OvidiuCaba/StatisticsRomania
src/StatisticsRomania/StatisticsRomania/Lib/InternetDataProvider.cs
src/StatisticsRomania/StatisticsRomania/Lib/InternetDataProvider.cs
using Akavache; using Newtonsoft.Json; using Plugin.Connectivity; using StatisticsRomania.BusinessObjects; using StatisticsRomania.ViewModels; using System; using System.Collections.Generic; using System.Net.Http; using System.Reactive.Linq; // IMPORTANT - this makes await work! using System.Threading.Tasks; namesp...
mit
C#
8ce959d7b0679e8fbda78b229c949423d030b411
Create Program.cs
Zedohsix/SharpFind
CursorHandles/Program.cs
CursorHandles/Program.cs
using System.Windows.Forms; using System; namespace CursorHandles { class Program { static void Main(string[] args) { Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.Gray; Console.Clear(); Console.WriteLine(En...
mit
C#
2bc6af33da7bd4bb0eb6cacce483a4eef61d3ecc
Add DiscoveryListener as the intended replacement for the deprecated DiscoveryRecorder, performing equivalent work but as a Listener type.
fixie/fixie
src/Fixie.TestAdapter/DiscoveryListener.cs
src/Fixie.TestAdapter/DiscoveryListener.cs
namespace Fixie.TestAdapter { using System; using Internal; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging; public class DiscoveryListener : Handler<MethodDiscov...
mit
C#
72cf619ad330da4f01eb213af68c58011c862c79
Refactor types
yfakariya/NLiblet,yfakariya/NLiblet
src/CoreUtilities/Empty.Visibility.cs
src/CoreUtilities/Empty.Visibility.cs
#region -- License Terms -- // // NLiblet // // Copyright (C) 2011 FUJIWARA, Yusuke // // 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/L...
apache-2.0
C#
dc891e7604aef77f83b17ce9c764157fd34d0dcc
update assemblyInfoVersion
askheaves/Its.Cqrs,askheaves/Its.Cqrs,askheaves/Its.Cqrs,commonsensesoftware/Its.Cqrs,commonsensesoftware/Its.Cqrs,commonsensesoftware/Its.Cqrs
AssemblyInfoVersion.cs
AssemblyInfoVersion.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.Reflection; [assembly: AssemblyVersion("0.8.0.0")] [assembly: AssemblyFileVersion("0.10.2-beta")] // Generated by the MSBuild Writ...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Versi...
mit
C#
b37e0ad2f11673eb35bc764542af1de5ea21207c
Create ParameterAnnotation.cs
MingLu8/Nancy.WebApi.HelpPages
src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/ParameterAnnotation.cs
src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/ParameterAnnotation.cs
using System; namespace WebApplication1.Areas.HelpPage.ModelDescriptions { public class ParameterAnnotation { public Attribute AnnotationAttribute { get; set; } public string Documentation { get; set; } } }
mit
C#
ad12b6b75c4f6252e4132e7f1bf5e2d55c4dccbe
Create PhotocontrollerHome.cs
fatmagazaile/Projet
PhotocontrollerHome.cs
PhotocontrollerHome.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Xml.Linq; using System.Xml.XPath; using System.Threading; namespace MvcMeublatexApp.Areas.Photos.Controllers { public class PhotosHomeController : MvcMeublatex.Infrastructure.LocalisedControllerB...
apache-2.0
C#
f7407347f78445a141c196fbcda5282f1ba14250
Add test coverage of PlayingUsers tracking
NeoAdonis/osu,ppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu-new,peppy/osu,peppy/osu,smoogipooo/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu
osu.Game.Tests/NonVisual/Multiplayer/StatefulMultiplayerClientTest.cs
osu.Game.Tests/NonVisual/Multiplayer/StatefulMultiplayerClientTest.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Linq; using Humanizer; using NUnit.Framework; using osu.Framework.Testing; using osu.Game.Online.Multiplayer; using osu.Game.Tests.Visual.Multiplayer; using ...
mit
C#
1b1e8a76bbcbe6b30bc5216fd53c3a4c8c6ed26a
Create CMXToPNGConversion.cs
aspose-imaging/Aspose.Imaging-for-.NET,asposeimaging/Aspose_Imaging_NET
Examples/CSharp/ModifyingAndConvertingImages/CMX/CMXToPNGConversion.cs
Examples/CSharp/ModifyingAndConvertingImages/CMX/CMXToPNGConversion.cs
using Aspose.Imaging; using Aspose.Imaging.Examples.CSharp; using Aspose.Imaging.ImageOptions; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CSharp.ModifyingAndConvertingImages.CMX { class CMXToPNGConversion { public static void Run() { ...
mit
C#
27279b3337c34377b22c8704f465ecfcea5406d6
Move serialization end event firing into a pipeline processor
MacDennis76/Unicorn,bllue78/Unicorn,rmwatson5/Unicorn,MacDennis76/Unicorn,GuitarRich/Unicorn,PetersonDave/Unicorn,bllue78/Unicorn,kamsar/Unicorn,rmwatson5/Unicorn,PetersonDave/Unicorn,kamsar/Unicorn,GuitarRich/Unicorn
src/Unicorn/Pipelines/UnicornSyncEnd/SendSerializationCompleteEvent.cs
src/Unicorn/Pipelines/UnicornSyncEnd/SendSerializationCompleteEvent.cs
using System.Linq; using Sitecore.Configuration; using Sitecore.Data; using Sitecore.Data.Serialization; using Sitecore.Diagnostics; using Sitecore.Eventing; using Unicorn.Predicates; namespace Unicorn.Pipelines.UnicornSyncEnd { public class SendSerializationCompleteEvent : IUnicornSyncEndProcessor { public void ...
mit
C#
481e541ac23bdc01341cdd07a0ca05a2e58ab8a9
Add back obsoleted mapping to improve backwards compatibility
smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework
osu.Framework/Graphics/BlendingMode.cs
osu.Framework/Graphics/BlendingMode.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; namespace osu.Framework.Graphics { [Obsolete("Use BlendingParameters statics instead")] // can be removed 20200220 public static class BlendingMode...
mit
C#
43ac75f77f50b1dcbdd07f52d57b05e766bf4921
test for #1110
MaceWindu/linq2db,ronnyek/linq2db,LinqToDB4iSeries/linq2db,LinqToDB4iSeries/linq2db,linq2db/linq2db,MaceWindu/linq2db,linq2db/linq2db
Tests/Linq/UserTests/Issue1110Tests.cs
Tests/Linq/UserTests/Issue1110Tests.cs
using System; using NUnit.Framework; namespace Tests.UserTests { using LinqToDB; using LinqToDB.Mapping; public class Issue1110Tests : TestBase { [Table(Name = "Issue1110TB")] class Issue1110TestsClass { [Column(IsPrimaryKey = true)] public int Id { get; set; } [Column(IsDiscrimin...
mit
C#
0029de3a93c7367bc11d9c90435a25210fccbc55
Create load.cs
alchemz/Unity_Read_XML_With_CSharp
load.cs
load.cs
using UnityEngine; using System.Collections; using System.Collections.Generic; //Needed for Lists using System.Xml; //Needed for XML functionality using System.Xml.Serialization; //Needed for XML Functionality using System.IO; using System.Xml.Linq; //Needed for XDocument public class Loader : MonoBehaviour { X...
mit
C#
48bde1cfff0a5a7da71d6baa9278f7b97c277685
Add the HelloWorld example.
mdavid/manos-spdy,jacksonh/manos,mdavid/manos-spdy,jmptrader/manos,jmptrader/manos,jacksonh/manos,jacksonh/manos,jacksonh/manos,jmptrader/manos,mdavid/manos-spdy,jmptrader/manos,jacksonh/manos,jmptrader/manos,jmptrader/manos,mdavid/manos-spdy,mdavid/manos-spdy,jacksonh/manos,mdavid/manos-spdy,mdavid/manos-spdy,jacksonh...
examples/HelloWorld/HelloWorld.cs
examples/HelloWorld/HelloWorld.cs
// // Copyright (C) 2010 Jackson Harper (jackson@manosdemono.com) // // 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,...
mit
C#
6b0e0b62b975e7cbff690616372e80ab413df534
Create OnTouchDown.cs
drawcode/labs-unity
events/OnTouchDown.cs
events/OnTouchDown.cs
// OnTouchDown.cs // Allows "OnMouseDown()" events to work on the iPhone. // Attach to the main camera. using UnityEngine; using System.Collections; using System.Collections.Generic; using Labs.Utility; namespace Labs.Events { public class OnTouchDown : MonoBehaviour { void Start() { } ...
mit
C#
74a723f20da288fc4087f75a7a42cdc4b33adbe4
add PInvokeByteArray microbenchmark
adelez/grpc,adelez/grpc,muxi/grpc,fuchsia-mirror/third_party-grpc,murgatroid99/grpc,thinkerou/grpc,carl-mastrangelo/grpc,ncteisen/grpc,jtattermusch/grpc,simonkuang/grpc,deepaklukose/grpc,donnadionne/grpc,grpc/grpc,deepaklukose/grpc,jboeuf/grpc,ejona86/grpc,firebase/grpc,geffzhang/grpc,ejona86/grpc,dgquintas/grpc,vjpai/...
src/csharp/Grpc.Microbenchmarks/PInvokeByteArrayBenchmark.cs
src/csharp/Grpc.Microbenchmarks/PInvokeByteArrayBenchmark.cs
#region Copyright notice and license // Copyright 2015 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 re...
apache-2.0
C#
492560723a25ceba4a2890dda2631bbe5311d181
Create ButtonClickToToggleGameObjectActive.cs
felladrin/unity-scripts,felladrin/unity3d-scripts
ButtonClickToToggleGameObjectActive.cs
ButtonClickToToggleGameObjectActive.cs
using UnityEngine; public class ButtonClickToToggleGameObjectActive : MonoBehaviour { public void OnClick (GameObject target) { target.SetActive (!target.activeInHierarchy); } }
mit
C#
eb5e9c7b742f763334994e2acdd8f64e8b7a3def
Remove TreeViewColumn.CellRenderers property (bxc#8593)
Gankov/gtk-sharp,Gankov/gtk-sharp,Gankov/gtk-sharp,sillsdev/gtk-sharp,Gankov/gtk-sharp,antoniusriha/gtk-sharp,openmedicus/gtk-sharp,antoniusriha/gtk-sharp,sillsdev/gtk-sharp,openmedicus/gtk-sharp,Gankov/gtk-sharp,orion75/gtk-sharp,akrisiun/gtk-sharp,orion75/gtk-sharp,openmedicus/gtk-sharp,sillsdev/gtk-sharp,Gankov/gtk-...
gtk/TreeViewColumn.cs
gtk/TreeViewColumn.cs
// Gtk.TreeViewColumn.cs - Gtk TreeViewColumn class customizations // // Author: Rachel Hestilow <hestilow@ximian.com> // // Copyright (c) 2003 Rachel Hestilow // // This program is free software; you can redistribute it and/or // modify it under the terms of version 2 of the Lesser GNU General // Public License as ...
// Gtk.TreeViewColumn.cs - Gtk TreeViewColumn class customizations // // Author: Rachel Hestilow <hestilow@ximian.com> // // Copyright (c) 2003 Rachel Hestilow // // This program is free software; you can redistribute it and/or // modify it under the terms of version 2 of the Lesser GNU General // Public License as ...
lgpl-2.1
C#
3066e95b48ba14addbf23215e61a0d140a4e7378
Add Austrian Holidays
kappy/DateTimeExtensions
DateTimeExtensions/WorkingDays/CultureStrategies/DE_ATHolidayStrategy.cs
DateTimeExtensions/WorkingDays/CultureStrategies/DE_ATHolidayStrategy.cs
using DateTimeExtensions.Common; namespace DateTimeExtensions.WorkingDays.CultureStrategies { [Locale("de-AT")] public class DE_ATHolidayStrategy : HolidayStrategyBase, IHolidayStrategy { public DE_ATHolidayStrategy() { this.InnerHolidays.Add(GlobalHolidays.NewYear); ...
apache-2.0
C#
4ab798c8de6c9d9e081d41c16c6ae6c7825646e7
Create Accounting.cs
SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming
Kattis-Solutions/Accounting.cs
Kattis-Solutions/Accounting.cs
using System; using System.Collections.Generic; namespace Accounting { class Program { static void Main(string[] args) { int np,nq,p,m; string action; string[] arr = Console.ReadLine().Split(" "); np = int.Parse(arr[0]); nq = int.Parse...
mit
C#
309d57bd4e7b8b1b1b203d1004c91c40554548eb
Create Program.cs
wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D
src/Draw2D.NetCore/Program.cs
src/Draw2D.NetCore/Program.cs
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Linq; using Avalonia; using Avalonia.Logging.Serilog; using Serilog; namespace Core2D.Avalonia.NetCore { class Program { ...
mit
C#
e4e826696a80eb25e096a989c2b76fe25454642c
Create Recount.cs
SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming
Kattis-Solutions/Recount.cs
Kattis-Solutions/Recount.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class Test { static int FFIndex(List<string> ls, string x) { int xa=0; for(int i=0;i<ls.Count;i++){if(ls[i].Equals(x)){xa=i;break;}} return xa; } public static void Main() { List<strin...
mit
C#
3f3e96aa9fcacf6f3c530a06e67c70b2df62f897
Create test.cs
go4web/Umbraco-Snippets
test.cs
test.cs
gn
mit
C#
a012729db9b4871abd05a3867760846c9438b0ba
test requests to server
OlegJakushkin/AzureWebAppTest
site/mem.cshtml
site/mem.cshtml
@{ var amplitudeRequest = Request.Params["amplitude"]; var amplitudeValue = 1; var error = int.TryParse(amplitudeRequest, out value); } <html> <head> <meta charset="utf-8"> <script src="http://acko.net/files/mathbox2/mathbox-bundle.min.js"></script> <title>MathBox Sandbox</title> </head> <body></body> <script ...
mit
C#
9c69ad4ee6eaf394485c9439f69dffddfb21eded
Add obsolete methods for backwards compatibility.
googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/gcloud-dotnet,googleapis/google-cloud-dotnet,googleapis/google-cloud-dotnet
apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/RetryPartials.cs
apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/RetryPartials.cs
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
apache-2.0
C#
f944389c305a8024d6f1f89527a5b507745e9c69
Move class.
NextLight/PokeBattle_Server
PokeBattle/PokeBattle/Move.cs
PokeBattle/PokeBattle/Move.cs
using System; using System.Collections.Generic; using System.Linq; namespace PokeBattle { enum DamageClass { None = 1, Physical, Special }; class Move { int id; public string Name { get; private set; } public int? Power { get; private set; } public int? Accuracy { get; priv...
mit
C#
d3daac83b0249e394ff569fcc0d7c79ab21d4d0b
Create plainCs.cs
aisis/Magic
Csharp/Due/plainCs.cs
Csharp/Due/plainCs.cs
//C# //https://playground.arduino.cc/Csharp/SerialCommsCSharp //https://playground.arduino.cc/Interfacing/Csharpusing System; using System.Threading; using System.IO.Ports; using System.IO; public class ArduinoControllerMain { SerialPort currentPort; bool portFound; private void SetComPort() { try { ...
mit
C#
0f722fd074176cc07eee76ce49039fee7cb57956
Rename UpdateHUD lives to DisplayLives.
cmilr/Unity2D-Components,jguarShark/Unity2D-Components
HUD/UpdateHUDLives.cs
HUD/UpdateHUDLives.cs
using UnityEngine; using UnityEngine.UI; using System.Collections; using DG.Tweening; using Matcha.Game.Tweens; public class UpdateHUDLives : BaseBehaviour { public Sprite threeLives; public Sprite twoLives; public Sprite oneLife; private Image lives; private float timeToFade = 2f; void Start() { lives = g...
mit
C#
b229b74efb3d6be26479351ebc137d24618edfd3
Create Problem87.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problems/Problem87.cs
Problems/Problem87.cs
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace ProjectEuler.Problems { class Problem87 { private Sieve s; private HashSet<long> found; private long upper = 50000000; public Problem87() { s = new Sieve((lon...
mit
C#
509f7435a06f86012ab3a264a53e7acb845592ff
Fix warnings #12 - added SharedAssemblyInfo
synergy-software/synergy.contracts,synergy-software/synergy.contracts
SharedAssemblyInfo.cs
SharedAssemblyInfo.cs
using System.Reflection; using System.Resources; using System.Runtime.InteropServices; [assembly: AssemblyCompany("Synergy Marcin Celej")] [assembly: AssemblyCopyright("Copyright © Synergy Marcin Celej 2016")] [assembly: AssemblyProduct("Synergy.Contracts")] [assembly: AssemblyTrademark("Synergy.Contracts")] [assem...
mit
C#
5f3d249b2d3d925bd358d40da1914c405223ca86
Add method DateTime.ToMonthString
DaveSenn/Extend
PortableExtensions/System.DateTime/ToDateTimeFormat/DateTime.ToMonthString.cs
PortableExtensions/System.DateTime/ToDateTimeFormat/DateTime.ToMonthString.cs
#region Using using System; using System.Globalization; #endregion namespace PortableExtensions { /// <summary> /// Class containing some extension methods for <see cref="DateTime" />. /// </summary> public static partial class DateTimeEx { /// <summary> /// Converts the ...
mit
C#
4fac02eceeb3d04a957dad7383862e4e4b9c6021
bump version
MetacoSA/NBitcoin,lontivero/NBitcoin,NicolasDorier/NBitcoin,bitcoinbrisbane/NBitcoin,thepunctuatedhorizon/BrickCoinAlpha.0.0.1,stratisproject/NStratis,MetacoSA/NBitcoin,dangershony/NStratis,HermanSchoenfeld/NBitcoin
NBitcoin/Properties/AssemblyInfo.cs
NBitcoin/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: AssemblyTi...
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: AssemblyTi...
mit
C#
6d8f18237978417e2c37091584c3ec8f7060eba8
move class clipping to a separate file
ld0891/Kindle2OneNote
Kindle2OneNote/Clipping.cs
Kindle2OneNote/Clipping.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Kindle2OneNote { public struct Clipping { public uint Page { get; set; } public uint LocationFrom { get; set; } public uint LocationTo { get; set; } pub...
mit
C#
e68d48ca931de6498de46bb6f662f49b5e6a9489
Add code point test.
AxeDotNet/AxePractice.CSharpViaTest
src/CSharpViaTest.IOs/10_HandleText/CalculateTextCharLength.cs
src/CSharpViaTest.IOs/10_HandleText/CalculateTextCharLength.cs
using System; using System.Collections.Generic; using Xunit; namespace CSharpViaTest.IOs._10_HandleText { /* * Description * =========== * * This test will introduce the concept of Codepoint and surrogate pair to you. But * for the most of the cases, the character can fit in 16-bit unic...
mit
C#
ad176aeaada5e0278d524d0bd794a7b7ed44f6a9
Add missed files
novoselov-mt/HelloWorld-Private,novoselov-mt/HelloWorld-Private,novoselov-mt/HelloWorld-Private,novoselov-mt/HelloWorld-Private
HelloWorld/HelloWorld-cs-lib/Library.cs
HelloWorld/HelloWorld-cs-lib/Library.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace HelloWorld_cs_lib { public class Library { public void Init() { } public void Release() { } } }
apache-2.0
C#
7249355b4c828ac5ca573c98e81b34f213dd5c71
Add more tests for surface
Thraka/SadConsole
Tests/SadConsole.Tests/CellSurface.Basics.cs
Tests/SadConsole.Tests/CellSurface.Basics.cs
using Microsoft.VisualStudio.TestTools.UnitTesting; using SadRogue.Primitives; namespace SadConsole.Tests { public partial class CellSurface { [TestMethod] public void Glyph_SetForeground() { var surface1 = new SadConsole.CellSurface(20, 20); surface1.FillWithRa...
mit
C#
092958dfe6298fcd8177f3947b5e89dc6bd59297
Set default db for existing raven instances
Haacked/qed,half-ogre/qed
qed/Functions/CreateRavenStore.cs
qed/Functions/CreateRavenStore.cs
using Raven.Client; using Raven.Client.Document; using Raven.Client.Embedded; namespace qed { public static partial class Functions { public static IDocumentStore GetRavenStore() { var ravenStore = GetConfiguration<IDocumentStore>(Constants.Configuration.RavenStoreKey); ...
using Raven.Client; using Raven.Client.Document; using Raven.Client.Embedded; namespace qed { public static partial class Functions { public static IDocumentStore GetRavenStore() { var ravenStore = GetConfiguration<IDocumentStore>(Constants.Configuration.RavenStoreKey); ...
mit
C#
36e71860f946f417f9a46cdfc7d788a07e833e28
Add sample to illustrate lack of ordering of type compilation, for a future branch.
Yttrmin/CSharpTo2600,Yttrmin/CSharpTo2600,Yttrmin/CSharpTo2600
Samples/TypeCompilationOrderTesting.cs
Samples/TypeCompilationOrderTesting.cs
using System; using System.Collections.Generic; using System.Text; using VCSFramework; namespace Samples { public static class Foo { [AlwaysInline] public static void Run() { } } // TODO - This is not supported yet. public static class TypeCompilationOrderTesting { private static byte TestByte; ...
mit
C#
1e731e0174150ed326ee171a6937bd15a45bedd3
Add CasInt32.cs
whampson/bft-spec,whampson/cascara
Src/WHampson.Cascara/Types/CasInt32.cs
Src/WHampson.Cascara/Types/CasInt32.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#
dd83795c3ed33d9f207fe57c7cd1151d6786cadc
Create Initialize.cs
zelbo/Number-Guessing
Initialize.cs
Initialize.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; namespace NumberGuessing { partial class Program { static void Initialize() { myResult.rankMessage = ""; guessesRemaining = 3; // need to adjust ...
mit
C#
eb471374a80320f6e6e35955f219f8dbfbb816b0
Create Problem33.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problems/Problem33.cs
Problems/Problem33.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProjectEuler { class Problem33 { private int upper = 99; public void Run() { List<Fraction33> result = new List<Fraction33>(); for (int i = 10; i < upper; i++) ...
mit
C#
519d652b2221eef2de8deb26270b7c2ae8faec2c
Add Castling Move
artfuldev/CAESAR,kenshinthebattosai/CAESAR
src/CAESAR.Chess/Moves/CastlingMove.cs
src/CAESAR.Chess/Moves/CastlingMove.cs
using System; using CAESAR.Chess.PlayArea; namespace CAESAR.Chess.Moves { public class CastlingMove : NormalMove { public CastlingMove(ISquare source, CastlingType castlingType) : base(source, GetDestinationSquareName(castlingType)) { } static string GetDestination...
mit
C#
f1e8176f69a95617807521e2d07ee75869b106e8
Add FileCallbackResult
SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments
src/CommitmentsV2/SFA.DAS.CommitmentsV2.Shared/ActionResults/FileCallbackResult.cs
src/CommitmentsV2/SFA.DAS.CommitmentsV2.Shared/ActionResults/FileCallbackResult.cs
using System; using System.IO; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Infrastructure; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Net.Http.Headers; namespace SFA.DAS.CommitmentsV2.Shared.ActionResults { p...
mit
C#
aac77096400c4fa48e1410e27b264409a91e71f4
Add stage test scene
smoogipoo/osu,EVAST9919/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,smoogipooo/osu,ppy/osu,peppy/osu,smoogipoo/osu,EVAST9919/osu,UselessToucan/osu,peppy/osu-new,UselessToucan/osu,ppy/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu
osu.Game.Rulesets.Mania.Tests/Skinning/TestSceneStage.cs
osu.Game.Rulesets.Mania.Tests/Skinning/TestSceneStage.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.Game.Rulesets.Mania.Beatmaps; using osu.Game.Rulesets.Mania.UI; namespace osu.Game.Rulesets.Mania.Tests.Skinning { public c...
mit
C#
203aadc969208c02b8a185a788084aa449dc6c8b
Create Problem8.cs
neilopet/projecteuler_cs
Problem8.cs
Problem8.cs
/* * Problem #8 The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832. 73167176531330624919225119674426574742355349194934 96983520312774506326239578318016984801869478851843 85861560789112949495459501737958331952853208805511 125406987471585238630507156932909632952274...
mit
C#
887ed0c417f8dd292d60b37757b45c38e4e71da1
Create DoorState.cs
MercedeX/StrangeStateMachineExample
DoorState.cs
DoorState.cs
using System; namespace Domain.DoorStates { public abstract class DoorState : DomainObject, IDoorAction { public Door Door { get; private set; } public DoorState(string name, Door arg):base(name){ Door = arg; } public virtual void Open() { } ...
apache-2.0
C#
5344586e095064faf7934837559a9d25cebe570d
Update project
JordiCorbilla/MapReduce
src/Common.library/SystemDetails.cs
src/Common.library/SystemDetails.cs
//The MIT License (MIT) //Copyright (c) 2015 Jordi Corbilla //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, co...
mit
C#
6b1b5165ca6a4e1bc2d0e53f48776a1646096d91
Add HasFlag enum support
lunet-io/markdig
src/Markdig/Helpers/LegacyHelper.cs
src/Markdig/Helpers/LegacyHelper.cs
#if NET35 using System; using System.Diagnostics; using System.Runtime.CompilerServices; namespace Markdig.Helpers { internal static class LegacyHelper { [MethodImpl(MethodImplOptionPortable.AggressiveInlining)] public static bool HasFlag(this Enum enumeration, Enum flags) { ...
bsd-2-clause
C#
2c3cf6decd2f22c850ac3b7412cfc2fe0edc9d4f
add DNT.Diag.Data.TroubleCodeItem
rockyx/dntdiag
DNT/Diag/Data/TroubleCodeItem.cs
DNT/Diag/Data/TroubleCodeItem.cs
using System; namespace DNT.Diag.Data { public class TroubleCodeItem { private string code; private string content; private string description; public TroubleCodeItem(string code, string content, string description) { this.code = code; this.content = content; this.descripti...
apache-2.0
C#
cb1c0e7c9ac6d56f189148beea065ce40b313030
Add Q189
txchen/localleet
csharp/Q189_RotateArray.cs
csharp/Q189_RotateArray.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Rotate an array of n elements to the right by k steps. // // For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4]. // // Note: // Try to come up as many solutions as you can, ther...
mit
C#
2c624b7add90f0c603ea30fcf829e3a409905a33
Revert "Delete AssemblyInfo.cs"
freemindhv/csList
Tests/Properties/AssemblyInfo.cs
Tests/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Te...
mit
C#
7a0a18520d6693d421db24e2c7372b26cf617669
Create ArrayRingBuffer.cs
efruchter/UnityUtilities
MiscDataStructures/ArrayRingBuffer.cs
MiscDataStructures/ArrayRingBuffer.cs
/// <summary> /// An array-based ring buffer. The internal array can be accessed directly if needed. /// </summary> public class ArrayRingBuffer<T> : IEnumerable<T> { public readonly T[] array; private int startingIndex = 0; private int count; public ArrayRingBuffer(int size, T defaultValue) { ...
mit
C#
ceecec346a53f686efdf53f2e25ff2ca05974034
add setting and share-setting
ra0o0f/arangoclient.net
ArangoDB.Client/DatabaseSharedSetting.cs
ArangoDB.Client/DatabaseSharedSetting.cs
using ArangoDB.Client.Http; using ArangoDB.Client.Property; using ArangoDB.Client.Utility; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Net; using System.Net.Http; using System.Text; using System.Threading.Tasks; na...
apache-2.0
C#
30afc281a1d04643377337e4b0eb96a032897e7f
Create DictionaryModelDescription.cs
MingLu8/Nancy.WebApi.HelpPages
src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/DictionaryModelDescription.cs
src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/DictionaryModelDescription.cs
namespace WebApplication1.Areas.HelpPage.ModelDescriptions { public class DictionaryModelDescription : KeyValuePairModelDescription { } }
mit
C#
263ba69ae44472a73c525ca9cd4c7031119d9cf7
Create EnemyAI.cs
Panther450/450Game
NEFMA/Assets/Scripts/EnemyAI.cs
NEFMA/Assets/Scripts/EnemyAI.cs
/************************************************************ * Author: Michael Morris * File: EnemyAI.cs * * Credits: * http://www.devination.com/2015/07/unity-2d-platformer-tutorial-part-4.html * (Unity 2D Platformer Tutorial - Part 4 - Enemy Movement) *********************************************************...
apache-2.0
C#
ca8308beef42080df43e0c39cde08622af987658
Add template.
rockfordlhotka/csla,BrettJaner/csla,rockfordlhotka/csla,MarimerLLC/csla,rockfordlhotka/csla,ronnymgm/csla-light,JasonBock/csla,MarimerLLC/csla,JasonBock/csla,ronnymgm/csla-light,jonnybee/csla,jonnybee/csla,BrettJaner/csla,ronnymgm/csla-light,JasonBock/csla,BrettJaner/csla,jonnybee/csla,MarimerLLC/csla
csla20cs/Templates/DynamicRootList.cs
csla20cs/Templates/DynamicRootList.cs
using System; using System.Data.SqlClient; [Serializable()] public class DynamicRootList : EditableRootListBase<DynamicRootList, EditableRoot> { #region Authorization Rules public static bool CanGetObject() { // TODO: customize to check user role return ApplicationContext.User.IsInRole(""); } p...
mit
C#
d4542a5a3b2cf9f52757c48187561eab69a6f541
Add StringExtensions.With()
anjdreas/PortableLog,anjdreas/PortableLog
Src/PortableLog.Core/StringExtensions.cs
Src/PortableLog.Core/StringExtensions.cs
using System; using JetBrains.Annotations; namespace PortableLog.Core { public static class StringExtensions { [StringFormatMethod("format")] public static string With(this string format, IFormatProvider provider, params object[] args) { return string.Format(provider, forma...
mit
C#
67d0c684b2ff5c68744943bce8b6c00301793913
Add missing file
dlech/monomac,PlayScriptRedux/monomac,kangaroo/monomac
samples/macdoc/DocTools.cs
samples/macdoc/DocTools.cs
// // A few routines that were copy-pasted from the docbrowser // using System; using Monodoc; using System.IO; namespace macdoc { public class DocTools { public static string GetHtml (string url, HelpSource helpSource) { string htmlContent = null; Node match; if (helpSource != null) htmlContent...
apache-2.0
C#
e1b984f4adda84d3022dc2bb869f9e2c4ecfdff0
Work on Nitra.LanguageCompiler.
rsdn/nitra,JetBrains/Nitra,JetBrains/Nitra,rsdn/nitra
Nitra.LanguageCompiler/Templates/XXLanguageXXVsPackage/Errors/ErrorListPresenterFactory.cs
Nitra.LanguageCompiler/Templates/XXLanguageXXVsPackage/Errors/ErrorListPresenterFactory.cs
using Nitra.VisualStudio; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Text.Adornments; using Microsoft.VisualStudio.Text.Editor; using Microsoft.VisualStudio.Text.Tagging; using Microsoft.VisualStudio.Utilities; using System; using System.Collections.Generic; using System.ComponentMode...
apache-2.0
C#