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
ff7b52027001e00d5ff463672d7a27fa07699963
Create Tile.cs
jon-lad/Battlefleet-Gothic
Tile.cs
Tile.cs
using UnityEngine; using System.Collections; public class Tile : MonoBehaviour { public Vector2 gridPosition = Vector2.zero; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } void OnMouseEnter(){ transform.renderer.material.color = Color.blue; } ...
mit
C#
4624f9810393e24d336cb2a00570d36ad37d9a48
Add test file.
SaxxonPike/NextLevelSeven
NextLevelSeven.Test/Building/BuilderBaseTests.cs
NextLevelSeven.Test/Building/BuilderBaseTests.cs
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using NextLevelSeven.Core; namespace NextLevelSeven.Test.Building { [TestClass] public class BuilderBaseTests : BuildingTestFixture { [TestMethod] public void Builder_CanFormat() { var param = Randomized....
isc
C#
8d8d7da0019a8e0145f155d3be21d62c69cae5b5
Create WindowsRegistrySettingsServiceOptions.cs
tiksn/TIKSN-Framework
TIKSN.Framework.Core/Settings/WindowsRegistrySettingsServiceOptions.cs
TIKSN.Framework.Core/Settings/WindowsRegistrySettingsServiceOptions.cs
using Microsoft.Win32; namespace TIKSN.Settings { public class WindowsRegistrySettingsServiceOptions { public WindowsRegistrySettingsServiceOptions() { RegistryView = RegistryView.Default; } public RegistryView RegistryView { get; set; } public string SubK...
mit
C#
be27dcdf351a480f7594b8daa0eeabe7fc701eef
fix int64 bug
davidbetz/nalarium
Nalarium/Cryptography/Random.cs
Nalarium/Cryptography/Random.cs
#region Copyright //+ Copyright David Betz 2007-2016 #endregion using System.Security.Cryptography; namespace Nalarium.Cryptography { public static class Random { public static long Create(int size) { using (var rng = new RNGCryptoServiceProvider()) { ...
bsd-3-clause
C#
b333ebca4dd2618c41a7f1816136b4406e5b1c57
Add simple controller for weapons
mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander
Battery-Commander.Web/Controllers/API/WeaponsController.cs
Battery-Commander.Web/Controllers/API/WeaponsController.cs
using BatteryCommander.Web.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; namespace BatteryCommander.Web.Controllers.API { [Route("api/[contr...
mit
C#
5c279674e7259329ef0115ffd1c5c9f1a60927df
Create Helpers folder and add FineCalculations class.
Programazing/Open-School-Library,Programazing/Open-School-Library
src/Open-School-Library/Helpers/FineCalculations.cs
src/Open-School-Library/Helpers/FineCalculations.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Open_School_Library.Helpers { public class FineCalculations { public static double CalculateFine(DateTime CheckedOutOn, DateTime ReturnedOn) { return 90; } } }
mit
C#
ee86b460cb3935a822fd76bb25c4f1beed448518
add spring constraint to linkset constraint types.
bravelittlescientist/opensim-performance,bravelittlescientist/opensim-performance,bravelittlescientist/opensim-performance,bravelittlescientist/opensim-performance,bravelittlescientist/opensim-performance,bravelittlescientist/opensim-performance
OpenSim/Region/Physics/BulletSPlugin/BSConstraintSpring.cs
OpenSim/Region/Physics/BulletSPlugin/BSConstraintSpring.cs
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must r...
bsd-3-clause
C#
3fb33c802be062f71d279a1d2a466283cbcb21f1
create a code sample on how to use IOC properly with the parser
RushuiGuan/expression
Albatross.Expression.Test/iocSample.cs
Albatross.Expression.Test/iocSample.cs
using Albatross.Expression.Operations; using Albatross.Expression.Tokens; using NUnit.Framework; using SimpleInjector; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Albatross.Expression.Test { /// <summary> /// instead of us...
mit
C#
c81aa7d291f36a251165f44be44dbf1226b58978
Add NinjectWebCommon.cs
dob-sal/SaveTheSnails,dob-sal/SaveTheSnails,dob-sal/SaveTheSnails
Source/Web/SaveTheSnails.Web/App_Start/NinjectWebCommon.cs
Source/Web/SaveTheSnails.Web/App_Start/NinjectWebCommon.cs
[assembly: WebActivatorEx.PreApplicationStartMethod(typeof(SaveTheSnails.Web.App_Start.NinjectWebCommon), "Start")] [assembly: WebActivatorEx.ApplicationShutdownMethodAttribute(typeof(SaveTheSnails.Web.App_Start.NinjectWebCommon), "Stop")] namespace SaveTheSnails.Web.App_Start { using System; using System.Web;...
mit
C#
5a19e4ae92fefafea215db39735a3ba2412791ef
Add the all-important missing file
merbla/serilog,serilog/serilog,CaioProiete/serilog,nblumhardt/serilog,skomis-mm/serilog,serilog/serilog,harishjan/serilog,clarkis117/serilog,clarkis117/serilog,nblumhardt/serilog,skomis-mm/serilog,harishjan/serilog,merbla/serilog
test/Serilog.Tests/Properties/AssemblyInfo.cs
test/Serilog.Tests/Properties/AssemblyInfo.cs
using Xunit; [assembly: CollectionBehavior(DisableTestParallelization = true)]
apache-2.0
C#
483d1bbb429b595ec1a951bd901b4f6c516a85a4
Create task_1_3_8_1.cs
AndrewTurlanov/ANdrew
task_1_3_8_1.cs
task_1_3_8_1.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { Console.WriteLine("Введите пароль"); string UserPassword = Console.Re...
apache-2.0
C#
96bfa4e0c1559db63b3d96f2d7f42fe83e5d24fc
Add WebDocument.
cube-soft/Cube.Net,cube-soft/Cube.Net,cube-soft/Cube.Net
Applications/Rss.Reader/Xui/Behaviors/WebDocument.cs
Applications/Rss.Reader/Xui/Behaviors/WebDocument.cs
/* ------------------------------------------------------------------------- */ // // Copyright (c) 2010 CubeSoft, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www...
apache-2.0
C#
88455188634d8a98b830a5dad1ca2e37d3d1aeab
Update S40 ver
rvriens/Chat-API-NET,andrebires/Chat-API-NET,rvriens/Chat-API-NET,ProducJeffer/Chat-API-NET,shekohex/Chat-API-NET,mgp25/Chat-API-NET,kienct89/Chat-API-NET,mgp25/Chat-API-NET,almone/Chat-API-NET,mgp25/Chat-API-NET,blachshma/Chat-API-NET,rvriens/Chat-API-NET,andrebires/Chat-API-NET,JulioImolesi/Chat-API-NET,andrebires/Ch...
WhatsAppApi/Settings/WhatsConstants.cs
WhatsAppApi/Settings/WhatsConstants.cs
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; namespace WhatsAppApi.Settings { /// <summary> /// Holds constant information used to connect to whatsapp server /// </summary> public class WhatsConstants { #region ServerCons...
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; namespace WhatsAppApi.Settings { /// <summary> /// Holds constant information used to connect to whatsapp server /// </summary> public class WhatsConstants { #region ServerCons...
mit
C#
fa0428a1ab8e9b3e9ac455bdd1424b9760b507d4
add brush transition tests
AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,grokys/Perspex,SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,grokys/Perspex,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia
tests/Avalonia.Animation.UnitTests/BrushTransitionTests.cs
tests/Avalonia.Animation.UnitTests/BrushTransitionTests.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Avalonia.Controls; using Avalonia.Media; using Xunit; namespace Avalonia.Animation.UnitTests { public class BrushTransitionTests { [Fact] public void SolidColorBrush_Opacit...
mit
C#
f9ca47ca86a2d7e40f6b05a46e3e9ddf5d85f37e
Add test coverage
UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,peppy/osu-new,peppy/osu,smoogipooo/osu,peppy/osu,peppy/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu
osu.Game.Rulesets.Osu.Tests/TestPlayfieldBorder.cs
osu.Game.Rulesets.Osu.Tests/TestPlayfieldBorder.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.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Game.Rulesets.UI; using osu.Game.Tests.Visual; using osuTK...
mit
C#
38bc87ccee112ba853a60a0f1304345192c6d5c7
Create Problem119.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problems/Problem119.cs
Problems/Problem119.cs
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace ProjectEuler.Problems { class Problem119 { public BigInteger SumDigits(BigInteger number) { BigInteger sum = 0; while (number > 0) { sum += (nu...
mit
C#
0cd09c22f92c0a382d88df6edf20c0cbf58dfc6c
Create ListExtentions.cs
drawcode/labs-csharp
extensions/ListExtentions.cs
extensions/ListExtentions.cs
using System; using System.Collections.Generic; public static class ListExtensions { public static void Shuffle<T>(this IList<T> list) { var randomNumber = new Random(DateTime.Now.Millisecond); var n = list.Count; while (n > 1) { n--; var k = randomNumber.Next(n + 1...
mit
C#
b064d37ad2d65a169943b22d4ef1a7d70d1dfe84
Increment release number to 2.0.14
Marcus-L/Certify,qwertyno/Certify,Prerequisite/Certify,webprofusion/Certify,ndouthit/Certify
src/Certify.Core/Properties/AssemblyInfo.cs
src/Certify.Core/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("...
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("...
mit
C#
50289c5fceaa499cba1ee5f771e4c61785ad8e4d
make changes
unitx/ASP.NET,unitx/ASP.NET,unitx/ASP.NET
Store/Store/Product.cs
Store/Store/Product.cs
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
mit
C#
3d190c0e288e02963b7035c66398ff944af60e84
Create AssemblyInfo.cs
anilhakanyarici/next-generation-crypto
Properties/AssemblyInfo.cs
Properties/AssemblyInfo.cs
mit
C#
19699d04d9711d71d81eb640eb8df09643314176
Create MoveRocket.cs
highnet/Java-101,highnet/Java-101
Unity/MoveRocket.cs
Unity/MoveRocket.cs
using UnityEngine; using System.Collections; public class MoveRocket : MonoBehaviour { public float thrust; private Rigidbody rb; public float gravity; // Use this for initialization void Start () { Physics.gravity = new Vector3(0, gravity, 0); rb = GetComponent<Rigidbody>(); } ...
mit
C#
72eb1d9fba5c8228c3f869de0127db2cef0a2df2
add test to cover nullable property assigning
Pondidum/Stronk,Pondidum/Stronk
src/Stronk.Tests/Scenarios/NullableProperties.cs
src/Stronk.Tests/Scenarios/NullableProperties.cs
using System; using System.Collections.Generic; using Shouldly; using Stronk.ConfigurationSources; using Xunit; namespace Stronk.Tests.Scenarios { public class NullableProperties { [Fact] public void When_the_sources_dont_have_a_value() { var values = new DictionarySource(new Dictionary<string, string>(Str...
lgpl-2.1
C#
f63dab6b0899ee2ba70ae5fd30a2dace98a404b2
Create PlanetSystem.cs
jon-lad/Battlefleet-Gothic
PlanetSystem.cs
PlanetSystem.cs
using UnityEngine; using System.Collections; using System.Collections.Generic; public class PlanetSystem : MonoBehaviour { public int type; public int controler; public List<Planet> planets = new List<Planet>(); public List<PlanetSystem> connectedSystems = new List<PlanetSystem> (); Vector2 position; public Gam...
mit
C#
ca0eef495c5606898967cebc49a8ca20f20924f2
Create UtilityTools.cs
MatrixNAN/Unity-Artist-Tools
UtilityTools.cs
UtilityTools.cs
using UnityEngine; using System.Collections; public class UtilityTools : MonoBehaviour { public static UtilityTools Instance; IEnumerator LoadTexture2DFromDisk(string file_loc = "", Texture2D textureShader = null) { Debug.Log (file_loc); textureShader = new Texture2D(4, 4, TextureFormat.DXT5, false); WWW ww...
apache-2.0
C#
b10ee7482d8b72986448b2c33ec81d898df16556
Add a failing test to check catch replay accuracy
peppy/osu,peppy/osu,smoogipoo/osu,ppy/osu,peppy/osu-new,ppy/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,ppy/osu,NeoAdonis/osu,smoogipooo/osu
osu.Game.Rulesets.Catch.Tests/TestSceneCatchReplay.cs
osu.Game.Rulesets.Catch.Tests/TestSceneCatchReplay.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Game.Beatmaps; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Rulesets.Catch.Objects; using osu.Game.Rulesets.Catch.UI; namespace...
mit
C#
3dde9a7dbb72ae474516c01787ef268b45533903
Make Azure Function do resizing in parallel
azure-appservice-samples/ContosoMoments,lindydonna/ContosoMoments,azure-appservice-samples/ContosoMoments,azure-appservice-samples/ContosoMoments,lindydonna/ContosoMoments,lindydonna/ContosoMoments,lindydonna/ContosoMoments,azure-appservice-samples/ContosoMoments,lindydonna/ContosoMoments,azure-appservice-samples/Conto...
src/Cloud/ContosoMoments.Function/ResizeImage/run.csx
src/Cloud/ContosoMoments.Function/ResizeImage/run.csx
#r "Microsoft.WindowsAzure.Storage" using System; using Microsoft.WindowsAzure.Storage.Blob; using System.IO; using ImageResizer; using System.Threading; using System.Threading.Tasks; public static Task Run( String blobTrigger, CloudBlockBlob input, CloudBlockBlob blobOutputSmall, CloudBlockBlob blobOutputMed...
#r "Microsoft.WindowsAzure.Storage" using System; using Microsoft.WindowsAzure.Storage.Blob; using System.IO; using ImageResizer; public static async Task Run( String blobTrigger, Stream input, CloudBlockBlob blobOutputSmall, CloudBlockBlob blobOutputMedium, CloudBlockBlob blobOutputExtraSmall) { await Re...
mit
C#
78bd165acc5d8c40dd9a75840c57c1d3e65cac29
Add shared assembly method
martijn00/LottieXamarin,martijn00/LottieXamarin
Lottie.Forms/AnimationViewExtensions.cs
Lottie.Forms/AnimationViewExtensions.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lottie.Forms { public static class AnimationViewExtensions { public static Stream GetStreamFromAssembly(this AnimationView animationView) { ...
apache-2.0
C#
bceec36644b6d50e7cb4708388ff4f91f03a8b3b
Add user controller on API to check in/outs.
marcuson/A2BBServer,marcuson/A2BBServer,marcuson/A2BBServer
A2BBAPI/Controllers/MeInOutController.cs
A2BBAPI/Controllers/MeInOutController.cs
using System; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Authorization; using A2BBCommon.Models; using A2BBCommon; using A2BBAPI.Data; using IdentityModel.Client; using A2BBAPI.DTO; using Microsoft.Extensions.Logging; using A2BBAPI.Models; using System.C...
apache-2.0
C#
0acf058cff789270fc9b5252e9f6e32a34170a72
create tests for MemoryInput class
icarus-consulting/Yaapii.Atoms
tests/Yaapii.Atoms.Tests/IO/MemoryInputTest.cs
tests/Yaapii.Atoms.Tests/IO/MemoryInputTest.cs
// MIT License // // Copyright(c) 2020 ICARUS Consulting GmbH // // 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#
cd1c50f0de44120c023a00fe65bd7324bf1a2dd6
Create RPS.cs
HeyIamJames/Learning-C-,HeyIamJames/Learning-C-
RPS.cs
RPS.cs
using System; public class Rps { public enum PlayerChoice { Rock, Paper, Scissors }; public enum Result { Draw, FirstWin, FirstLose}; public static Result Match(PlayerChoice player1, PlayerChoice player2) { return (Result)((player1 - player2 + 3) % 3); } public static void Main() { Rps.Test(Match(P...
mit
C#
bd1637a5ad9f40a09dab2e224208c1c20ff4125d
add missing file
Stef569/NBug,soygul/NBug
NBug/Core/Util/Storage/AdditionalFile.cs
NBug/Core/Util/Storage/AdditionalFile.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace NBug.Core.Util.Storage { public class AdditionalFile { /// <summary> /// Gets or sets a the file path. The files can use * or ? in the same way as DOS modifiers. /// </summa...
mit
C#
bbbfbeca2151e336291c4d6f9b96f0ea53456a60
Add tests for F.Uncurry
farity/farity
Farity.Tests/UncurryTests.cs
Farity.Tests/UncurryTests.cs
using System; using Xunit; namespace Farity.Tests { public class UncurryTests { [Fact] public void UncurryingWorksForArity2() { FuncCurry<int, int, int> sum = a => b => a + b; Assert.Equal( sum(1)(2), F.Uncurry(su...
mit
C#
36ca3ba13c3915f4d51bc1acbc52aa5e6506b1b4
Add unit tests to verify that the amount parameters are added to the query string when they are added as parameter
Viincenttt/MollieApi,Viincenttt/MollieApi
Mollie.Tests.Unit/Client/PaymentMethodClientTests.cs
Mollie.Tests.Unit/Client/PaymentMethodClientTests.cs
using Mollie.Api.Client; using Mollie.Api.Models; using NUnit.Framework; using System.Net.Http; using System.Threading.Tasks; namespace Mollie.Tests.Unit.Client { [TestFixture] public class PaymentMethodClientTests : BaseClientTests { private const string defaultPaymentMethodJsonResponse = @"{ ...
mit
C#
4d9e0c84f989696a7348007fd685b369e1bb0a9f
Create Enumerations
neyogiry/Examples_Csharp
UnderstandingEnumerations.cs
UnderstandingEnumerations.cs
using System; namespace UnderstandingEnumerations { class Program { static void Main(string[] args) { Console.ForegroundColor = ConsoleColor.DarkRed; Console.WriteLine("Hello Neyo!"); //SuperHero myValue = SuperHero.GreenLantern; Console.WriteLine("Type in a superhero's name to see his nickname :"...
mpl-2.0
C#
1d8cd944cd4180d60bea5c5f0e8262faa9de4cbe
Add abstract exception class
BERef/BibTeXLibrary
BibTeXLibrary/ParserErrorException.cs
BibTeXLibrary/ParserErrorException.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BibTeXLibrary { public abstract class ParserErrorException : ApplicationException { #region Private Field /// <summary> /// Customed error message. /// ...
mit
C#
2ec5ae04c934de2a64ceb6e5c10cbaad85fedfa5
Add a new datatype for joints
ethanlim/MinorityViewportClient
MultipleKinectsPlatform/Data/Joint.cs
MultipleKinectsPlatform/Data/Joint.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Runtime.Serialization; using System.IO; namespace MultipleKinectsPlatform.MultipleKinectsPlatform.Data { [DataContract(Name="Joint")] public class Joint { [DataMember] ...
agpl-3.0
C#
260d690b54479b0503c4c45f799cdb6c0f2ed5f7
Add shared helper to flatten response headers
carbon/Amazon
src/Amazon.S3/Helpers/HttpResponseMessageExtensions.cs
src/Amazon.S3/Helpers/HttpResponseMessageExtensions.cs
using System.Collections.Generic; using System.Net.Http; namespace Amazon.S3 { internal static class HttpResponseMessageExtensions { public static Dictionary<string, string> GetProperties(this HttpResponseMessage response) { #if NET5_0 var result = new Dictionary<string, string>(16...
mit
C#
15123cb3bdf3d78b9fa18af371b4832314a79dcc
Add SynchronizerSetttings.cs
Ackara/Daterpillar
src/Daterpillar.Core/Migration/SynchronizerSettings.cs
src/Daterpillar.Core/Migration/SynchronizerSettings.cs
namespace Gigobyte.Daterpillar.Migration { public struct SynchronizerSettings { public static SynchronizerSettings Default = new SynchronizerSettings() { IncludeComments = true, IncludeDropCommands = false }; public bool IncludeComments { get; set; } ...
mit
C#
fadeacf3383dc5b2ee791382ab9c466be0dd17ab
Add auditing and notifications
nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke
build/Build.Enterprise.cs
build/Build.Enterprise.cs
// Copyright 2021 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE #if ENTERPRISE using System; using Nuke.Common.CI.AppVeyor; using Nuke.Common.CI.AzurePipelines; using Nuke.Common.CI.GitHubActions; using Nuke.Common.CI.TeamCity; using Nuke.Common....
mit
C#
53ec76c642df518c00b5bba542bda52f55b54435
Add method to return Edge from IRefAxis
Weingartner/SolidworksAddinFramework
SolidworksAddinFramework/RefAxisExtensions.cs
SolidworksAddinFramework/RefAxisExtensions.cs
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; using SolidworksAddinFramework.Geometry; using SolidWorks.Interop.sldworks; namespace SolidworksAddinFramework { public static class RefAxisExtensions { public sta...
mit
C#
984a243eff796505ee9f2ca6e85ae2a00233e3a4
Add skinnable test scene for HUD overlay
smoogipoo/osu,UselessToucan/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,ppy/osu,UselessToucan/osu,smoogipooo/osu,ppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,peppy/osu-new,UselessToucan/osu,smoogipoo/osu
osu.Game.Tests/Visual/Gameplay/TestSceneSkinnableHUDOverlay.cs
osu.Game.Tests/Visual/Gameplay/TestSceneSkinnableHUDOverlay.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Extensions.IEnumerableExtens...
mit
C#
73591c99e5c32d76223f5cd1acf93fecd7cb9ae0
Add JsonContent for using with HttpClient
skarpdev/dotnetcore-hubspot-client
src/JsonContent.cs
src/JsonContent.cs
using System.Net.Http; using System.Text; namespace Skarp.HubSpotClient { public class JsonContent : StringContent { public JsonContent(string json) : this(json, Encoding.UTF8) { } public JsonContent(string json, Encoding encoding) : base(json, encoding, "application/json") ...
mit
C#
123a3bbe3c65c6a7d4e53ea1ad0117ba97d7bb78
add exception class.
dotnetcore/CAP,dotnetcore/CAP,ouraspnet/cap,dotnetcore/CAP
src/DotNetCore.CAP/Internal/MethodBindException.cs
src/DotNetCore.CAP/Internal/MethodBindException.cs
using System; namespace DotNetCore.CAP.Internal { [Serializable] public class MethodBindException : Exception { public MethodBindException() { } public MethodBindException(string message) : base(message) { } public MethodBindException(string message, Exception inner) : base(message...
mit
C#
99ffe61681884832cc59d17c0f884d7f0e352ab7
Define the factory to handle the build of list
Seddryck/NBi,Seddryck/NBi
NBi.Core/Members/PredefinedMembersFactory.cs
NBi.Core/Members/PredefinedMembersFactory.cs
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; namespace NBi.Core.Members { public class PredefinedMembersFactory { private readonly ICollection<BuilderRegistration> registrations; public PredefinedMembersFactory() { ...
apache-2.0
C#
8bcedb6224ffc62c0ef32c7a19cccf8117d6f5b3
Add View
Silvertorch5/RobustEngine
Graphics/View.cs
Graphics/View.cs
using OpenTK; using OpenTK.Graphics.OpenGL; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RobustEngine.Graphics { public class View { public Vector2 Position; public double Rotation; public double Zoom; ...
mit
C#
272a991b01d748669713c3225775e37d1f78232f
Create Inventory.cs
TeamLockheed/LockheedTheGame
Lockheed_Inventory/Inventory/Inventory.cs
Lockheed_Inventory/Inventory/Inventory.cs
using System; using System.Collections.Generic; using Lockheed_Inventory.Inventory.Interfaces; namespace Lockheed_Inventory.Inventory { public abstract class Inventory : ITakeable, IRemovable { protected Inventory(List<Item> itemList) { this.ItemList = itemList; } p...
mit
C#
6e1f8883c0d8d469664fe077356dd9e331ff0c96
Support C# 9 records
aelij/roslynpad
src/RoslynPad.Runtime/IsExternalInit.cs
src/RoslynPad.Runtime/IsExternalInit.cs
namespace System.Runtime.CompilerServices { /// <summary> /// Dummy class so C# 'Record' types can compile on NetStandard and NetFx. /// </summary> public sealed class IsExternalInit { } }
apache-2.0
C#
ceb049a20e779556867f890580425f01ad020524
Add file that wasn't in repo
Therzok/MonoDevelop.ResXEditor
MonoDevelop.ResXEditor/Gui/ResXEditorDisplayBinding.cs
MonoDevelop.ResXEditor/Gui/ResXEditorDisplayBinding.cs
using System; using MonoDevelop.Core; using MonoDevelop.Ide.Gui; using MonoDevelop.Projects; namespace MonoDevelop.ResXEditor.Gui { class ResXEditorDisplayBinding : IViewDisplayBinding { public string Name { get { return "ResX Editor"; } } public bool CanUseAsDefault { get { return true; } } ...
mit
C#
bd6d6c5d32250a7ed341f7ac9edea00060621656
Add ExpandIconEraser.
cube-soft/Cube.Core,cube-soft/Cube.Core
ExpandIconEraser.cs
ExpandIconEraser.cs
/* ------------------------------------------------------------------------- */ // // Copyright (c) 2010 CubeSoft, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www...
apache-2.0
C#
5c43eeadf702313d63032bb0f178126526f6e899
Add a very basic class to allow placing buttons on-screen.
dneelyep/MonoGameUtils
MonoGameUtils/UI/Button.cs
MonoGameUtils/UI/Button.cs
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace MonoGameUtils.UI { /// <summary> /// Represents a rectangular button that can be clicked in a game. /// </summary> public class Button : DrawableGameComponent { public SpriteFont Font { get; set; } pub...
mit
C#
4efff26f53c5fbaa778f467b52cae03aeb0da41d
Implement basic CoroutinePromise, CoroutinePromiseSet, and AsyncBehaviour
holycattle/coroutine-promises
AsyncBehaviour.cs
AsyncBehaviour.cs
using UnityEngine; using System.Collections; using System.Collections.Generic; public class CoroutinePromise { IEnumerator coroutine; CoroutinePromise promise; bool isDone = false; public CoroutinePromise(IEnumerator c) { coroutine = c; } public CoroutinePromise Then(IEnumerator newCoroutine) { promis...
mit
C#
a74e28dd05ce67a4f2795a4d6d95e5146e83c1d5
Add TeacherEditItem DTO
denismaster/DiplomContentSystem,denismaster/DiplomContentSystem,denismaster/DiplomContentSystem,denismaster/DiplomContentSystem
src/DiplomContentSystem.Dto/Teachers/TeachersEditItem.cs
src/DiplomContentSystem.Dto/Teachers/TeachersEditItem.cs
namespace DiplomContentSystem.Dto { public class TeacherEditItem { public int? Id {get;set;} public string FIO {get;set;} public int PositionId {get;set;} public int Speciality {get;set;} public int MaxWorkCount {get;set;} } }
apache-2.0
C#
272ec7c310bdcf5d87ac898cd9d9c54ba8efb351
Check stack trace (#705)
Microsoft/clrmd,cshung/clrmd,Microsoft/clrmd,cshung/clrmd
src/Microsoft.Diagnostics.Runtime.Tests/src/StackTest.cs
src/Microsoft.Diagnostics.Runtime.Tests/src/StackTest.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Linq; using Xunit; namespace Microsoft.Diagnostics.Runtime.Tests { public class StackTest { ...
mit
C#
445bfc173e9db03522d4369edb1d3e8fd105b348
Add IInterceptorTable for global interceptor
AspectCore/Abstractions,AspectCore/AspectCore-Framework,AspectCore/AspectCore-Framework,AspectCore/Lite
src/AspectCore.Lite.Abstractions/IInterceptorTable.cs
src/AspectCore.Lite.Abstractions/IInterceptorTable.cs
using System; using System.Collections.Generic; namespace AspectCore.Lite.Abstractions { [NonAspect] public interface IInterceptorTable : IEnumerable<IInterceptor> { void Add(Type interceptorType, params object[] args); } }
mit
C#
43d84327b4650163078498904423df1effe518a9
Add AccessibleAspectValidationHandler
AspectCore/Lite,AspectCore/Abstractions,AspectCore/AspectCore-Framework,AspectCore/AspectCore-Framework
src/AspectCore.Abstractions/Internal/ValidationHandler/AccessibleAspectValidationHandler.cs
src/AspectCore.Abstractions/Internal/ValidationHandler/AccessibleAspectValidationHandler.cs
using System.Reflection; namespace AspectCore.Abstractions.Internal.ValidationHandler { public class AccessibleAspectValidationHandler : IAspectValidationHandler { public int Order { get; } = 3; public bool Invoke(MethodInfo method, AspectValidationDelegate next) { var dec...
mit
C#
815d2fc1bb369d1e13d7b0f2cc875b06447e1bf2
add proget packages tests
lvermeulen/ProGet.Net
test/ProGet.Net.Tests/Native/Feeds/ProGetClientShould.cs
test/ProGet.Net.Tests/Native/Feeds/ProGetClientShould.cs
using System.Threading.Tasks; using Xunit; // ReSharper disable CheckNamespace namespace ProGet.Net.Tests { public partial class ProGetClientShould { [Fact] public async Task wLogMessages_GetMessagesAsync() { var results = await _client.LogMessages_GetMessagesAsync(1000, t...
mit
C#
4d62a5be311880f3b6860e411f1b8f2b9efedb53
Add clone ctor in Field
zillemarco/CppSharp,mydogisbox/CppSharp,KonajuGames/CppSharp,mohtamohit/CppSharp,genuinelucifer/CppSharp,genuinelucifer/CppSharp,ddobrev/CppSharp,imazen/CppSharp,mono/CppSharp,mydogisbox/CppSharp,txdv/CppSharp,Samana/CppSharp,ddobrev/CppSharp,u255436/CppSharp,ddobrev/CppSharp,u255436/CppSharp,mono/CppSharp,nalkaro/CppS...
src/AST/Field.cs
src/AST/Field.cs
namespace CppSharp.AST { /// <summary> /// Represents a a C/C++ record field Decl. /// </summary> public class Field : Declaration, ITypedDecl { public Type Type { get { return QualifiedType.Type; } } public QualifiedType QualifiedType { get; set; } public uint Offset { get;...
namespace CppSharp.AST { /// <summary> /// Represents a a C/C++ record field Decl. /// </summary> public class Field : Declaration, ITypedDecl { public Type Type { get { return QualifiedType.Type; } } public QualifiedType QualifiedType { get; set; } public uint Offset { get;...
mit
C#
a57dc7434574da7ea61f477f2f716270b6e94be6
Add the missing migrator.
TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim
Aurora/DataManager/Migration/Migrators/RegionInfo/RegionInfoMigrator_2.cs
Aurora/DataManager/Migration/Migrators/RegionInfo/RegionInfoMigrator_2.cs
using System; using System.Collections.Generic; using C5; using Aurora.Framework; namespace Aurora.DataManager.Migration.Migrators { public class RegionInfoMigrator_2 : Migrator { public RegionInfoMigrator_2() { Version = new Version(0, 0, 2); MigrationName =...
bsd-3-clause
C#
97b34a74c3911b7b10ba77ea790138a2e8267610
add updaterepeatable
tiltom/PV247-Expense-manager,tiltom/PV247-Expense-manager,tiltom/PV247-Expense-manager
ExpenseManager/ExpenseManager.Web/Views/DashBoard/UpdateRepeatable.cshtml
ExpenseManager/ExpenseManager.Web/Views/DashBoard/UpdateRepeatable.cshtml
@{ Layout = null; } <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title></title> </head> <body> <div> </div> </body> </html>
mit
C#
3c28a16082e7e04d6658b684d280c600386db5ef
Add Keyword class containing all template keywords
whampson/cascara,whampson/bft-spec
Implementations/CSharp/WHampson.BFT/Keyword.cs
Implementations/CSharp/WHampson.BFT/Keyword.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#
0e03f156fbfa2df6688ee4f7f8ffe5f699245860
add stub media-on-a-prim (shared media) module
TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim
OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must r...
bsd-3-clause
C#
634dcbfd07e44adf09c67b552bbf31e21d9093e9
Add StringListPool
carbon/Amazon
src/Amazon.Core/Helpers/StringListPool.cs
src/Amazon.Core/Helpers/StringListPool.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // Based on: https://github.com/dotnet/runtime/tree/main/src/libraries/System.Reflection.Metadata/src/System/Reflection/Internal/Utilities/ObjectPool%601.cs using System.Threading;...
mit
C#
a5205ce6e8b47be0c3324c2cc62860944d98db77
Add MathHelper class
ProgTrade/SharpMath
SharpMath/MathHelper.cs
SharpMath/MathHelper.cs
// Author: Dominic Beger (Trade/ProgTrade) 2016 using System; // ReSharper disable InconsistentNaming namespace SharpMath { /// <summary> /// Provides constants and methods for logarithmic, trigonometric and other useful mathematical functions. /// </summary> public static class MathHelper {...
mit
C#
2d2a68702d884c6996ef0d8fe7a1dcae5a85a2c5
Add EncryptedText
yufeih/Common
src/EncryptedText.cs
src/EncryptedText.cs
namespace System.Security.Cryptography { using System; using System.IO; public static class EncryptedText { public static string Encrypt(string plainText, byte[] key, byte[] iv) { using (var rij = new RijndaelManaged { Key = key, IV = iv }) { ...
mit
C#
97663e71724a900575258de6f4ee2f940742afb0
Remove suppression (#50366)
AmadeusW/roslyn,AlekseyTs/roslyn,mgoertz-msft/roslyn,jasonmalinowski/roslyn,sharwell/roslyn,weltkante/roslyn,shyamnamboodiripad/roslyn,mavasani/roslyn,mavasani/roslyn,weltkante/roslyn,AlekseyTs/roslyn,dotnet/roslyn,mgoertz-msft/roslyn,CyrusNajmabadi/roslyn,physhi/roslyn,diryboy/roslyn,tannergooding/roslyn,diryboy/rosly...
src/Compilers/Core/Portable/InternalUtilities/ImmutableArrayExtensions.cs
src/Compilers/Core/Portable/InternalUtilities/ImmutableArrayExtensions.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; namespace Roslyn.Utilities { ...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; namespace Roslyn.Utilities { ...
mit
C#
7996932eb6001600016797301f75afbbbd039ead
Create TickableManager.cs
DGoodayle/TickableObjects
TickableManager.cs
TickableManager.cs
/* Tickable Classes by Just a Pixel - Danny Goodayle (@DGoodayle) - http://www.justapixel.co.uk The MIT License (MIT) Copyright (c) 2015 DGoodayle 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...
mit
C#
66faae2a6b9634fc8c7ed3502ae88e22032e480e
Add basic clipboards tests
NeoAdonis/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu,smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,ppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu-new
osu.Game.Tests/Visual/Editing/TestSceneEditorClipboard.cs
osu.Game.Tests/Visual/Editing/TestSceneEditorClipboard.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Linq; using NUnit.Framework; using osu.Game.Beatmaps; using osu.Game.Rulesets; using osu.Game.Rulesets.Osu; using osu.Game.Rulesets.Osu.Objects; using osu.Ga...
mit
C#
0c78f81701b93f50c74a863a82c9c7437d2b8098
Add CssComment node
Carbon/Css
Carbon.Css/Ast/CssComment.cs
Carbon.Css/Ast/CssComment.cs
namespace Carbon.Css { public class CssComment : CssNode { public CssComment(string text) : base(NodeKind.Comment) { Text = text; } public string Text { get; } } }
mit
C#
8d70a96dd717a8f3df5226b3c536ad3de3513764
Create RemoveFolder.cs
kilasuit/PnP-PowerShell,iiunknown/PnP-PowerShell,OfficeDev/PnP-PowerShell
Commands/Web/RemoveFolder.cs
Commands/Web/RemoveFolder.cs
using System; using System.Management.Automation; using Microsoft.SharePoint.Client; using SharePointPnP.PowerShell.CmdletHelpAttributes; using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; using OfficeDevPnP.Core.Utilities; namespace SharePointPnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Re...
mit
C#
289f118588294ffc509c7544f10ed674ce3664c2
Add ProjectOperationBenchmarks
eriawan/roslyn,CyrusNajmabadi/roslyn,wvdd007/roslyn,CyrusNajmabadi/roslyn,ErikSchierboom/roslyn,tannergooding/roslyn,sharwell/roslyn,AlekseyTs/roslyn,weltkante/roslyn,mavasani/roslyn,jasonmalinowski/roslyn,tannergooding/roslyn,bartdesmet/roslyn,diryboy/roslyn,KevinRansom/roslyn,mgoertz-msft/roslyn,sharwell/roslyn,shyam...
src/Tools/IdeCoreBenchmarks/ProjectOperationBenchmarks.cs
src/Tools/IdeCoreBenchmarks/ProjectOperationBenchmarks.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Text; using BenchmarkDotNet.Attributes; using Microsoft.CodeAnalysis; using Microsoft.Co...
mit
C#
5b60db592ae86493285e2e577e1dcd8af37715c7
Prepare ShuntingYard for a state object
IvionSauce/MeidoBot
IrcCalc/ShuntingYardState.cs
IrcCalc/ShuntingYardState.cs
using System; using System.Collections.Generic; using Calculation.ExtensionMethods; using Operators = Calculation.ShuntingYardOperators; namespace Calculation { class SmashTheState { public int OpCount { get { return opStack.Count; } } public bool NextIsFunction ...
bsd-2-clause
C#
91e2dd2276cc1d0d998a746d843d24b603d5e5d4
Add command to enable the lobby, restart the round and set a preset (#2786)
space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14
Content.Server/Commands/GameTicking/GoLobbyCommand.cs
Content.Server/Commands/GameTicking/GoLobbyCommand.cs
#nullable enable using System; using Content.Server.Administration; using Content.Server.Interfaces.GameTicking; using Content.Shared; using Content.Shared.Administration; using Robust.Server.Interfaces.Console; using Robust.Server.Interfaces.Player; using Robust.Shared.Interfaces.Configuration; using Robust.Shared.Io...
mit
C#
c94d03610ac5b7a47e601e24503b81f6ef1f1dd1
Create TestViewModel.cs
NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework
Core/NakedObjects.SystemTest/ViewModel/TestViewModel.cs
Core/NakedObjects.SystemTest/ViewModel/TestViewModel.cs
// Copyright Naked Objects Group Ltd, 45 Station Road, Henley on Thames, UK, RG9 1AT // 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 requ...
apache-2.0
C#
21518c9aded8b1f611c8443b1d9d9f5baf1d79e1
Remove bogus comment.
genlu/roslyn,stephentoub/roslyn,akrisiun/roslyn,drognanar/roslyn,OmarTawfik/roslyn,reaction1989/roslyn,akrisiun/roslyn,KirillOsenkov/roslyn,AmadeusW/roslyn,khyperia/roslyn,jasonmalinowski/roslyn,panopticoncentral/roslyn,jcouv/roslyn,Giftednewt/roslyn,bbarry/roslyn,jmarolf/roslyn,panopticoncentral/roslyn,AmadeusW/roslyn...
src/Workspaces/Remote/ServiceHub/Services/RemoteSymbolSearchUpdateEngine.cs
src/Workspaces/Remote/ServiceHub/Services/RemoteSymbolSearchUpdateEngine.cs
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.CodeAnalysis.SymbolSearch; namespace Microsoft.CodeAnalysis....
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.CodeAnalysis.SymbolSearch; namespace Microsoft.CodeAnalysis....
apache-2.0
C#
beb0c4adcdf281bdc0f091e043c2d48f146ed5bb
Create BaseHttpClient.cs
daniela1991/hack4europecontest
BaseHttpClient.cs
BaseHttpClient.cs
using System; using System.Net.Http; using System.Net.Http.Headers; namespace Cdiscount.OpenApi.ProxyClient.Contract.Common { public class BaseHttpClient : HttpClient { private const string ApiAddress = "https://api.cdiscount.com/"; public BaseHttpClient() { this.BaseAddres...
mit
C#
c8b9a25c75858bad764085760bb62ac75748e2de
Add MatthewDowst.cs for my blog
planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell
src/Firehose.Web/Authors/MatthewDowst.cs
src/Firehose.Web/Authors/MatthewDowst.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 MatthewDowst : IAmAMicrosoftMVP { public string FirstName => "Matthew"; public string Last...
mit
C#
cb3fa4fd62fd7663f21ead7b4c43959a7d2e60b1
Add prototype related tests
copygirl/EntitySystem
test/EntitySystem.Tests/PrototypeTests.cs
test/EntitySystem.Tests/PrototypeTests.cs
using System.Linq; using EntitySystem.Components; using Xunit; namespace EntitySystem.Tests { public class PrototypeTests { public EntityManager Entities { get; } = new EntityManager(); [Fact] public void TestPrototypeSimple() { var prototype = Entities.New(new TestComponent(10)); var derived = Enti...
mit
C#
5c65ab5467757af5923e643da7a99afbde834512
Add classes
sakapon/KLibrary.Linq
KLibrary4/Linq/Linq/Array2.cs
KLibrary4/Linq/Linq/Array2.cs
using System; namespace KLibrary.Linq { public static class Array2 { public static T[] Subarray<T>(this T[] source, int start, int count) { if (source == null) throw new ArgumentNullException(nameof(source)); var a = new T[count]; Array.Copy(sour...
mit
C#
1efc2e47efdb190baad3f1d3eaccc9a57a9fd9f4
Add tests for F.ToList
farity/farity
Farity.Tests/ToListTests.cs
Farity.Tests/ToListTests.cs
using System.Collections.Immutable; using Xunit; namespace Farity.Tests { public class ToListTests { [Fact] public void ToListReturnsImmutableList() { var data = new[] { 1, 2, 3, 4, 5 }; var actual = F.ToList(data); Assert.IsType<ImmutableList<int>>(...
mit
C#
ad789418c5aab79f328bcd927140ab27b85ac56c
Create RepositoryCaching.cs
kelong/Data-Repository-with-Data-Caching-in-ASP.NET-MVC-4,CarmelSoftware/Data-Repository-with-Data-Caching-in-ASP.NET-MVC-4
Models/RepositoryCaching.cs
Models/RepositoryCaching.cs
// TODO: create Caching Class to store data in MemoryCache :
mit
C#
3d227b70fb2a3a7a491e3c7b3a682a69071ffeea
Create InsturctionSet.cs
vallenti/SoftUni-Debugging-Lab
InsturctionSet.cs
InsturctionSet.cs
using System; class InstructionSet { private static void Main() { string opCode = Console.ReadLine(); while (opCode != "END") { string[] codeArgs = opCode.Split(' '); long result = 0; switch (codeArgs[0]) { case "INC": ...
cc0-1.0
C#
21db99c60daef30a359f3d0ae43888530a586dc5
Fix EditorWindow.Text marshalling to the other process
KirillOsenkov/roslyn,Hosch250/roslyn,DustinCampbell/roslyn,mmitche/roslyn,pdelvo/roslyn,TyOverby/roslyn,drognanar/roslyn,AmadeusW/roslyn,akrisiun/roslyn,davkean/roslyn,MatthieuMEZIL/roslyn,shyamnamboodiripad/roslyn,michalhosala/roslyn,MichalStrehovsky/roslyn,VSadov/roslyn,natidea/roslyn,bartdesmet/roslyn,amcasey/roslyn...
src/VisualStudio/TestUtilities/Window/EditorWindow.cs
src/VisualStudio/TestUtilities/Window/EditorWindow.cs
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Roslyn.VisualStudio.Test.Utilities.Remoting; namespace Roslyn.VisualStudio.Test.Utilities { /// <summary>Provides a means of interacting with the ...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Roslyn.VisualStudio.Test.Utilities.Remoting; namespace Roslyn.VisualStudio.Test.Utilities { /// <summary>Provides a means of interacting with the ...
apache-2.0
C#
ccab06e41dffa9950b44aa6cfb521ad933887cbb
Fix typo
ViktorHofer/corefx,zhenlan/corefx,Ermiar/corefx,ericstj/corefx,ptoonen/corefx,ericstj/corefx,zhenlan/corefx,ravimeda/corefx,axelheer/corefx,Jiayili1/corefx,BrennanConroy/corefx,Ermiar/corefx,ravimeda/corefx,Ermiar/corefx,mmitche/corefx,wtgodbe/corefx,ravimeda/corefx,ptoonen/corefx,zhenlan/corefx,ViktorHofer/corefx,Vikt...
src/System.Runtime/tests/System/Reflection/ReflectionTypeLoadExceptionTests.cs
src/System.Runtime/tests/System/Reflection/ReflectionTypeLoadExceptionTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using Xunit; namespace System.Reflection.Tests { public static class ReflectionTypeLoadException...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using Xunit; namespace System.Reflection.Tests { public static class ReflectionTypeLoadException...
mit
C#
185ad01ba38bbfa66f0fc8aa1cc31e5bcae52c32
Add failing test of deserializing deeply nested JSON with higher-than-default MaxDepth set
manuc66/JsonSubTypes
JsonSubTypes.Tests/DeeplyNestedDeserializationTests.cs
JsonSubTypes.Tests/DeeplyNestedDeserializationTests.cs
using Newtonsoft.Json; using NUnit.Framework; namespace JsonSubTypes.Tests { [TestFixture] public class DeeplyNestedDeserializationTests { [JsonConverter(typeof(JsonSubtypes), nameof(SubTypeClass.Discriminator))] [JsonSubtypes.KnownSubType(typeof(SubTypeClass), "SubTypeClass")] pub...
mit
C#
36c16d58d658374c224c8f2852ba796dccc8c1ba
test script
senips/FitnesseTutorial,senips/FitnesseTutorial
TestControlFixtures/TestControlFixtures/testscriptrun.cs
TestControlFixtures/TestControlFixtures/testscriptrun.cs
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Testcontrol { [TestClass] public class TestRunnerTest { [TestMethod] public void ParseScriptLine() { ...
mit
C#
4ea9b02aa64864890aa9c88cc849fa0dd763e146
Reset the Application Entry Point
Rap-ID/Rap-ID-Windows,Rap-ID/Rap-ID-Windows
Auth/Program.cs
Auth/Program.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using RapID.ClassLibrary; namespace RapID.Auth { static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] st...
apache-2.0
C#
5d30806b811e6d3a4696425c7c033002cfd96244
Add tests for F.Curry
farity/farity
Farity.Tests/CurryTests.cs
Farity.Tests/CurryTests.cs
using System; using Xunit; namespace Farity.Tests { public class CurryTests { [Fact] public void CurryingWorksForArity2() { Func<int, int, int> sum = (a, b) => a + b; Assert.Equal( sum(1, 2), F.Curry(sum)(1)(2)); ...
mit
C#
3f40850d3c0535d02df422554aee65d3f47d0096
add Yolo tests
shimat/opencvsharp,shimat/opencvsharp,shimat/opencvsharp
test/OpenCvSharp.Tests/dnn/YoloTest.cs
test/OpenCvSharp.Tests/dnn/YoloTest.cs
using System; using System.IO; using System.Linq; using System.Threading.Tasks; using OpenCvSharp.Dnn; using Xunit; namespace OpenCvSharp.Tests.Dnn { public class YoloTest : TestBase { // https://github.com/opencv/opencv/blob/24bed38c2b2c71d35f2e92aa66648f8485a70892/samples/dnn/yolo_object_detection.c...
apache-2.0
C#
0aeeecca6454c8963be38032df761e855e459ce6
Create Factorial.cs
natalya-k/algorithms
math/Factorial.cs
math/Factorial.cs
using System; namespace Algorithms { static class Factorial { public static void Test() { for (int n = 0; n <= 12; n++) { Console.WriteLine("n = {0}", n); Console.WriteLine(Iteration(n)); Console.WriteLine(Recursion(n)); ...
mit
C#
1dbcd2d2f48458e672bffab64c1541e778b21b0d
Create /Models/DatabaseModels/BookLoan Class.
Programazing/Open-School-Library,Programazing/Open-School-Library
src/Open-School-Library/Models/DatabaseModels/BookLoan.cs
src/Open-School-Library/Models/DatabaseModels/BookLoan.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Open_School_Library.Models.DatabaseModels { public class BookLoan { public int BookLoanID { get; set; } public int BookID { get; set; } public int StudentID { get; set; } ...
mit
C#
3a810e90eff6e2ce68d955126fbc501ad6745c1c
Add tests for RepositorySelectViewModel.Filter
github/VisualStudio,github/VisualStudio,github/VisualStudio
test/GitHub.App.UnitTests/ViewModels/Dialog/Clone/RepositorySelectViewModelTests.cs
test/GitHub.App.UnitTests/ViewModels/Dialog/Clone/RepositorySelectViewModelTests.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Data; using GitHub.Models; using GitHub.Primitives; using GitHub.Services; using GitHub.ViewModels.Dialog.Clone; using NSubstitute; using NUnit.Framework; public class RepositorySelectViewModelTests {...
mit
C#
0b15d4afefe87e837738c98bf26dc22e752c6718
Make Encoders singletons
NicolasDorier/NBitcoin,HermanSchoenfeld/NBitcoin,stratisproject/NStratis,lontivero/NBitcoin,bitcoinbrisbane/NBitcoin,dangershony/NStratis,MetacoSA/NBitcoin,MetacoSA/NBitcoin,you21979/NBitcoin,thepunctuatedhorizon/BrickCoinAlpha.0.0.1
NBitcoin/DataEncoders/Encoders.cs
NBitcoin/DataEncoders/Encoders.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NBitcoin.DataEncoders { public class DataEncoder { public static readonly char[] SpaceCharacters = new[] { ' ', '\t', '\n', '\v', '\f', '\r' }; public static bool IsSpace(char...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NBitcoin.DataEncoders { public class DataEncoder { public static readonly char[] SpaceCharacters = new[] { ' ', '\t', '\n', '\v', '\f', '\r' }; public static bool IsSpace(char...
mit
C#
6d19d5d4f049262df74ac89eb3f173388e0888ca
Add tests for DictionaryExtensions
another-guy/Peppermint
Peppermint.Tests/Dictionaries/DictionaryExtensionsTests.cs
Peppermint.Tests/Dictionaries/DictionaryExtensionsTests.cs
using System.Collections.Generic; using System.Linq; using Peppermint.Dictionaries; using Xunit; namespace Peppermint.Tests.Dictionaries { public class DictionaryExtensionsTests { [Fact] public void NullToEmptyReturnsOriginalForNonNullDictionary() { // Arrange v...
mit
C#
c4250f801b31d3cf21f9a960203d1da2359286ba
Create Gate.cs
irtezasyed007/CSC523-Game-Project
Gates/Gate.cs
Gates/Gate.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CSC_523_Game { abstract class Gate { public Variable[] vars; public Gate(Variable [] vars) { this.vars = vars; } public abstract bo...
mit
C#
d0184620cd65b4ebbaaf8b5be7eb6c0571b9650e
Create PanelMover.cs
Gianxs/CitiesSkylineFavoriteCimsMod
PanelMover.cs
PanelMover.cs
using ICities; using UnityEngine; using System.Collections; using ColossalFramework; using ColossalFramework.UI; namespace FavoriteCims { public class WindowController : UIDragHandle { Vector3 MousePos; float maX; float maY; float deltaX; float deltaY; public UIComponent ComponentToMove; public bool ...
mit
C#
504303a10a218f57d532a73c10b00a6394ee8461
handle more commands
Elders/VSE-FormatDocumentOnSave,segrived/VSE-FormatDocumentOnSave
src/NMSD.VSE-FormatDocumentOnSave/FormatDocumentOnSave.cs
src/NMSD.VSE-FormatDocumentOnSave/FormatDocumentOnSave.cs
using EnvDTE; using Microsoft.VisualStudio; namespace NMSD.VSE_FormatDocumentOnSave { internal class FormatDocumentOnSave { private static bool shouldRegisterFormatDocumentOnSave = true; private readonly DocumentFormatter _documentFormatter; public FormatDocumentOnSave(DTE d...
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Linq; using EnvDTE; namespace NMSD.VSE_FormatDocumentOnSave { internal class FormatDocumentOnSave { private static bool shouldRegisterFormatDocumentOnSave = true; priv...
apache-2.0
C#
d617913bf834f9e830aa2d7a181b2f1ad20e6b1a
Fix LINQ code.
ronnymgm/csla-light,rockfordlhotka/csla,BrettJaner/csla,jonnybee/csla,MarimerLLC/csla,BrettJaner/csla,rockfordlhotka/csla,jonnybee/csla,rockfordlhotka/csla,JasonBock/csla,MarimerLLC/csla,JasonBock/csla,MarimerLLC/csla,ronnymgm/csla-light,JasonBock/csla,BrettJaner/csla,jonnybee/csla,ronnymgm/csla-light
ProjectTrackercs/PTWin/ProjectSelect.cs
ProjectTrackercs/PTWin/ProjectSelect.cs
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using ProjectTracker.Library; using System.Linq; namespace PTWin { public partial class ProjectSelect : Form { private Guid _projectId; publ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using ProjectTracker.Library; using System.Linq; namespace PTWin { public partial class ProjectSelect : Form { private Guid _projectId; publ...
mit
C#
cb51945de9a0b6f8fc58329d02e6b1e63ef76ac1
Add tool to update all dependencies
jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/gcloud-dotnet
tools/Google.Cloud.Tools.ReleaseManager/UpdateDependencies.cs
tools/Google.Cloud.Tools.ReleaseManager/UpdateDependencies.cs
// Copyright 2021 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#
16d74def390855e857843cc39308846e0114ab00
create nlog logger
smith-neil/DotNetCore
src/DotNetCore.Infrastructure/Logging/NLogLogger.cs
src/DotNetCore.Infrastructure/Logging/NLogLogger.cs
using System; using DotNetCore.Core.Utilities; using NLog; namespace DotNetCore.Infrastructure.Logging { public class NLogLogger : ILogger { private static readonly Lazy<NLogLogger> LazyLogger = new Lazy<NLogLogger>(() => new NLogLogger()); private static readonly Lazy<NLog.Logger> LazyNLogge...
mit
C#
1f66415ddf52930399522e650d64f36054201bc3
Add BodyPart custom editor.
stevefsp/Lizitt-Unity3D-Outfitter
Source/Plugins/Lizitt/Outfitter/Editor/BodyPartEditor.cs
Source/Plugins/Lizitt/Outfitter/Editor/BodyPartEditor.cs
/* * Copyright (c) 2016 Stephen A. Pratt * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, ...
mit
C#