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
0068e7f163a9d4afc530fbf066e200e13181bad3
Add missing file
felipebz/ndapi
Ndapi/Point.cs
Ndapi/Point.cs
using Ndapi.Core.Handles; using Ndapi.Enums; namespace Ndapi { public class Point : NdapiObject { /// <summary> /// Creates a point. /// </summary> /// <param name="graphics">Point owner.</param> /// <param name="name">Point name.</param> public Point(Graphics g...
mit
C#
779ae1ba0bfbfaaaac8bc22083644492d839c370
Remove colour properties and rely on parent
DrabWeb/osu-framework,Nabile-Rahmani/osu-framework,Tom94/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,paparony03/osu-framework,naoey/osu-framework,ppy/osu-framework,naoey/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,EVAST9919/os...
osu.Framework/Graphics/Shapes/Circle.cs
osu.Framework/Graphics/Shapes/Circle.cs
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Graphics.Colour; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Sprites; namespace osu.Framework.Graphics.S...
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Graphics.Colour; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Sprites; namespace osu.Framework.Graphics.S...
mit
C#
4c28409254c8c3ee62cd0c33752317c35269d068
Create Mult.cs
SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming
Kattis-Solutions/Mult.cs
Kattis-Solutions/Mult.cs
using System; using System.Collections.Generic; namespace Mult { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); List<int> li = new List<int>(n); int t,startNum, startPos, currPos; for(int i = 0; i < n; i+...
mit
C#
20e553bcd1b9784600a871adbe0f00aeb304a3ca
Create Magc structure
Xeeynamo/KingdomHearts
OpenKh.Kh2/Battle/Magc.cs
OpenKh.Kh2/Battle/Magc.cs
using System.Collections.Generic; using System.IO; using Xe.BinaryMapper; namespace OpenKh.Kh2.Battle { public class Magc { [Data] public byte Id { get; set; } [Data] public byte Level { get; set; } [Data] public byte World { get; set; } [Data] public byte Padding { get; set; } ...
mit
C#
f3a9046a9dd77a7fffe40b2f35a10139ab56b5a6
remove unused namespaces
xiangyan99/BotBuilder,stevengum97/BotBuilder,yakumo/BotBuilder,stevengum97/BotBuilder,msft-shahins/BotBuilder,yakumo/BotBuilder,msft-shahins/BotBuilder,xiangyan99/BotBuilder,msft-shahins/BotBuilder,stevengum97/BotBuilder,xiangyan99/BotBuilder,yakumo/BotBuilder,xiangyan99/BotBuilder,stevengum97/BotBuilder,msft-shahins/B...
CSharp/Library/Scorables/ResolverScorable.cs
CSharp/Library/Scorables/ResolverScorable.cs
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Bot Framework: http://botframework.com // // Bot Builder SDK Github: // https://github.com/Microsoft/BotBuilder // // Copyright (c) Microsoft Corporation // All rights reserved. // // MIT License: // Permission ...
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Bot Framework: http://botframework.com // // Bot Builder SDK Github: // https://github.com/Microsoft/BotBuilder // // Copyright (c) Microsoft Corporation // All rights reserved. // // MIT License: // Permission ...
mit
C#
644e18787850457450dafb7a9e53358c667e328a
Create kod.cs
jakubcze/prywatnejm
kod.cs
kod.cs
int a = 2;
mit
C#
fed9a47866664a689ac6dd0c916e578b7a653970
Add test coverage
peppy/osu,peppy/osu,ppy/osu,ppy/osu,ppy/osu,peppy/osu
osu.Game.Tests/Visual/Gameplay/TestSceneSoloGameplayLeaderboard.cs
osu.Game.Tests/Visual/Gameplay/TestSceneSoloGameplayLeaderboard.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using System.Linq; using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Utils; using...
mit
C#
0cbba896144dc11b9c21b906486e43104d1d0117
Add WhiteSpaceParser
StevenLiekens/TextFx,StevenLiekens/Txt
src/Txt.ABNF/Core/WSP/WhiteSpaceParser.cs
src/Txt.ABNF/Core/WSP/WhiteSpaceParser.cs
using Txt.Core; namespace Txt.ABNF.Core.WSP { public class WhiteSpaceParser : Parser<WhiteSpace, char> { protected override char ParseImpl(WhiteSpace value) { return value.Text[0]; } } }
mit
C#
19f980c9a426de824e7e8f58fbeb5eff43894432
Create DeleteSkillCommand.cs
NinjaVault/NinjaHive,NinjaVault/NinjaHive
NinjaHive.Contract/Commands/DeleteSkillCommand.cs
NinjaHive.Contract/Commands/DeleteSkillCommand.cs
using System.ComponentModel.DataAnnotations; using NinjaHive.Contract.DTOs; using NinjaHive.Core.Validations; namespace NinjaHive.Contract.Commands { public class DeleteSkillCommand { [Required] [ValidateObject] public Skill Skill { get; set; } } }
apache-2.0
C#
a779c38fea4fdf92715e3cf27ddb58ebf54c656b
Add missing new test board target class
sgstair/ledsign,sgstair/ledsign,sgstair/ledsign
software/SignControl/SignControl/TargetTestBoard.cs
software/SignControl/SignControl/TargetTestBoard.cs
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using SignTestInterface; using winusbdotnet; namespace SignControl { class TargetTestBoard : ISignTarget { public TargetTestBoard() { TestBoard...
mit
C#
cb9e5ec100f1032e7152e34e3961f5b0d69a54b6
Add new tests for Unified Label
MSylvia/CocosSharp,zmaruo/CocosSharp,haithemaraissia/CocosSharp,MSylvia/CocosSharp,zmaruo/CocosSharp,mono/CocosSharp,TukekeSoft/CocosSharp,haithemaraissia/CocosSharp,TukekeSoft/CocosSharp,mono/CocosSharp
tests/tests/classes/tests/LabelTestNew/LabelFNTColorAndOpacity.cs
tests/tests/classes/tests/LabelTestNew/LabelFNTColorAndOpacity.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using CocosSharp; namespace tests { public class LabelFNTColorAndOpacity : AtlasDemoNew { float m_time; CCLabel label1, label2, label3; public LabelFNTColorAndOpacity() { m_time = 0; ...
mit
C#
9ee59d23f91627b514a2afb95dfd95a41e37cee7
Add test for Ignore attribute
caseydedore/SQLite.Net-PCL,fernandovm/SQLite.Net-PCL,igrali/SQLite.Net-PCL,mattleibow/SQLite.Net-PCL,oysteinkrog/SQLite.Net-PCL,kreuzhofer/SQLite.Net-PCL,TiendaNube/SQLite.Net-PCL,igrali/SQLite.Net-PCL,molinch/SQLite.Net-PCL
tests/IgnoreTest.cs
tests/IgnoreTest.cs
using System.Collections.Generic; using System.Linq; using NUnit.Framework; using SQLite.Net.Attributes; #if __WIN32__ using SQLitePlatformTest = SQLite.Net.Platform.Win32.SQLitePlatformWin32; #elif WINDOWS_PHONE using SQLitePlatformTest = SQLite.Net.Platform.WindowsPhone8.SQLitePlatformWP8; #elif __WINRT__ using SQL...
mit
C#
6efadcf54a14eb62bec37f5336ec0d0baf006ff7
Fix #38
eatskolnikov/mobile,eatskolnikov/mobile,peeedge/mobile,ZhangLeiCharles/mobile,eatskolnikov/mobile,masterrr/mobile,masterrr/mobile,peeedge/mobile,ZhangLeiCharles/mobile
Joey/StopTimeEntryBroadcastReceiver.cs
Joey/StopTimeEntryBroadcastReceiver.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; using Toggl.Phoebe.Data.Models; namespace Toggl.Joey { [BroadcastReceiver (Exported=true)] class St...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; using Toggl.Phoebe.Data.Models; namespace Toggl.Joey { [BroadcastReceiver (Exported=false)] class S...
bsd-3-clause
C#
ab9ede6d7a0b2a398bf03c53b8e90f3f7006c761
add controller for logging error from front-end
litichevskiydv/Byndyusoft.Dotnet.Core.Infrastructure,Byndyusoft/Byndyusoft.Dotnet.Core.Infrastructure,Byndyusoft/Byndyusoft.Dotnet.Core.Infrastructure,litichevskiydv/Byndyusoft.Dotnet.Core.Infrastructure,litichevskiydv/Byndyusoft.Dotnet.Core.Infrastructure,Byndyusoft/Byndyusoft.Dotnet.Core.Infrastructure
src/Web.Application/Controllers/ErrorsController/ErrorsController.cs
src/Web.Application/Controllers/ErrorsController/ErrorsController.cs
namespace Byndyusoft.Dotnet.Core.Samples.Web.Application.Controllers.ErrorsController { using System; using System.Linq; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Newtonsoft.Json.Linq; [Route("errors")] public class ErrorsController : Controller { ...
mit
C#
0ad68af957467081a6b34f56afaa984963407774
Add missing file.
rubenv/tripod,rubenv/tripod
src/Core/Tripod.Core/Tripod.Model/IAcceptImportPhotoSource.cs
src/Core/Tripod.Core/Tripod.Model/IAcceptImportPhotoSource.cs
// // IAcceptImportPhotoSource.cs // // Author: // Ruben Vermeersch <ruben@savanne.be> // // Copyright (c) 2010 Ruben Vermeersch <ruben@savanne.be> // // 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 ...
mit
C#
7a62c81a230754d5ed53e0a088a3ed3f87795e79
Create MovementValueService
Iwuh/Wycademy
WycademyV2/src/WycademyV2/Commands/Services/MovementValueService.cs
WycademyV2/src/WycademyV2/Commands/Services/MovementValueService.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; namespace WycademyV2.Commands.Services { /// <summary> /// Provides the movement values for weapons. /// </summary> public class MovementValueService { /// <summary> //...
mit
C#
b9dab535a695fcfa87f7d2a4aae61546b038cf74
Add a docs module to the sample project.
jacksonh/manos,jmptrader/manos,mdavid/manos-spdy,jacksonh/manos,mdavid/manos-spdy,jmptrader/manos,mdavid/manos-spdy,jacksonh/manos,mdavid/manos-spdy,mdavid/manos-spdy,jmptrader/manos,jmptrader/manos,jacksonh/manos,mdavid/manos-spdy,jmptrader/manos,jacksonh/manos,jmptrader/manos,jmptrader/manos,jacksonh/manos,mdavid/man...
sample/mango-project/Docs.cs
sample/mango-project/Docs.cs
using Mango; using Mango.Templates.Minge; namespace MangoProject { public class Docs : MangoModule { public static void GettingStarted (MangoContext context) { } public static void Api (MangoContext context) { } } }
mit
C#
4232a8b86413a5f32a91017103eaad8b7358f3dd
Add example source code for Sense Hat connecting to Azure IoT Hub.
digitalthailand/course-iot-ml-dl
how2/sensehat_ex.cs
how2/sensehat_ex.cs
using System; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; // The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409 namespace DemoSenseHat { /// <summary> /// An empty page that can be used on its own or navigated to within a Frame. /// </summar...
mit
C#
fd7d34d54f1d5f52c03f3161468fd01d96434364
Update TODO
yevhen/Orleankka,mhertis/Orleankka,AntyaDev/Orleankka,AntyaDev/Orleankka,ElanHasson/Orleankka,OrleansContrib/Orleankka,pkese/Orleankka,llytvynenko/Orleankka,mhertis/Orleankka,yevhen/Orleankka,ElanHasson/Orleankka,OrleansContrib/Orleankka,llytvynenko/Orleankka,pkese/Orleankka
Source/Orleankka.Tests/TODO.cs
Source/Orleankka.Tests/TODO.cs
using System; using System.Linq; using NUnit.Framework; namespace Orleankka { [TestFixture] public class TodoFixture { [Test, Ignore] public void LambdaActors() { // - Add support for function actors // - Need to support all avail attributes (passed inside ...
using System; using System.Linq; using NUnit.Framework; namespace Orleankka { [TestFixture] public class TodoFixture { [Test, Ignore] public void AutomaticDeactivation() { // - Add support for per-type idle deactivation timeouts } } }
apache-2.0
C#
60c2e7126723aa29cfa9dea684dfa37d61f7315b
Add tests
NJsonSchema/NJsonSchema,RSuter/NJsonSchema
src/NJsonSchema.Tests/Generation/DefaultSchemaNameGeneratorTests.cs
src/NJsonSchema.Tests/Generation/DefaultSchemaNameGeneratorTests.cs
using NJsonSchema.Generation; using System; using System.Collections.Generic; using Xunit; namespace NJsonSchema.Tests.Generation { public class DefaultSchemaNameGeneratorTests { [Theory] [InlineData(typeof(Dictionary<string, int>), "DictionaryOfStringAndInteger")] [InlineData(typeof(D...
mit
C#
e32c4761675167582d65aefe098414aacb67f6e3
Add Native class hold common win32 types/methods
zwcloud/ImGui,zwcloud/ImGui,zwcloud/ImGui
src/ImGui/OSImplementation/Windows/Native.cs
src/ImGui/OSImplementation/Windows/Native.cs
using System; using System.Runtime.InteropServices; using System.Text; namespace ImGui.OSImplementation.Windows { public class Native { [Flags] enum FORMAT_MESSAGE : uint { ALLOCATE_BUFFER = 0x00000100, IGNORE_INSERTS = 0x00000200, FROM_SYSTEM = 0x00...
agpl-3.0
C#
8e66ebfa33d3b7585bf6a03c7d8ea42cc223edae
Create ObjectEvent.cs
schoffi92/Unity3D-Scripts
VR/ObjectEvent.cs
VR/ObjectEvent.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; namespace VR { public class ObjectEvent : MonoBehaviour { public UnityEvent onVRClick; public UnityEvent onVRRaycastOver; public UnityEvent onVRRaycastEnter; public void ...
mit
C#
871b9965481c9f4417b28af63a7cb1a184e71612
Create AssemblyInfo.cs
vj-ug/C-SDSA-Algorithm-for-Image-Steganography
Advanced-Implementation/Properties/AssemblyInfo.cs
Advanced-Implementation/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("Ste...
apache-2.0
C#
7f418782e0a4f564a12ca737d0141850843bed3a
Use two newlines in exception message to better match Power Assert.NET
EamonNerbonne/ExpressionToCode,asd-and-Rizzo/ExpressionToCode
ExpressionToCodeLib/PAssert.cs
ExpressionToCodeLib/PAssert.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Linq.Expressions; namespace ExpressionToCodeLib { public static class PAssert { public static void IsTrue(Expression<Func<bool>> assertion) { That(assertion,"PAssert.IsTrue failed for:"); } public s...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Linq.Expressions; namespace ExpressionToCodeLib { public static class PAssert { public static void IsTrue(Expression<Func<bool>> assertion) { That(assertion,"PAssert.IsTrue failed for:"); } public s...
apache-2.0
C#
4817eba3dfb511efcba9c14fc4f587fe8ccf3a3d
Create ZoomHelperTests.cs
wieslawsoltes/PanAndZoom,PanAndZoom/PanAndZoom,PanAndZoom/PanAndZoom,wieslawsoltes/PanAndZoom,wieslawsoltes/MatrixPanAndZoomDemo
tests/Avalonia.Controls.PanAndZoom.UnitTests/ZoomHelperTests.cs
tests/Avalonia.Controls.PanAndZoom.UnitTests/ZoomHelperTests.cs
using Xunit; namespace Avalonia.Controls.PanAndZoom.UnitTests { public class ZoomHelperTests { private Matrix CreateMatrix(double scaleX = 1.0, double scaleY = 1.0, double offsetX = 0.0, double offsetY = 0.0) { return new Matrix(scaleX, 0, 0, scaleY, offsetX, offsetY); } ...
mit
C#
7a329c32b9d479129f8f15bbe31759c37ef49044
Implement the BlockchainAnchorRecorderBuilder class
openchain/openchain
src/Openchain.Ledger.Blockchain/BlockchainAnchorRecorderBuilder.cs
src/Openchain.Ledger.Blockchain/BlockchainAnchorRecorderBuilder.cs
// Copyright 2015 Coinprism, 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.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
apache-2.0
C#
534d6c05e5704a0bbb033092df5cbf1fbb77b914
add IPv4.cs
linianhui/code,linianhui/code
src/IPv4.cs
src/IPv4.cs
using System.Runtime.InteropServices; [StructLayout(LayoutKind.Explicit)] public struct IPv4 { public IPv4(uint raw) { this._byte1 = 0; this._byte2 = 0; this._byte3 = 0; this._byte4 = 0; this._raw = raw; } public IPv4(byte byte1, byte byte2, byte byte3, byte byt...
mit
C#
33b4b00eb19bc6f7ecdf84db58724f02842feab2
Fix off by one error.
VPashkov/coveralls.net,csMACnz/coveralls.net
src/csmacnz.Coveralls/CoverageFileBuilder.cs
src/csmacnz.Coveralls/CoverageFileBuilder.cs
using System; using System.Collections.Generic; using System.Linq; namespace csmacnz.Coveralls { public class CoverageFileBuilder { private readonly string _filePath; private readonly Dictionary<int,int> _coverage = new Dictionary<int, int>(); public CoverageFileBuilder(string filePat...
using System; using System.Collections.Generic; using System.Linq; namespace csmacnz.Coveralls { public class CoverageFileBuilder { private readonly string _filePath; private readonly Dictionary<int,int> _coverage = new Dictionary<int, int>(); public CoverageFileBuilder(string filePat...
mit
C#
d7b378907d0d25f8d8c8ebdc3f850c9f27d6e064
Create OpeningCSVFiles.cs
maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_...
Examples/CSharp/Files/Handling/OpeningCSVFiles.cs
Examples/CSharp/Files/Handling/OpeningCSVFiles.cs
using System.IO; using Aspose.Cells; using System; namespace Aspose.Cells.Examples.Files.Handling { public class OpeningCSVFiles { public static void Main(string[] args) { //Exstart:1 // The path to the documents directory. string dataDir = Aspose.Cells.Exam...
mit
C#
872224f6749458787ce5c502a86ea1d31f1db81a
Define base interface for Actions read by the parsers
Seddryck/NBi,Seddryck/NBi
NBi.genbiL/Action/IAction.cs
NBi.genbiL/Action/IAction.cs
using System; using System.Linq; namespace NBi.GenbiL.Action { public interface IAction { void Execute(GenerationState state); } }
apache-2.0
C#
5fa840f87f13c1a10420c1349072f7a62f355022
Create NullToVisibilityConverter.cs
UnstableMutex/WPF.Converters
NullToVisibilityConverter.cs
NullToVisibilityConverter.cs
public class NullToVisibilityConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { return value == null ? Visibility.Collapsed : Visibility.Visible; } public object ConvertBack(object value, Type t...
mit
C#
7d3cbcd4301d47fa363edaabd1f7459efac171c5
Add MathUtils.cs
galek/crown,taylor001/crown,mikymod/crown,mikymod/crown,taylor001/crown,taylor001/crown,galek/crown,galek/crown,dbartolini/crown,taylor001/crown,galek/crown,mikymod/crown,dbartolini/crown,dbartolini/crown,mikymod/crown,dbartolini/crown
tools/core/math/MathUtils.cs
tools/core/math/MathUtils.cs
/* * Copyright (c) 2012-2016 Daniele Bartolini and individual contributors. * License: https://github.com/taylor001/crown/blob/master/LICENSE */ using System; namespace Crown { public static class MathUtils { public static bool Fequal(float a, float b, float epsilon = 0.00001f) { return b <= (a + epsilon...
mit
C#
22758b730e5482c8cf5fb73a015ae55ae939a116
Add ContrastBrushConverter
SuperJMN/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,grokys/Perspex,SuperJMN/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,grokys/Perspex,SuperJMN/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia
src/Avalonia.Controls/ColorPicker/Converters/ContrastBrushConverter.cs
src/Avalonia.Controls/ColorPicker/Converters/ContrastBrushConverter.cs
using System; using System.Globalization; using Avalonia; using Avalonia.Controls.Primitives; using Avalonia.Data.Converters; using Avalonia.Media; namespace FinancialManager.UWP { /// <summary> /// Gets a color, either black or white, depending on the perceived brightness of the supplied color. /// </sum...
mit
C#
66175ec303add2d1d9ae4c14b688a771c7bb3706
Add User controller
softwarejc/angular2-aspmvc-core1-getting-started,softwarejc/angular2-aspmvc-core1-getting-started,softwarejc/angular2-aspmvc-core1-getting-started,softwarejc/angular2-aspmvc-core1-getting-started
2-CookiesAuthentication/Controllers/UserController.cs
2-CookiesAuthentication/Controllers/UserController.cs
using Microsoft.AspNet.Mvc; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNet.Authorization; using System.Security.Claims; using Security_ASPNetCore1_JwtBearer; namespace Security_ASPNetCore1_Angular2.Controllers { [Route("api/[controller]/[action]")] public class UserController : Contro...
mit
C#
6dd654837b6e7f0a1950a3729aa6024e73337cd9
Add ConsoleEventListener for debugging
stephenmichaelf/corefx,mmitche/corefx,ptoonen/corefx,jlin177/corefx,parjong/corefx,ptoonen/corefx,alphonsekurian/corefx,shmao/corefx,gkhanna79/corefx,seanshpark/corefx,krk/corefx,jcme/corefx,dotnet-bot/corefx,DnlHarvey/corefx,jlin177/corefx,seanshpark/corefx,tijoytom/corefx,SGuyGe/corefx,Petermarcu/corefx,Petermarcu/co...
src/Common/tests/System/Diagnostics/Tracing/ConsoleEventListener.cs
src/Common/tests/System/Diagnostics/Tracing/ConsoleEventListener.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; namespace System.Diagnostics.Tracing { internal sealed class ConsoleEventList...
mit
C#
5f3256e435ed46fb056f50bb802a255c83c81028
Create IntPalindrome.cs
shreeharshas/hackerrank,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/Algorithms
interim/IntPalindrome.cs
interim/IntPalindrome.cs
public class Solution { public bool IsPalindrome(int x) { /*char[] s = x.ToString().ToCharArray(); for(int i=0,j=s.Length-1;i!=j;i++,j--){ if(s[i]!=s[j]){ return false; } } return true;*/ } }
mit
C#
a28f358122708d06811a0729cd164bff68026e58
Make a simple attribute for meta-information stating updates
dukemiller/anime-downloader
anime-downloader/Classes/NeedsUpdatingAttribute.cs
anime-downloader/Classes/NeedsUpdatingAttribute.cs
using System; namespace anime_downloader.Classes { internal class NeedsUpdatingAttribute : Attribute { } }
apache-2.0
C#
85d6153e7e3d4944a6c9090e65aac8075640ae8a
Create CryptLib.cs
invalidred/Cross-platform-AES-encryption,MudassarMumtaz/Cross-platform-AES-encryption,Pakhee/Cross-platform-AES-encryption,invalidred/Cross-platform-AES-encryption,MudassarMumtaz/Cross-platform-AES-encryption,invalidred/Cross-platform-AES-encryption,MudassarMumtaz/Cross-platform-AES-encryption,Pakhee/Cross-platform-AES...
CryptLib.cs
CryptLib.cs
using System; using System.Text; using System.Security.Cryptography; namespace com.pakhee.common { /***************************************************************** * CrossPlatform CryptLib * * <p> * This is a very basic cross platform implementation of AES encryption which is * not yet ready for producti...
apache-2.0
C#
30dae5bf1c1188139fb683e235b15b16af5e83ec
Add test to make sure the algorithm is passed down in time
ppy/osu,UselessToucan/osu,peppy/osu-new,ppy/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu
osu.Game.Rulesets.Mania.Tests/Mods/TestSceneManiaModConstantSpeed.cs
osu.Game.Rulesets.Mania.Tests/Mods/TestSceneManiaModConstantSpeed.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.Testing; using osu.Game.Rulesets.Mania.Mods; using osu.Game.Rulesets.Mania.O...
mit
C#
b0454c5b4393adc406ee7a526869332ebbdc7062
Add google-cloud-resource-prefix header for Datastore calls
jskeet/gcloud-dotnet,jskeet/google-cloud-dotnet,iantalarico/google-cloud-dotnet,benwulfe/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,googleapis/google-cloud-dotnet,chrisdunelm/google-cloud-dotnet,iantalarico/google-cloud-dotnet,jskeet/google-cloud-dotnet,chrisdunelm/google-cloud-dotnet...
apis/Google.Datastore.V1/Google.Datastore.V1/DatastoreClientPartial.cs
apis/Google.Datastore.V1/Google.Datastore.V1/DatastoreClientPartial.cs
// Copyright 2016, Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicab...
apache-2.0
C#
df0083e3d938d404855a73be9895656a3efb95f4
Add tests for ParallaxContainer
UselessToucan/osu,NeoAdonis/osu,DrabWeb/osu,peppy/osu,NeoAdonis/osu,peppy/osu,naoey/osu,smoogipoo/osu,smoogipooo/osu,ppy/osu,2yangk23/osu,peppy/osu-new,smoogipoo/osu,UselessToucan/osu,naoey/osu,ZLima12/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,EVAST9919/osu,ZLima12/osu,NeoAdonis/osu,2yangk23/osu,DrabWeb/osu,peppy/osu...
osu.Game.Tests/Visual/TestCaseParallaxContainer.cs
osu.Game.Tests/Visual/TestCaseParallaxContainer.cs
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Game.Graphics.Containers; using osu.Game.Screens.Backgrounds; namespace osu.Game.Tests.Visual { public class TestCaseParallaxContainer : OsuTestCase ...
mit
C#
5f9c378e743683700be5e3157682bfa18700678e
Add tool to display all external dependencies, with versions
googleapis/google-cloud-dotnet,jskeet/gcloud-dotnet,googleapis/google-cloud-dotnet,googleapis/google-cloud-dotnet
tools/Google.Cloud.Tools.ReleaseManager/ShowExternalDependenciesCommand.cs
tools/Google.Cloud.Tools.ReleaseManager/ShowExternalDependenciesCommand.cs
// Copyright 2020 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#
4770a64709e529479c69ad7a4ae024a9801f2fe0
Add proof of concept components list
ppy/osu,UselessToucan/osu,peppy/osu-new,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu,NeoAdonis/osu
osu.Game.Tests/Visual/Gameplay/TestSceneSkinEditorComponentsList.cs
osu.Game.Tests/Visual/Gameplay/TestSceneSkinEditorComponentsList.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.Diagnostics; using System.Linq; using NUnit.Framework; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Game.Gr...
mit
C#
e3bfcaebb91efaee3c6aa04f93467bf9c8465ecf
Add Mark Kraus author
planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell
src/Firehose.Web/Authors/MarkKraus.cs
src/Firehose.Web/Authors/MarkKraus.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 MarkKraus : IAmACommunityMember { public string FirstName => "Mark"; public string LastNam...
mit
C#
170a440b7fe6b840a6fcba1fe4df2529e5bc725c
add KeyboardFacts for unit-testing ImGui.Input.Keyboard
zwcloud/ImGui,zwcloud/ImGui,zwcloud/ImGui
test/ImGui.UnitTest/Input/KeyboardFacts.cs
test/ImGui.UnitTest/Input/KeyboardFacts.cs
using ImGui.Common.Primitive; using ImGui.Input; using ImGui.OSImplentation.Windows; using ImGui.Core; using Xunit; namespace ImGui.UnitTest { public class KeyboardFacts { public class TheKeypressedMethod { [Fact] public void KeypressedIsWorking() { ...
agpl-3.0
C#
0d1e57914cb92419990422774c5a28a52fdf5759
Create CartItemList.cs
daniela1991/hack4europecontest
CartItemList.cs
CartItemList.cs
using System.Collections.Generic; using Cdiscount.OpenApi.ProxyClient.Helper; using Newtonsoft.Json; namespace Cdiscount.OpenApi.ProxyClient.Contract.GetCart { /// <summary> /// Cart item list /// </summary> public class CartItemList { /// <summary> /// Cart detail /// </sum...
mit
C#
8ed228fd110823753b28d1f010cc5544c3b20dfd
Add WarrantyExpirationChecker, which automatically updates the order statuses
dmytrokuzmin/RepairisCore,dmytrokuzmin/RepairisCore,dmytrokuzmin/RepairisCore
src/Repairis.Core/Orders/WarrantyExpirationChecker.cs
src/Repairis.Core/Orders/WarrantyExpirationChecker.cs
using System; using Abp.Dependency; using Abp.Domain.Repositories; using Abp.Domain.Uow; using Abp.Threading.BackgroundWorkers; using Abp.Threading.Timers; namespace Repairis.Orders { public class WarrantyExpirationChecker : PeriodicBackgroundWorkerBase, ISingletonDependency { private readonly IReposi...
mit
C#
c8a906f22050f25f298dabcbbb2340c514c2cadb
Add tests for FileSystemExtensions
xoofx/zio
src/Zio.Tests/FileSystems/TestFileSystemExtensions.cs
src/Zio.Tests/FileSystems/TestFileSystemExtensions.cs
// Copyright (c) Alexandre Mutel. All rights reserved. // This file is licensed under the BSD-Clause 2 license. // See the license.txt file in the project root for more information. using System; using System.Text; using Xunit; using Zio.FileSystems; namespace Zio.Tests.FileSystems { public class TestFileSystem...
bsd-2-clause
C#
d6df5f355d129da090cff66ae9d87bf03a9a4ac7
Create ImageOverlay.cs
Justinius/ImageHelpers,Justinius/ImageHelpers
ImageOverlay.cs
ImageOverlay.cs
private void button1_Click(object sender, EventArgs e) { Image overlay = Image.FromFile(@"C:\users\feltytj\desktop\TransparentTest.png"); Image source = Image.FromFile(@"C:\users\feltytj\desktop\MarsTest_RightSize.jpg"); Bitmap ov = new Bitmap(overlay); Bitmap src = new Bitmap(source); //picBox1.Im...
unlicense
C#
c05de3ec982bb617e5e9ba055c52bb9acb51af5d
Create AssemblyInfo.cs
shad0w-jo4n/ContactBook,shad0w-jo4n/ContactBook
Windows/ContactBook/Properties/AssemblyInfo.cs
Windows/ContactBook/Properties/AssemblyInfo.cs
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // Общие сведения об этой сборке предоставляются следующим набором // набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения, // связанные со сборкой....
bsd-3-clause
C#
fb47b0bca727ce8a065a81f68995dc98394c1d45
Create AutoFitMode.cs
wieslawsoltes/PanAndZoom,PanAndZoom/PanAndZoom,PanAndZoom/PanAndZoom,wieslawsoltes/PanAndZoom,wieslawsoltes/MatrixPanAndZoomDemo
src/PandAndZoom/AutoFitMode.cs
src/PandAndZoom/AutoFitMode.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. namespace PanAndZoom { /// <summary> /// Specifies auto-fit modes. /// </summary> public enum AutoFitMode { /// <summary> /// ...
mit
C#
64fa0f0deea7b03a7c8b4e7af60b34901b0d9a9a
Test case for store (no-GC) value type to static field
Djuffin/coreclr,qiudesong/coreclr,sagood/coreclr,AlfredoMS/coreclr,wateret/coreclr,geertdoornbos/coreclr,Alcaro/coreclr,krytarowski/coreclr,fffej/coreclr,hseok-oh/coreclr,blackdwarf/coreclr,ZhichengZhu/coreclr,sergey-raevskiy/coreclr,swgillespie/coreclr,stormleoxia/coreclr,cshung/coreclr,richardlford/coreclr,James-Ko/c...
tests/src/JIT/CodeGenBringUpTests/StaticValueField.cs
tests/src/JIT/CodeGenBringUpTests/StaticValueField.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; struct TestValue { public int a; public short b; public long c; } // This test stores a primitive (no-GC fields) value type to a static field //...
mit
C#
4dfc5b82e99d27d8e6c861db65b7d21b8bd2a723
Fix ToString of CallSite
fnajera-rac-de/cecil,furesoft/cecil,saynomoo/cecil,jbevain/cecil,joj/cecil,mono/cecil,gluck/cecil,ttRevan/cecil,xen2/cecil,sailro/cecil,SiliconStudio/Mono.Cecil,kzu/cecil,cgourlay/cecil
Mono.Cecil/CallSite.cs
Mono.Cecil/CallSite.cs
// // CallSite.cs // // Author: // Jb Evain (jbevain@gmail.com) // // Copyright (c) 2008 - 2010 Jb Evain // // 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...
// // CallSite.cs // // Author: // Jb Evain (jbevain@gmail.com) // // Copyright (c) 2008 - 2010 Jb Evain // // 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...
mit
C#
82f7c55b3a337de78108b2458996e19179e68b6e
Define a math class in the standard library
jonathanvdc/flame-llvm,jonathanvdc/flame-llvm,jonathanvdc/flame-llvm
stdlib/Math.cs
stdlib/Math.cs
namespace System { /// <summary> /// Defines common mathematical functions and operations. /// </summary> public static class Math { public const double PI = 3.14159265358979; } }
mit
C#
c1cc58e37c1216eae79bbfc6cd126b4519a644b9
Implement 3 line display
Carbenium/banshee,GNOME/banshee,babycaseny/banshee,mono-soc-2011/banshee,ixfalia/banshee,eeejay/banshee,Dynalon/banshee-osx,Dynalon/banshee-osx,dufoli/banshee,arfbtwn/banshee,Dynalon/banshee-osx,ixfalia/banshee,allquixotic/banshee-gst-sharp-work,babycaseny/banshee,dufoli/banshee,directhex/banshee-hacks,allquixotic/bans...
src/Extensions/Banshee.Moblin/Banshee.Moblin/MoblinTrackInfoDisplay.cs
src/Extensions/Banshee.Moblin/Banshee.Moblin/MoblinTrackInfoDisplay.cs
// // MoblinTrackDisplay.cs // // Authors: // Aaron Bockover <abockover@novell.com> // // Copyright 2009 Novell, Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restricti...
mit
C#
e3723cfa7d109809417d9f3b39aa01fe794c2354
Add NaclXSalsa20Poly1305 class
ektrah/nsec
src/Cryptography/Nacl/NaclXSalsa20Poly1305.cs
src/Cryptography/Nacl/NaclXSalsa20Poly1305.cs
using System; using System.Diagnostics; using System.Runtime.InteropServices; using static Interop.Libsodium; namespace NSec.Cryptography.Nacl { public sealed class NaclXSalsa20Poly1305 : NaclSecretBoxAlgorithm { private static readonly Lazy<bool> s_selfTest = new Lazy<bool>(new Func<bool>(SelfTest)); ...
mit
C#
de6a7887a6a1ad368416f5e2268707aa1bd07df3
Add AbstractMessageType base class for request types
PowerShell/PowerShellEditorServices
src/PowerShellEditorServices.Protocol/MessageProtocol/AbstractMessageType.cs
src/PowerShellEditorServices.Protocol/MessageProtocol/AbstractMessageType.cs
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // namespace Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol { /// <summary> /// Defines an event type with a particular method name. /// </...
mit
C#
764d642752e6362c31c97cdca71e3fa019b21f4e
Add Q166
txchen/localleet
csharp/Q166_FractionToRecurringDecimal.cs
csharp/Q166_FractionToRecurringDecimal.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. // // If the fractional part is repeating, enclose the repeating part in parentheses. // // For exampl...
mit
C#
aa464bea2595a498da2fe13f1647255fa076ffe3
Define generic context class.
Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver
src/AsmResolver.DotNet/Signatures/GenericContext.cs
src/AsmResolver.DotNet/Signatures/GenericContext.cs
using System; namespace AsmResolver.DotNet.Signatures { /// <summary> /// Provides a context within a generic instantiation, including the type arguments of the enclosing type and method. /// </summary> public readonly struct GenericContext { /// <summary> /// Creates a new instanc...
mit
C#
abad4c6b9f0d6220f4c1d0bcff2ce27463003951
Add models for User feedback.
LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform
src/CompetitionPlatform/Models/FeedbackViewModel.cs
src/CompetitionPlatform/Models/FeedbackViewModel.cs
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using CompetitionPlatform.Data.AzureRepositories.Users; namespace CompetitionPlatform.Models { public class FeedbackViewModel : IUserFeedbackData { public string Email { get; set; } [Required] ...
mit
C#
4aa021c3770a888283384fd9e476d98672786966
Fix CRLF
OperatorOverload/Pcap.Net,giokats/Pcap.Net,bricknerb/Pcap.Net,petredimov/Pcap.Net,prvillagra/Pcap.Net,suarez-duran-m/pcap-pade,prvillagra/Pcap.Net,petredimov/Pcap.Net,prvillagra/Pcap.Net,suarez-duran-m/pcap-pade,petredimov/Pcap.Net,OperatorOverload/Pcap.Net,bricknerb/Pcap.Net,giokats/Pcap.Net,bricknerb/Pcap.Net,Operato...
PcapDotNet/src/PcapDotNet.Packets/Icmp/IcmpIpV4HeaderPlus64BitsPayloadDatagram.cs
PcapDotNet/src/PcapDotNet.Packets/Icmp/IcmpIpV4HeaderPlus64BitsPayloadDatagram.cs
namespace PcapDotNet.Packets.Icmp { /// <summary> /// RFC 792. /// <pre> /// +-----+------+------+-----------+ /// | Bit | 0-7 | 8-15 | 16-31 | /// +-----+------+------+-----------+ /// | 0 | Type | Code | Checksum | /// +-----+------+------+-----------+ /// | 32 |...
namespace PcapDotNet.Packets.Icmp { /// <summary> /// RFC 792. /// <pre> /// +-----+------+------+-----------+ /// | Bit | 0-7 | 8-15 | 16-31 | /// +-----+------+------+-----------+ /// | 0 | Type | Code | Checksum | /// +-----+------+------+-----------+ /// | 32 |...
bsd-3-clause
C#
8061ed3777734a291d2f724566a440264f18f951
Add missing file
karolz-ms/diagnostics-eventflow
src/Microsoft.Diagnostics.EventFlow.Core/Implementations/LogLevel.cs
src/Microsoft.Diagnostics.EventFlow.Core/Implementations/LogLevel.cs
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace Microsoft.Diagnos...
mit
C#
1d978d7e65a89a9a3b28fe22957159ddfafb00ea
add choice-based conversation engine
leafi/lo-novo
Conversation.cs
Conversation.cs
using System; using System.Collections.Generic; using System.Linq; namespace lo_novo { public abstract class Conversation { // choices go A1..n, B1..n, C1..n, etc., so choice spam from players doesn't impact next choice internal char choicePrefix = 'A'; internal int choiceIdx = 1; ...
mit
C#
20fb3b78a8d14c8c668228ac25a92d467a00a24f
Add tests for F.ReduceWhile
farity/farity
Farity.Tests/ReduceWhileTests.cs
Farity.Tests/ReduceWhileTests.cs
using System.Linq; using Xunit; namespace Farity.Tests { public class ReduceWhileTests { [Fact] public void ReduceWhileExecutesFunctionsForAllElementsInTheList() { var expected = 15; var actual = F.ReduceWhile((r,c) => F.True(r,c), (r, c) => r + c, 0, new[] { 1,...
mit
C#
5278051631db220a79cbfb0d2c18eaec1feaa264
Create EMsg.cs
VoiDeD/steam-irc-bot
SteamIrcBot/IRC/Commands/EMsg.cs
SteamIrcBot/IRC/Commands/EMsg.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using SteamKit2; namespace SteamIrcBot { class EMsgCommand : Command { public EMsgCommand() { Triggers.Add( "!emsg" ); HelpText = "!emsg <emsg> - Returns the EMsg string for a given val...
mit
C#
f9940ddeea12ab614c2d85b9d77c23de5ee55689
Add HangfireDbContext class
sergezhigunov/Hangfire.EntityFramework
src/Hangfire.EntityFramework/HangfireDbContext.cs
src/Hangfire.EntityFramework/HangfireDbContext.cs
using System.Data.Entity; namespace Hangfire.EntityFramework { internal class HangfireDbContext : DbContext { public HangfireDbContext(string nameOrConnectionString) : base(nameOrConnectionString) { } } }
mit
C#
26a24aa8d66bd9edb1a123e1b362e322458239a4
Add IReadOnlyTable interface
Virtlink/utilib
src/Virtlink.Utilib/Collections/IReadOnlyTable.cs
src/Virtlink.Utilib/Collections/IReadOnlyTable.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Virtlink.Utilib.Collections { /// <summary> /// A two-dimensional table. /// </summary> /// <typeparam name="TRowKey">The type of the row key.</typeparam> /// <typeparam name="TColumnKey">The...
apache-2.0
C#
2ecbb31e8aad706def14b62c41edc7729707090d
allow SaveAll to save rows without id's initialized
timba/NServiceKit,MindTouch/NServiceKit,meebey/ServiceStack,MindTouch/NServiceKit,nataren/NServiceKit,meebey/ServiceStack,ZocDoc/ServiceStack,NServiceKit/NServiceKit,ZocDoc/ServiceStack,MindTouch/NServiceKit,timba/NServiceKit,nataren/NServiceKit,NServiceKit/NServiceKit,MindTouch/NServiceKit,NServiceKit/NServiceKit,ZocD...
Common/ServiceStack.Common/ServiceStack.OrmLite.Tests/OrmLiteSaveTests.cs
Common/ServiceStack.Common/ServiceStack.OrmLite.Tests/OrmLiteSaveTests.cs
using System; using System.Collections.Generic; using NUnit.Framework; using NUnit.Framework.SyntaxHelpers; using ServiceStack.OrmLite.Tests.Models; namespace ServiceStack.OrmLite.Tests { [TestFixture] public class OrmLiteSaveTests : OrmLiteTestBase { [Test] public void Can_Save_into_ModelWithF...
bsd-3-clause
C#
275f96791dd48611599df45864993d2afa749b5c
add regression tests
UselessToucan/osu,NeoAdonis/osu,EVAST9919/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,EVAST9919/osu,peppy/osu,ppy/osu,peppy/osu,smoogipooo/osu,NeoAdonis/osu,peppy/osu-new,ppy/osu,peppy/osu,smoogipoo/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu
osu.Game.Rulesets.Mania.Tests/ManiaColumnTypeTest.cs
osu.Game.Rulesets.Mania.Tests/ManiaColumnTypeTest.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using osu.Game.Rulesets.Mania.Beatmaps; using NUnit.Framework; namespace osu.Game.Rulesets.Mania.Tests { [TestFixture] public c...
mit
C#
5b5fd03c50cacb937cf564f4685aa044aabeb1e6
Update TwoColumns.cshtml
bussemac/n2cms,EzyWebwerkstaden/n2cms,EzyWebwerkstaden/n2cms,VoidPointerAB/n2cms,nimore/n2cms,DejanMilicic/n2cms,DejanMilicic/n2cms,SntsDev/n2cms,bussemac/n2cms,nicklv/n2cms,DejanMilicic/n2cms,nicklv/n2cms,bussemac/n2cms,VoidPointerAB/n2cms,n2cms/n2cms,n2cms/n2cms,bussemac/n2cms,EzyWebwerkstaden/n2cms,DejanMilicic/n2cm...
src/Mvc/Dinamico/Dinamico/Themes/Default/Views/ContentParts/TwoColumns.cshtml
src/Mvc/Dinamico/Dinamico/Themes/Default/Views/ContentParts/TwoColumns.cshtml
@model Dinamico.Models.ContentPart @{ Content.Define(re => { re.Title = "2 Columns"; re.IconUrl = "{IconsUrl}/text_columns.png"; re.CheckBox("Separator", "Show separator"); }); } <div class="columns twocolumns clearfix row @((bool)(Content.Data.Separator ?? false) ? "separator" : "")">...
@model Dinamico.Models.ContentPart @{ Content.Define(re => { re.Title = "2 Columns"; re.IconUrl = "{IconsUrl}/text_columns.png"; re.CheckBox("Separator", "Show separator"); }); } <div class="columns twocolumns clearfix row @((bool)(Content.Data.Separator ?? false) ? "separator" : "")">...
lgpl-2.1
C#
8843c6da272554ba17b6020393a1fc9555e80ff1
Create RouteExtensions.cs
drawcode/labs-csharp
extensions/RouteExtensions.cs
extensions/RouteExtensions.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Routing; using System.Web.Mvc; public class LowercaseRoute : Route { public LowercaseRoute(string url, IRouteHandler routeHandler) : base(url, routeHandler) { } public LowercaseRoute(string url, RouteV...
mit
C#
edb4b8402c3b54c8a96aed9faeff956172120ef8
Create UIElementExtensions.cs
jamesqo/typed-xaml
src/Typed.Xaml.Wpf/UIElementExtensions.cs
src/Typed.Xaml.Wpf/UIElementExtensions.cs
using System; using System.Collections.Generic; using System.Windows; namespace Typed.Xaml { public static class UIElementExtensions { public static T GetAnimationBase<T>(this UIElement element, DependencyProperty property) { return (T)element.GetAnimationBaseValue(property); ...
mit
C#
424ef590de8841b57652cb7681246b1826c58b4b
Change assembly version to 1.9.0.0
oburlacu/azure-sdk-for-net,hovsepm/azure-sdk-for-net,oburlacu/azure-sdk-for-net,shuagarw/azure-sdk-for-net,dasha91/azure-sdk-for-net,Nilambari/azure-sdk-for-net,juvchan/azure-sdk-for-net,gubookgu/azure-sdk-for-net,ahosnyms/azure-sdk-for-net,felixcho-msft/azure-sdk-for-net,pomortaz/azure-sdk-for-net,nemanja88/azure-sdk-...
src/Graph.RBAC/Graph.RBAC/Properties/AssemblyInfo.cs
src/Graph.RBAC/Graph.RBAC/Properties/AssemblyInfo.cs
// // Copyright (c) Microsoft. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
// // Copyright (c) Microsoft. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
apache-2.0
C#
13d9b479289b988e4f48dbb5c8cef49587631c61
Create IClientCodec.cs
hprose/hprose-dotnet
src/Hprose.RPC/IClientCodec.cs
src/Hprose.RPC/IClientCodec.cs
/*--------------------------------------------------------*\ | | | hprose | | | | Official WebSite: https://hprose.com | | ...
mit
C#
1c246b51c3b90664efd9b2939338fc5b75e17456
Create ComplexTypeModelDescription.cs
MingLu8/Nancy.WebApi.HelpPages
src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/ComplexTypeModelDescription.cs
src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/ComplexTypeModelDescription.cs
using System.Collections.ObjectModel; namespace WebApplication1.Areas.HelpPage.ModelDescriptions { public class ComplexTypeModelDescription : ModelDescription { public ComplexTypeModelDescription() { Properties = new Collection<ParameterDescription>(); } public Coll...
mit
C#
860e9fbd4a35b1bd457bd9c5afce0d5d8f3a5362
Create AddClassAction.cs
wieslawsoltes/AvaloniaBehaviors,wieslawsoltes/AvaloniaBehaviors
src/Avalonia.Xaml.Interactions/Custom/AddClassAction.cs
src/Avalonia.Xaml.Interactions/Custom/AddClassAction.cs
using Avalonia; using Avalonia.Xaml.Interactivity; namespace Avalonia.Xaml.Interactions.Custom { public class AddClassAction : AvaloniaObject, IAction { public static readonly StyledProperty<string> ClassNameProperty = AvaloniaProperty.Register<AddClassAction, string>(nameof(ClassName)); public static reado...
mit
C#
d21ec374f5cafe5212b5d6297bbc757baf24d6d4
Add ActivateBehavior class.
cube-soft/Cube.Forms,cube-soft/Cube.Core,cube-soft/Cube.Forms,cube-soft/Cube.Core
Libraries/Sources/Behaviors/Messages/ActivateBehavior.cs
Libraries/Sources/Behaviors/Messages/ActivateBehavior.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#
c66de8aba22d3a4aa2fa014de598f4e0290927f6
Add tor checksums verification
nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet
WalletWasabi.Tests/UnitTests/Tor/TorBinaryHashesTests.cs
WalletWasabi.Tests/UnitTests/Tor/TorBinaryHashesTests.cs
using System; using System.Collections.Generic; using System.IO; using System.Runtime.InteropServices; using System.Security.Cryptography; using System.Threading; using WalletWasabi.Microservices; using Xunit; namespace WalletWasabi.Tests.UnitTests.Tor { public class TorBinaryHashesTests { [Fact] public void Ver...
mit
C#
09d50ea27ecbda0bd9e60f0a5dbaf399ba00e03d
Add event args for product rating
Branimir123/ZobShop,Branimir123/ZobShop,Branimir123/ZobShop
src/ZobShop.ModelViewPresenter/Product/Details/RateProduct/RateProductEventArgs.cs
src/ZobShop.ModelViewPresenter/Product/Details/RateProduct/RateProductEventArgs.cs
using System; namespace ZobShop.ModelViewPresenter.Product.Details.RateProduct { public class RateProductEventArgs : EventArgs { public RateProductEventArgs(int rating, string content, int productId, string authorId) { this.Rating = rating; this.Content = content; ...
mit
C#
01b68d88fdedfec45985d88bd8ec0a2b97ced9e2
Clean up NotNullValidator tests
GDoronin/FluentValidation,pacificIT/FluentValidation,ruisebastiao/FluentValidation,cecilphillip/FluentValidation,robv8r/FluentValidation,glorylee/FluentValidation,deluxetiky/FluentValidation,roend83/FluentValidation,IRlyDontKnow/FluentValidation,olcayseker/FluentValidation,regisbsb/FluentValidation,roend83/FluentValida...
src/FluentValidation.Tests/NotNullTester.cs
src/FluentValidation.Tests/NotNullTester.cs
#region License // Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk) // // 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...
#region License // Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk) // // 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...
apache-2.0
C#
3234f3a0b80c793bbb30c6f0219cdbc16fd9d983
Test SqliteMetadataLibrary
RonnChyran/snowflake,SnowflakePowered/snowflake,SnowflakePowered/snowflake,RonnChyran/snowflake,RonnChyran/snowflake,SnowflakePowered/snowflake
Snowflake.Tests/Records/SqliteMetadataLibraryTests.cs
Snowflake.Tests/Records/SqliteMetadataLibraryTests.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Snowflake.Records.File; using Snowflake.Records.Game; using Snowflake.Records.Metadata; using Snowflake.Utility; using Xunit; namespace Snowflake.Records.Tests { public class ...
mpl-2.0
C#
31c552b7a79de0b34578971b1062c20cc1d4ea6f
Add Q199
txchen/localleet
csharp/Q199_BinaryTreeRightSideView.cs
csharp/Q199_BinaryTreeRightSideView.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. // // For example: // Given the following binary tree, // 1 ...
mit
C#
2377213d5e116873de8e88345d6e7efa931e194d
add unit tests for ApiResourceMapper
IdentityServer/IdentityServer4.EntityFramework,IdentityServer/IdentityServer4.EntityFramework,IdentityServer/IdentityServer4.EntityFramework,IdentityServer/IdentityServer4.EntityFramework
test/IdentityServer4.EntityFramework.UnitTests/Mappers/ApiResourceMappersTests.cs
test/IdentityServer4.EntityFramework.UnitTests/Mappers/ApiResourceMappersTests.cs
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using System; using System.Linq; using FluentAssertions; using IdentityServer4.EntityFramework.Mappers; using IdentityServer4.Models; using X...
apache-2.0
C#
809895a8df6294c4e0eeeb025f81383f46a2fd06
Add Bootstrap.cs to auto-instantiate data objects
cmilr/Unity2D-Components,jguarShark/Unity2D-Components
Game/Bootstrap.cs
Game/Bootstrap.cs
using UnityEngine; public class Bootstrap : BaseBehaviour { void Awake() { // instantiate new _Data object. if (FindObjectOfType(typeof(GameData)) == null) { var instance = new GameObject(); instance.name = "_Data"; instance.AddComponent<GameData>(); instance.AddComponent<LevelData>(); instance....
mit
C#
75888eeff797f74251c88f7770afb1a974ec53d9
Create RedundantEqualityConstants.cs
dotnet/roslyn,tmat/roslyn,brettfo/roslyn,aelij/roslyn,tannergooding/roslyn,CyrusNajmabadi/roslyn,sharwell/roslyn,AlekseyTs/roslyn,diryboy/roslyn,AmadeusW/roslyn,wvdd007/roslyn,ErikSchierboom/roslyn,tmat/roslyn,weltkante/roslyn,dotnet/roslyn,physhi/roslyn,mavasani/roslyn,bartdesmet/roslyn,aelij/roslyn,KevinRansom/roslyn...
src/Analyzers/Core/Analyzers/RemoveRedundantEquality/RedundantEqualityConstants.cs
src/Analyzers/Core/Analyzers/RemoveRedundantEquality/RedundantEqualityConstants.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. namespace Microsoft.CodeAnalysis.RemoveRedundantEquality { internal static class RedundantEqualityConstants ...
mit
C#
3e48c26bc24eedfdc2fe0a8a6ac01f5377648ca4
Add failing tests
UselessToucan/osu,NeoAdonis/osu,EVAST9919/osu,smoogipooo/osu,UselessToucan/osu,peppy/osu,EVAST9919/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,ppy/osu,peppy/osu-new,ppy/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu
osu.Game.Tests/Rulesets/Scoring/ScoreProcessorTest.cs
osu.Game.Tests/Rulesets/Scoring/ScoreProcessorTest.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using System.Linq; using NUnit.Framework; using osu.Framework.Utils; using osu.Game.Beatmaps; using osu.Game.Rulesets; using osu.Game.Ru...
mit
C#
bb3528d4bfe8ec25218e8fb93de83799b4bee8d5
Create WebTools.cs
Kivitoe/Web-Status
src/WebTools.cs
src/WebTools.cs
using System; using System.Net; using System.Windows.Forms; namespace Web_Stats { /// <summary> /// Tools for web addresses and IP addresses. /// </summary> public static class WebTools { /// <summary> /// Get the IP address for the input address. /// </summary> /// <param name="str">The input address</pa...
mit
C#
b09ef895490b9663e94bbfd317e4457efffda4a6
Fix ValidateRecordsPerPage
MagedAlNaamani/DynThings,MagedAlNaamani/DynThings,cmoussalli/DynThings,cmoussalli/DynThings,cmoussalli/DynThings,MagedAlNaamani/DynThings,cmoussalli/DynThings,MagedAlNaamani/DynThings
DynThings.WebPortal/Helpers/Configs.cs
DynThings.WebPortal/Helpers/Configs.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DynThings.Data.Configurations; namespace DynThings.WebPortal.Helpers { public static class Configs { public static int validateRecordsPerPage(int pageInput) { i...
mit
C#
64e73955efafe07c8b69e9b678c5b55793b0d05b
add sPrivateChat
neowutran/OpcodeSearcher
DamageMeter.Core/Heuristic/S_PRIVATE_CHAT.cs
DamageMeter.Core/Heuristic/S_PRIVATE_CHAT.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Tera.Game.Messages; namespace DamageMeter.Heuristic { class S_PRIVATE_CHAT : AbstractPacketHeuristic { public new void Process(ParsedMessage message) { base.Pro...
mit
C#
ff774510037c6c8908a590623260e59c8617075f
Add a compilation root as a container for individual compilation units created by parsing each file.
jagrem/slang,jagrem/slang,jagrem/slang
slang/Compilation/CompilationRoot.cs
slang/Compilation/CompilationRoot.cs
using System.Collections.Generic; namespace slang.Compilation { public class CompilationRoot { public CompilationRoot (CompilationMetadata metadata) { CompilationUnits = new List<CompilationUnit> (); Metadata = metadata; } public List<CompilationUnit> C...
mit
C#
1255320ff5b47d84d4e4fc4b7b33a5425f0d457e
Create MyDataRepository.cs
CarmelSoftware/Data-Repository-with-Data-Caching-in-ASP.NET-MVC-4,kelong/Data-Repository-with-Data-Caching-in-ASP.NET-MVC-4
Models/MyDataRepository.cs
Models/MyDataRepository.cs
using system; public class MyDataRepository { }
mit
C#
85ec916af3258496b2edea5ca525981076a2dde3
Add some tests for KeyboardDevice.
jkoritzinsky/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,Perspex/Perspex,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,akrisiun/Persp...
tests/Avalonia.Input.UnitTests/KeyboardDeviceTests.cs
tests/Avalonia.Input.UnitTests/KeyboardDeviceTests.cs
using Avalonia.Input.Raw; using Avalonia.Interactivity; using Moq; using Xunit; namespace Avalonia.Input.UnitTests { public class KeyboardDeviceTests { [Fact] public void Keypresses_Should_Be_Sent_To_Root_If_No_Focused_Element() { var target = new KeyboardDevice(); ...
mit
C#
5f36af416fa1d5260f7c2ff63ce70e2a8c1a2d9b
Add empty viewer for .so and .dylib files
NuGetPackageExplorer/NuGetPackageExplorer,NuGetPackageExplorer/NuGetPackageExplorer
PackageExplorer/MefServices/NativeLibraryFileViewer.cs
PackageExplorer/MefServices/NativeLibraryFileViewer.cs
using System.Collections.Generic; using System.Windows.Controls; using NuGetPackageExplorer.Types; namespace PackageExplorer { [PackageContentViewerMetadata(100, ".so", ".dylib")] internal class NativeLibraryFileViewer : IPackageContentViewer { public object GetView(IPackageContent selectedFile, I...
mit
C#
b1aad0cac80371ad221c02bb495ad85b99ced715
Update ReadOnlyListBase to subclass ObservableCollection.
rockfordlhotka/csla,MarimerLLC/csla,ronnymgm/csla-light,BrettJaner/csla,JasonBock/csla,rockfordlhotka/csla,BrettJaner/csla,jonnybee/csla,ronnymgm/csla-light,JasonBock/csla,MarimerLLC/csla,MarimerLLC/csla,rockfordlhotka/csla,jonnybee/csla,jonnybee/csla,ronnymgm/csla-light,BrettJaner/csla,JasonBock/csla
Source/Csla.core/Core/ReadOnlyObservableBindingList.cs
Source/Csla.core/Core/ReadOnlyObservableBindingList.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Csla.Properties; namespace Csla.Core { /// <summary> /// A readonly version of ObservableBindingList. /// </summary> /// <typeparam name="C">Type of item contained in the list.</typeparam> /// <remarks> ...
mit
C#
6ff108a7d059643d0a74ecc336884aa6cdb1a298
Add IDataSource interface
tristanles/mapreduce-dojo-csharp
MapReduceDojo/IDataSource.cs
MapReduceDojo/IDataSource.cs
using System.Collections; namespace MapReduceDojo { public interface IDataSource { IEnumerator GetIterator(); int Size(); } }
mit
C#
ba4020c1bfe6c167cbe9b0c333240c57803ccdd0
Add a lint rule that checks for correctness of view definitions.
sjp/Schematic,sjp/Schematic,sjp/SJP.Schema,sjp/Schematic,sjp/Schematic
src/SJP.Schematic.Lint/Rules/InvalidViewDefinitionRule.cs
src/SJP.Schematic.Lint/Rules/InvalidViewDefinitionRule.cs
using System; using System.Collections.Generic; using System.Data; using System.Linq; using Dapper; using SJP.Schematic.Core; namespace SJP.Schematic.Lint.Rules { public class InvalidViewDefinitionRule : Rule { public InvalidViewDefinitionRule(IDbConnection connection, RuleLevel level) : b...
mit
C#
ecad82443b8152d8208df4d4d62c489713610690
add moq test example
gdbd/sharepointcommon
SharepointCommon.Test/MoqLibraryTests.cs
SharepointCommon.Test/MoqLibraryTests.cs
using Moq; namespace SharepointCommon.Test { using NUnit.Framework; public class MoqLibraryTests { [Test] public void Moq_QueryWeb_Test() { var moqQueryWeb = new Mock<IQueryWeb>(); var moqQueryList = new Mock<IQueryList<Item>>(MockBehavior.Stric...
mit
C#
45355896afa6bf5b352ed83f23c1255974f09a94
Add SimpleGameManager file
bttfgames/SimpleGameManager,kdoore/SimpleGameManager
SimpleGameManager.cs
SimpleGameManager.cs
using UnityEngine; using System.Collections; // Game States public enum GameState { INTRO, MAIN_MENU, PAUSED, GAME, CREDITS, HELP } public delegate void OnStateChangeHandler(); public class SimpleGameManager : MonoBehaviour { protected SimpleGameManager() {} private static SimpleGameManager instance = null; publ...
mit
C#
cd1a6caceebceb39d6e2b1ee9897f86278540308
Range sum matrix
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
LeetCode/remote/range_sum_2d.cs
LeetCode/remote/range_sum_2d.cs
// https://leetcode.com/problems/range-sum-query-2d-immutable/ // // Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by (row1, col1), (row2, col2). // using System; public class NumMatrix { int[,] m; public NumMatrix(int[,] matrix) { m = new int[matrix.GetLength(0)...
mit
C#
38638042514acf581d5c0e630a46c1a6abe83134
Add some query unit test
mbdavid/LiteDB
LiteDB.Tests/Query/Where_Tests.cs
LiteDB.Tests/Query/Where_Tests.cs
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Collections; using System.Collections.Generic; using System.Text; using System.Reflection; using System.Text.RegularExpressions; using LiteDB.Engine; namespace LiteDB.Tests....
mit
C#