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
b9e5f6504b1bfbcb0109a76075ac59cba922364f
Connect nodes same level
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
LeetCode/remote/populating_next_II.cs
LeetCode/remote/populating_next_II.cs
// https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii/ // // What if the given tree could be any binary tree? Would your previous solution still work? // using System; using System.Collections.Generic; using System.Linq; using System.Text; class Node { public int Val; public Node L...
mit
C#
85d5aa25b920cfbfbd0e10ea304ed3d359e07f2f
fix build, implement get cluster status in collections API
vladen/SolrNet,vladen/SolrNet,vladen/SolrNet,vladen/SolrNet
SolrNet.Cloud/SolrCloudStateParser.cs
SolrNet.Cloud/SolrCloudStateParser.cs
using System; using System.Collections.Generic; using System.Globalization; using Newtonsoft.Json.Linq; namespace SolrNet.Cloud { public static class SolrCloudStateParser { private static SolrCloudNode BuildNode(string collection, int? rangeEnd, int? rangeStart, JProperty json) { var b...
apache-2.0
C#
8354ca141e7f3e18a1a84eb2e0f6615d82119ddc
update of tgz export script
sts-CAD-Software/PCB-Investigator-Scripts
Export/Export_TGZ_V2.cs
Export/Export_TGZ_V2.cs
//Synchronous template //----------------------------------------------------------------------------------- // PCB-Investigator Automation Script // Created on 2017-03-07 // Author EasyLogix // www.pcb-investigator.com // SDK online reference http://www.pcb-investigator.com/sites/default/files/documents/InterfaceDocu...
bsd-3-clause
C#
4eaed3ef74b0e2dd36a08a6e786c074ea72de047
Create ObjectPool.cs
drawcode/labs-unity
gameobjects/ObjectPool.cs
gameobjects/ObjectPool.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ObjectPoolItem { public GameObject parentObject; public GameObject itemObject; } // The ObjectPool is the storage class for pooled objects of the same kind (e.g. "Pistol Bullet", or "Enemy A") // This is used by the O...
mit
C#
9b650291d82fcf0cc5269009c408cbce9f02002c
Create phoneget.cs
peter8472/GSM_SMS,peter8472/GSM_SMS
phoneget.cs
phoneget.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO.Ports; using System.Threading; namespace phoneget { public class Talker { public SerialPort port; public Talker() { Thread readThread = ne...
apache-2.0
C#
aba828aa0caa076fb5e65ce02d92a6d0adb0b2fd
Add "no normalization performed" test for Storage client.
chrisdunelm/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,chrisdunelm/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/gcloud-dotnet,benwulfe/google-cloud-dotnet,jskeet/google-cloud-dotnet,chrisdunelm/gcloud-dotnet,iantalarico/google-cloud-dotnet,benwulfe/google-cloud-dotnet,ben...
apis/Google.Cloud.Storage.V1/Google.Cloud.Storage.V1.IntegrationTests/NormalizationTest.cs
apis/Google.Cloud.Storage.V1/Google.Cloud.Storage.V1.IntegrationTests/NormalizationTest.cs
// Copyright 2017 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 applic...
apache-2.0
C#
66fea3e7959f9229d55071898135c621197ad749
Update server side API for single multiple answer question
Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist
Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs
Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs
using Microsoft.AspNetCore.Mvc; using Promact.Trappist.DomainModel.Models.Question; using Promact.Trappist.Repository.Questions; using System; namespace Promact.Trappist.Core.Controllers { [Route("api/question")] public class QuestionsController : Controller { private readonly IQuestionRepository ...
mit
C#
1daac41b7238ba6b3c1ee4b5051f294dfb53e33d
add missing file ILogReader
ronenbarak/Whitelog,ronenbarak/Whitelog
src/Whitelog.Core/Binary/Reader/ILogReader.cs
src/Whitelog.Core/Binary/Reader/ILogReader.cs
namespace Whitelog.Core.Binary.Reader { public interface ILogReader { bool TryRead(); } }
apache-2.0
C#
03be01d72b7cef03e93ac79829704167d75e8816
add a dummy page to test the build server
ndrmc/cats,ndrmc/cats,ndrmc/cats
Web/Areas/Logistics/Views/Donation/View1.cshtml
Web/Areas/Logistics/Views/Donation/View1.cshtml
@{ ViewBag.Title = "View1"; Layout = "~/Views/Shared/_MainLayout.cshtml"; } <h2>View1</h2>
apache-2.0
C#
92723098def9c84859c441cc3c1adb12dfd2ae69
Create Exam.cs
SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming
Kattis-Solutions/Exam.cs
Kattis-Solutions/Exam.cs
using System; namespace Exam { class Program { static void Main(string[] args) { int nCorrect = int.Parse(Console.ReadLine()); string mine = Console.ReadLine(); string friend = Console.ReadLine(); int diff = 0, same, tot = mine.Length, res; ...
mit
C#
98654586de78a3d4ace7cd3ef4d60d7af26580b4
Implement BeatmapListingHeader component
EVAST9919/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipooo/osu,EVAST9919/osu,ppy/osu,NeoAdonis/osu,johnneijzen/osu,peppy/osu-new,UselessToucan/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,UselessToucan/osu,2yangk23/osu,ppy/osu,peppy/osu,johnneijzen/osu,smoogipoo/osu,peppy/osu,2yangk23/osu,smoogipoo/osu,peppy/osu
osu.Game/Overlays/BeatmapListing/BeatmapListingHeader.cs
osu.Game/Overlays/BeatmapListing/BeatmapListingHeader.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics; using osu.Game.Graphics.UserInterface; namespace osu.Game.Overlays.BeatmapListing { public class BeatmapListingHeader : OverlayHeader ...
mit
C#
0e995a08b561421294cc39d925a68582030cd905
Add "Borrowing"
DRFP/Personal-Library
_Build/PersonalLibrary/Library/Model/Borrowing.cs
_Build/PersonalLibrary/Library/Model/Borrowing.cs
using SQLite; using System; namespace Library.Model { [Table("Borrowings")] public class Borrowing { [PrimaryKey, AutoIncrement] public int borID { get; set; } public int booID { get; set; } public string borName { get; set; } public DateTime borDeliverydDate { get; set; } public string borObservations ...
mit
C#
15a74516db1f317ee164619796c4d6a92fa20ff6
Add new suppressions file
maxmind/minfraud-api-dotnet
MaxMind.MinFraud.UnitTest/GlobalSuppressions.cs
MaxMind.MinFraud.UnitTest/GlobalSuppressions.cs
// This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. // Project-level suppressions either have no target or are given // a specific target and scoped to a namespace, type, member, etc. using System.Diagnostics.CodeAnalysis; [assembly: SuppressMessage("Mino...
apache-2.0
C#
41a6fba8f04892e4b0b7856c285e1b80474547a5
Add first draft of AppBuilderExtension tests.
KevinDockx/HttpCacheHeaders
test/Marvin.Cache.Headers.Test/Extensions/AppBuilderExtensionsFacts.cs
test/Marvin.Cache.Headers.Test/Extensions/AppBuilderExtensionsFacts.cs
using System; using Microsoft.AspNetCore.Builder; using Moq; using Xunit; namespace Marvin.Cache.Headers.Test.Extensions { public class AppBuilderExtensionsFacts { [Fact(Skip = "The Verify throws an exception because UseMiddleware is an extension function as well and can't be mocked, need to find ")] ...
mit
C#
09f0be7f392ec0d50bdca80e5d7d113a509c9071
Add path element class for selection access
Domysee/Pather.CSharp
src/Pather.CSharp/PathElements/SelectionAccess.cs
src/Pather.CSharp/PathElements/SelectionAccess.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading.Tasks; namespace Pather.CSharp.PathElements { public class SelectionAccess : IPathElement { public SelectionAccess() { } public object A...
mit
C#
097d854c83e2e1ac80612279302abf2cdb14fd84
Add baseline test coverage for blocking exit flow
smoogipooo/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework
osu.Framework.Tests/Platform/GameExitTest.cs
osu.Framework.Tests/Platform/GameExitTest.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Threading; using System.Threading.Tasks; using NUnit.Framework; using osu.Framework.Extensions; using osu.Framework.Platform; using osu.Framework.Testing; n...
mit
C#
8767144a1ae04219e0a306165de4512c62281508
add membership
psyun/HDO2O-RestfulAPI
HDO2O.Repository/MembershipCardRespository.cs
HDO2O.Repository/MembershipCardRespository.cs
using HDO2O.Infranstructure; using HDO2O.IRepository; using HDO2O.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HDO2O.Repository { public class MembershipCardRespository : BaseRepository<MembershipCard, HDDbContext>, IMembersh...
apache-2.0
C#
5006cf8176e67f42975e85805e57f28000db775f
Add failing tests for GH-854
ericgreenmix/marten,JasperFx/Marten,mysticmind/marten,ericgreenmix/marten,mdissel/Marten,JasperFx/Marten,mdissel/Marten,JasperFx/Marten,mysticmind/marten,ericgreenmix/marten,ericgreenmix/marten,mysticmind/marten,mysticmind/marten
src/Marten.Testing/Bugs/Bug_854_multiple_or_expressions_softdelete_tenancy_filters_appended_incorrectly.cs
src/Marten.Testing/Bugs/Bug_854_multiple_or_expressions_softdelete_tenancy_filters_appended_incorrectly.cs
using System.Linq; using Xunit; using Marten.Testing.Linq; namespace Marten.Testing.Bugs { public class Bug_854_multiple_or_expressions_softdelete_tenancy_filters_appended_incorrectly: IntegratedFixture { [Fact] public void query_where_with_multiple_or_expressions_against_single_tenant() ...
mit
C#
6da4d67e8d8ecb6b385c22bcb0c2dea165de69b1
Add SCardReaderGroupExtensions
Archie-Yang/PcscDotNet
src/PcscDotNet/SCardReaderGroupExtensions.cs
src/PcscDotNet/SCardReaderGroupExtensions.cs
namespace PcscDotNet { /// <summary> /// Extension method of SCardReaderGroup. /// </summary> public static class SCardReaderGroupExtensions { /// <summary> /// Defined value of SCardReaderGroup.All. /// </summary> private const string All = "SCard$AllReaders\000"; ...
mit
C#
0a187a9c4769fe9a4e60a2c8bf053ba9b8f8d605
Add missing members in System.Net.Sockets.SocketException
dhoehna/corefx,nchikanov/corefx,alexperovich/corefx,ravimeda/corefx,zhenlan/corefx,rjxby/corefx,mmitche/corefx,nchikanov/corefx,ericstj/corefx,JosephTremoulet/corefx,stone-li/corefx,axelheer/corefx,stephenmichaelf/corefx,rjxby/corefx,parjong/corefx,cydhaselton/corefx,krk/corefx,stone-li/corefx,alexperovich/corefx,kryta...
src/System.Net.Primitives/src/System/Net/SocketException.netstandard17.cs
src/System.Net.Primitives/src/System/Net/SocketException.netstandard17.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.ComponentModel; using System.Runtime.Serialization; namespace System.Net.Sockets { [Serializable] ...
// 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.ComponentModel; using System.Runtime.Serialization; namespace System.Net.Sockets { [Serializable] ...
mit
C#
a9c16b7d29a8d31d651ff04bfe281ae19894abec
Add missing EnumValue class
RockFramework/Rock.Core
Rock.Reflection.UniversalMemberAccessor.UnitTests/TypeCreator/EnumValue.cs
Rock.Reflection.UniversalMemberAccessor.UnitTests/TypeCreator/EnumValue.cs
namespace Rock.Reflection.UnitTests.TypeCreator { public class EnumValue { private readonly string _name; private readonly int? _value; public EnumValue(string name, int? value = null) { _name = name; _value = value; } public static impl...
mit
C#
5b876c2c81c46d530d43d9395fa989c0181004c6
add HmlTest
lou1306/CIV,lou1306/CIV
CIV.Test/HmlTest.cs
CIV.Test/HmlTest.cs
using System; using Xunit; using CIV.HmlFormula; using CIV.Processes; using Moq; namespace CIV.Test { public class HmlTest { [Fact] public void TrueFormulaAlwaysHolds() { var formula = new TrueFormula(); Assert.True(formula.Check(Mock.Of<IProcess>())); ...
mit
C#
d0209ef5990fc4676bec6a312dff24c7b49031d2
Create FindGameObjectWithTag.cs
carcarc/unity3d
FindGameObjectWithTag.cs
FindGameObjectWithTag.cs
//Find the Tag of the GameObject Transform player; // Reference to the player's position. player = GameObject.FindGameObjectWithTag ("Player").transform;
mit
C#
39be4831af241487a91d8466de75fcd30a50a501
Remove unused project tree factory.
zbrad/nuproj,PedroLamas/nuproj,ericstj/nuproj,faustoscardovi/nuproj,nuproj/nuproj,kovalikp/nuproj,oliver-feng/nuproj,NN---/nuproj,AArnott/nuproj
src/NuProj.Package/NuProjProjectTreeModifier.cs
src/NuProj.Package/NuProjProjectTreeModifier.cs
using System; using System.ComponentModel.Composition; using Microsoft.VisualStudio.ProjectSystem.Designers; using Microsoft.VisualStudio.ProjectSystem.Utilities; using Microsoft.VisualStudio.ProjectSystem.Utilities.Designers; namespace NuProj.ProjectSystem { [Export(typeof(IProjectTreeModifier))] [PartMetad...
using System; using System.ComponentModel.Composition; using Microsoft.VisualStudio.ProjectSystem.Designers; using Microsoft.VisualStudio.ProjectSystem.Utilities; using Microsoft.VisualStudio.ProjectSystem.Utilities.Designers; namespace NuProj.ProjectSystem { [Export(typeof(IProjectTreeModifier))] [PartMetad...
mit
C#
cee46e7fc6b0e92c07f6eb41f4aea734b3a71b2c
Cover property capturing with better tests,
colin-young/serilog,merbla/serilog,joelweiss/serilog,skomis-mm/serilog,clarkis117/serilog,harishjan/serilog,skomis-mm/serilog,ravensorb/serilog,CaioProiete/serilog,serilog/serilog,ravensorb/serilog,adamchester/serilog,joelweiss/serilog,nblumhardt/serilog,harishjan/serilog,nblumhardt/serilog,serilog/serilog,adamchester/...
test/Serilog.Tests/Core/LogEventPropertyCapturingTests.cs
test/Serilog.Tests/Core/LogEventPropertyCapturingTests.cs
using System; using System.Linq; using System.Collections.Generic; using System.IO; using Serilog.Core; using Serilog.Debugging; using Serilog.Events; using Serilog.Parameters; using Serilog.Parsing; using Serilog.Tests.Support; using Xunit; namespace Serilog.Tests.Core { public class LogEventPropertyCapturingTes...
apache-2.0
C#
9b91e4a48104db9730775b751464db2987abf685
Add 'Primitive' class
whampson/cascara,whampson/bft-spec
Cascara/Src/Primitive.cs
Cascara/Src/Primitive.cs
#region License /* Copyright (c) 2017-2018 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, mod...
mit
C#
b1138d5e8d84a8ba70b9773624b677f0f92c8850
Add missing ZoneMarker
ulrichb/Roflcopter,ulrichb/Roflcopter
Src/Roflcopter.Plugin/UnitTesting/ZoneMarker.cs
Src/Roflcopter.Plugin/UnitTesting/ZoneMarker.cs
using JetBrains.Application.BuildScript.Application.Zones; using JetBrains.ReSharper.UnitTestFramework; namespace Roflcopter.Plugin.UnitTesting { [ZoneMarker] public class ZoneMarker : IRequire<IUnitTestingZone> { } }
mit
C#
f2b1fa5d758662293b719afdaf0b98e4c36efef1
Copy list with random pointer
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
LeetCode/remote/copy_list_with_random_pointer.cs
LeetCode/remote/copy_list_with_random_pointer.cs
// https://leetcode.com/problems/copy-list-with-random-pointer/ // // A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. // // Return a deep copy of the list. // Finally nailed it. // https://leetcode.com/submissions/detail/535889...
mit
C#
5ddb5a3d741e2d1f64ad7ddd964502a3767206a3
Introduce `HitObjectProperty<T>`
peppy/osu,ppy/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu
osu.Game/Rulesets/Objects/HitObjectProperty.cs
osu.Game/Rulesets/Objects/HitObjectProperty.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. #nullable disable using JetBrains.Annotations; using osu.Framework.Bindables; namespace osu.Game.Rulesets.Objects { /// <summary> /// Represents a wrapper conta...
mit
C#
6de5fe211feae8624e4bc507f4a2157444232e9a
put comments inside DrawGame (fixes #1)
Noahkiq/gamebot,Noahkiq/gamebot,Bottersnike/gamebot-1,Bottersnike/gamebot-1
gamebot/TicTacToe.cs
gamebot/TicTacToe.cs
using System; using Discord; namespace gamebot { public class TicTacToe { public User player1; public User player2; Channel channel; bool?[,] game; bool isPlayer2Turn; public TicTacToe(User player1, User player2, Channel channel) { // variables are updated to match game this.p...
using System; using Discord; namespace gamebot { public class TicTacToe { public User player1; public User player2; Channel channel; bool?[,] game; bool isPlayer2Turn; public TicTacToe(User player1, User player2, Channel channel) { // variables are updated to match game this.p...
mit
C#
509263f25bb5876cb3099cce7078b20e76e3ede0
Create mediator.cs
Skookum/design-patterns,Skookum/design-patterns,Skookum/design-patterns,Skookum/design-patterns,Skookum/design-patterns
patterns/mediator/mediator.cs
patterns/mediator/mediator.cs
using System; using System.Collections.Generic; namespace MediatorPattern { //Mediator public interface Mediator { void send(String message, Colleague colleague); } //Colleage interface public abstract class Colleague { private Mediator mediator; Colleague() { } ...
mit
C#
bfb6e0a06d90621ec73c6528e81906c547da002e
Create FileSystem.cs
sprintstar/UmbracoFileSystemProviders.SQLFileStream
FileSystem.cs
FileSystem.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; using Umbraco.Core.IO; namespace UmbracoSQLMedia.Logic { public class FileSystem : IFileSystem { public SQLFileSystem SQLFileSystem { get; set; } public FileSystem(string tableName, string han...
mit
C#
6243284858d776e33e55b6ef1dc4d002d01f80cd
Create Problem179.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problem179.cs
Problem179.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProjectEuler.Problems { class Problem179 { private const int upper = 10000000; private Sieve s = new Sieve(upper); private long CountDivisors(int number) { if (s.prime[nu...
mit
C#
da7115d7cd07ba13f96acc159d0959caa40abcbe
Create Randomizer.cs
zelbo/Number-Guessing
Randomizer.cs
Randomizer.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; namespace NumberGuessing { partial class Program { static int myNumberMin = 0; static int myNumberMax = 0; const int myNumberOffset = 1; static Random random = new Ran...
mit
C#
c9512922910cb00d97f47f5679f78b058443ea15
Create Test.cs
Alfo5123/Recursive-Least-Square-Filter
Test.cs
Test.cs
using System; using System.Collections; using System.IO; namespace RLS { class Test { public static ArrayList WriteFile ( String filepath ) { ArrayList list = new ArrayList (); // Read from File String line; try { //Pass the file path and file name to the StreamReader constructor Stre...
mit
C#
a40234344886f6a0b37bd29745831e58f927bdb1
Create Problem43.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problems/Problem43.cs
Problems/Problem43.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProjectEuler { class Problem43 { int[] numbers = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; public string Run() { long sum = 0; do { if (d(2, 3, 4,...
mit
C#
cd79c3140bc31458e20b4a6dd43c7ded06a92108
Create RecipientTest.cs
danielpalme/MVCBlog,danielpalme/MVCBlog,danielpalme/MVCBlog
src/MVCBlog.Business.Test/Email/RecipientTest.cs
src/MVCBlog.Business.Test/Email/RecipientTest.cs
using Xunit; namespace MVCBlog.Business.Test.Email { public class RecipientTest { [Fact] public void Recipient_Equals() { Assert.True(new Recipient("test@test.de").Equals(new Recipient("test@test.de"))); Assert.True(new Recipient("test@test.de").Equals(new Recipi...
apache-2.0
C#
ad0f4fabcd1b71b50836b336a0f97e90c24fa351
Add csharp Grading Students (#28)
neiesc/Problem-solving,neiesc/Problem-solving,neiesc/Problem-solving,neiesc/Problem-solving
HackerRank/Algorithms/Implementation/grading.cs
HackerRank/Algorithms/Implementation/grading.cs
// Grading Students // https://www.hackerrank.com/challenges/grading/problem using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { /* * Complete the gradingStudents function below. */ static int[] gradingStudents(int[] grades) { /* * Wr...
mit
C#
1ef7f3deb8b0791609fb2c741fa8f2d08345bbea
Add LoggerDisposer class, which was missing in the previous commit.
mdavid/nuget,mdavid/nuget
NuPack.VisualStudio/Cmdlets/LoggerDisposer.cs
NuPack.VisualStudio/Cmdlets/LoggerDisposer.cs
using System; namespace NuPack.VisualStudio.Cmdlets { internal class LoggerDisposer : IDisposable { private dynamic _loggerHost; public LoggerDisposer(dynamic loggerHost, ILogger logger) { _loggerHost = loggerHost; loggerHost.Logger = logger; } ...
apache-2.0
C#
847d2ee9c869af8c7ac247876a3ea5388bc0a2c5
Disable test parallelization in PowerShellEditorServices.Test project
PowerShell/PowerShellEditorServices
test/PowerShellEditorServices.Test/AssemblyInfo.cs
test/PowerShellEditorServices.Test/AssemblyInfo.cs
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using Xunit; // Disable test parallelization to avoid port reuse issues [assembly: CollectionBehavior(DisableTestParallelization = true)]
mit
C#
5439a29e55676976f21e91f372bcbb470f12fcb6
Update to 0.9
jbengtson/ksp-precisenode
NodeSaver.cs
NodeSaver.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; using KSP.IO; /****************************************************************************** * Copyright (c) 2014, Justin Bengtson * All rights reserved. * * Redistribution and use in source and binary forms,...
bsd-2-clause
C#
ba7f015fb35440c061875ad8dc5c45046ee5684a
Create Pixels.cs
Moci1/ColorBox
Pixels.cs
Pixels.cs
using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace ColorBox { public static class Pixels { public static Color BackColor { get; private set; } static Pixels() { BackColor = Color.Green; } public static Color[] GetColors(Texture2D bmp) { int i = 0; Color[]...
mit
C#
a6ace9f18cb20c059fff82df2328ec688625dc55
add failing tests
jokokko/marten,jmbledsoe/marten,JasperFx/Marten,ericgreenmix/marten,ericgreenmix/marten,jmbledsoe/marten,tim-cools/Marten,ericgreenmix/marten,mysticmind/marten,jokokko/marten,jmbledsoe/marten,jokokko/marten,jamesfarrer/marten,JasperFx/Marten,mysticmind/marten,jmbledsoe/marten,jokokko/marten,mysticmind/marten,JasperFx/M...
src/Marten.Testing/Linq/dictionary_is_translated.cs
src/Marten.Testing/Linq/dictionary_is_translated.cs
using Marten.Services; using System.Collections.Generic; using System.Linq; using Xunit; namespace Marten.Testing.Linq { public class dictionary_is_translated : DocumentSessionFixture<NulloIdentityMap> { [Fact] public void dictionary_containskey_is_translated_to_json_map() { ...
mit
C#
f37db2757eece99d56d4c29149211b4d66238265
add links for users and configs
confused/Portfolio,confused/Portfolio,confused/Portfolio
Source/Portfolio.Web/Views/Shared/_Layout.cshtml
Source/Portfolio.Web/Views/Shared/_Layout.cshtml
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>@ViewBag.Title - My ASP.NET Application</title> @Styles.Render("~/Content/css") @Scripts.Render("~/bundles/modernizr") </head> <body> <div class="navbar navbar-i...
apache-2.0
C#
536b50705600868d0f7ca46b02204e7e1128eb10
create new viewmodel for session
pashchuk/Hospital-MVVM-
Hospital/DesktopApp/ViewModel/SessionViewModel.cs
Hospital/DesktopApp/ViewModel/SessionViewModel.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DesktopApp.Model; namespace DesktopApp.ViewModel { class SessionViewModel :ViewModelBase { private Session _session; private bool _state; public int Id { get; private set; } public str...
mit
C#
797143b3217eea647291e83b68e6d79dea3aeaeb
Add Track tests
goshippo/shippo-csharp-client
ShippoTesting/TrackTest.cs
ShippoTesting/TrackTest.cs
using System; using System.Collections; using System.Collections.Generic; using NUnit.Framework; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Shippo; namespace ShippoTesting { [TestFixture ()] public class TrackTest : ShippoTest { [Test ()] public void TestValidGetStatus () ...
apache-2.0
C#
3800a8ae9ef87679b6f02c2d2e6b89819d075e26
Add Device State class
one-signal/OneSignal-Xamarin-SDK,one-signal/OneSignal-Xamarin-SDK
Com.OneSignal.Core/DeviceState.cs
Com.OneSignal.Core/DeviceState.cs
using System; namespace Com.OneSignal.Core { [Serializable] public sealed class DeviceState { public NotificationPermission notificationPermission; public bool areNotificationsEnabled; public bool isSubscribed; public string userId; public string pushToken; public bool i...
mit
C#
723e19b3436e569304a10ab8d995822a345add05
add tests for table info
jmkelly/elephanet,YoloDev/elephanet,jmkelly/elephanet,YoloDev/elephanet
Elephanet.Tests/TableInfoTests.cs
Elephanet.Tests/TableInfoTests.cs
using System; using System.Collections.Generic; using System.Linq; using Xunit; using Shouldly; namespace Elephanet.Tests { public class ConventionTests { [Fact] public void TableInfo_GivenNoSchema_ShouldReturnSchemaOfPublic() { TableInfo tableInfo = new TableInfo(); ...
mit
C#
296f291f77e057aef8acd29c86553220b8a9c9ef
Work in progress
neurospeech/iis-ci
IISCI.Core/ZipSourceController.cs
IISCI.Core/ZipSourceController.cs
using ICSharpCode.SharpZipLib.Zip; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IISCI { public class ZipSourceController: ISourceController { private string zipFile = null; private st...
mit
C#
ef51cead046bb80beb1cb9fee5e5de32b800483f
Create Problem146.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problem146.cs
Problem146.cs
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace ProjectEuler.Problems { class Problem146 { private const int upper = 10000; SieveBig s = new SieveBig(upper*upper + 27); int[] add = new int[] { 1, 3, 7, 9, 13, 27 }; private bo...
mit
C#
cb8d0e30bf8bf2f8fa2870dd63d0f2d4cf897705
Add test class
weblogng/weblogng-client-dotnet
tester/LoggerTest.cs
tester/LoggerTest.cs
using System; using NUnit.Framework; using weblog; namespace weblogclienttester { [TestFixture()] public class LoggerTest { Logger logger; [Test()] public void should_throw_exception_if_empty_uri () { try { Logger logger = new Logger("", ""); Assert.Fail(); } catch(System.ArgumentExce...
apache-2.0
C#
d34882258d08fa7e327872ca8d73b354d4cad0be
Create GuidCorrelationService.cs
tiksn/TIKSN-Framework
TIKSN.Core/Integration/Correlation/GuidCorrelationService.cs
TIKSN.Core/Integration/Correlation/GuidCorrelationService.cs
using System; namespace TIKSN.Integration.Correlation { /// <summary> /// Service for generating and parsing <see cref="Guid"/> backed <see cref="CorrelationID"/>. /// </summary> public class GuidCorrelationService : ICorrelationService { /// <summary> /// Creates <see cref="Correl...
mit
C#
8453b3851408601e4fb76b4e1399b4d2bab00c1b
Add tests for F.Take
farity/farity
Farity.Tests/TakeTests.cs
Farity.Tests/TakeTests.cs
using Xunit; using System.Linq; namespace Farity.Tests { public class TakeTests { [Theory] [InlineData(1)] [InlineData(2)] [InlineData(3)] public void TakeTakesNElements(int n) { Assert.True(n <= 5 && n >= 0); var data = new[] { 1, 2, 3, ...
mit
C#
327466e72bea94227ee5bb74c28596173f6b1019
Add tests for F.Tap
farity/farity
Farity.Tests/TapTests.cs
Farity.Tests/TapTests.cs
using System; using System.Diagnostics; using Xunit; namespace Farity.Tests { public class TapTests { [Fact] public void TapRunsFunctionOverValue() { var value = ""; Action<int> function = number => value = number.ToString(); F.Tap(function, 42); ...
mit
C#
368e909d4e1fade9a6f1057dbe7dac52b1952788
add clean command
Iwuh/Wycademy
WycademyV2/src/WycademyV2/Commands/Modules/ModeratorModule.cs
WycademyV2/src/WycademyV2/Commands/Modules/ModeratorModule.cs
using Discord; using Discord.Commands; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using WycademyV2.Commands.Preconditions; namespace WycademyV2.Commands.Modules { [Summary("Moderator Commands")] public class ModeratorModule : ModuleBase { [Comm...
mit
C#
cf033daf83194b44ff158023557827124b00c8b5
Add ExtensionObject tests
convertersystems/opc-ua-client
UaClient.UnitTests/UnitTests/ExtensionObjectTests.cs
UaClient.UnitTests/UnitTests/ExtensionObjectTests.cs
using FluentAssertions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Linq; using Workstation.ServiceModel.Ua; using Xunit; namespace Workstation.UaClient.UnitTests { public class ExtensionObjectTests { [Fact] ...
mit
C#
465bc65ba5e6d3d347e7b7809f7aaa12e956817f
Add extension method check for success HTTP Status code
PiranhaCMS/piranha.core,PiranhaCMS/piranha.core,PiranhaCMS/piranha.core,PiranhaCMS/piranha.core
core/Piranha.Azure.BlobStorage/Extensions/SystemExtensions.cs
core/Piranha.Azure.BlobStorage/Extensions/SystemExtensions.cs
namespace System { internal static class SystemExtensions { internal static bool IsSuccessStatusCode(this int @this) { return @this >= 200 && @this <= 299; } } }
mit
C#
93e43951dbb58cacca68d78a1ddfade135de250f
Add delegates and VTables for ITaskBarList2.
SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,grokys/Perspex,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,Perspex/Perspex,wieslawsoltes/Perspex,jkoritzinsky/Avalonia...
src/Windows/Avalonia.Win32/ITaskBarList2VTable.cs
src/Windows/Avalonia.Win32/ITaskBarList2VTable.cs
using System; using System.Runtime.InteropServices; using static Avalonia.Win32.Interop.UnmanagedMethods; namespace Avalonia.Win32 { delegate void MarkFullscreenWindow(IntPtr This, IntPtr hwnd, [MarshalAs(UnmanagedType.Bool)] bool fullscreen); delegate HRESULT HrInit(IntPtr This); struct ITaskBarList2VTa...
mit
C#
4764a771d03142100f944637a30b07cc958a8cef
Add testcase
peppy/osu-new,UselessToucan/osu,2yangk23/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,johnneijzen/osu,ppy/osu,UselessToucan/osu,johnneijzen/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,ppy/osu,smoogipooo/osu,ZLima12/osu,ZLima12/osu,EVAST9919/osu,DrabWeb/osu,EVAST9919/osu,Drab...
osu.Game.Tests/Visual/TestCaseDirectPanel.cs
osu.Game.Tests/Visual/TestCaseDirectPanel.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 osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Game.Beat...
mit
C#
3490b160563b74ab4a227d1f3a1885d233ab16da
Add simplified `SoloGameplayLeaderboard` implementation
peppy/osu,peppy/osu,ppy/osu,ppy/osu,ppy/osu,peppy/osu
osu.Game/Screens/Play/HUD/SoloGameplayLeaderboard.cs
osu.Game/Screens/Play/HUD/SoloGameplayLeaderboard.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. #nullable disable using osu.Framework.Allocation; using osu.Game.Online.API; using osu.Game.Online.API.Requests.Responses; using osu.Game.Online.Leaderboards; using osu....
mit
C#
3ebf71f22e9b68a33ace1fc27e9900001a3653cd
Add proof of concept ComprendiumController
dbjorge/housecannith,dbjorge/housecannith,dbjorge/housecannith
HouseCannith.Frontend/Controllers/ComprendiumController.cs
HouseCannith.Frontend/Controllers/ComprendiumController.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using HouseCannith.Data; using HouseCannith.Data.Models; namespace HouseCannith_Frontend.Controllers { [Route("api/comprendium/")] public class ComprendiumController : Controller ...
mit
C#
0146ab3d4d3f67288da1971cef3bb664942885c4
Add extension overload of Render that takes care of the BitmapWrapper.
PintaProject/Pinta.ImageManipulation
Pinta.ImageManipulation.System.Drawing/BitmapExtensions.cs
Pinta.ImageManipulation.System.Drawing/BitmapExtensions.cs
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; namespace Pinta.ImageManipulation { public static class BitmapExtensions { public static void Render (this BaseEffect effect, Bitmap source) { var wrapper = new BitmapWrapper (source); effect.Rende...
mit
C#
1ca54882d8868797d1b15b5f4720ba185476758a
Add Groping class for Employee
23S163PR/system-programming
Novak.Andriy/parallel-extension-demo/Groups.cs
Novak.Andriy/parallel-extension-demo/Groups.cs
using System.Collections.Generic; using System.Xml.Serialization; namespace parallel_extension_demo { [XmlRoot("groop")] public class Groups { [XmlArray("employees"), XmlArrayItem("employee")] public List<Employee> Colection { get; set; } [XmlAttribute("employeeCount")] pub...
cc0-1.0
C#
ae0de0be680a3c0d372c034745b1f18dbbf00855
Add InstituteService
denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs
src/Diploms.Services/Institutes/InstitutesService.cs
src/Diploms.Services/Institutes/InstitutesService.cs
using System; using System.Threading.Tasks; using AutoMapper; using Diploms.Core; using Diploms.Dto; using Diploms.Dto.Institutes; namespace Diploms.Services.Institutes { public class InstitutesService : CrudService<Institute, InstituteEditDto, InstituteEditDto, InstituteEditDto> { public InstitutesSer...
mit
C#
17528051815b7ae07b4ae6d3575a7cea86fe5ee9
Update the Assembly info
segrived/VSE-FormatDocumentOnSave,Elders/VSE-FormatDocumentOnSave
src/Elders.VSE-FormatDocumentOnSave/Properties/AssemblyInfo.cs
src/Elders.VSE-FormatDocumentOnSave/Properties/AssemblyInfo.cs
using System; using System.Reflection; using System.Resources; 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 ...
using System; using System.Reflection; using System.Resources; 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 ...
apache-2.0
C#
f1eaa9e0732a444224de459e38214ffc105268da
Create IAggregate.cs
dlidstrom/EventStoreLite
IAggregate.cs
IAggregate.cs
using System.Collections.Generic; namespace RavenEventStore { public interface IAggregate { string Id { get; set; } IEnumerable<IEvent> GetUncommittedChanges(); void MarkChangesAsCommitted(); } }
mit
C#
29a3ac830e04bf928ef61ad5d515699c48efce18
Add delegate function declarations
one-signal/OneSignal-Xamarin-SDK,one-signal/OneSignal-Xamarin-SDK
Com.OneSignal.Core/Delegate.cs
Com.OneSignal.Core/Delegate.cs
using System; using System.Collections.Generic; //using Org.Json; namespace Com.OneSignal.Core { public delegate void InAppMessageClicked(InAppMessageAction action); public delegate void OnSetSMSSuccess(Dictionary<string, object> results); public delegate void OnSetSMSFailure(Dictionary<string, object> re...
mit
C#
7a87efb9a43e25773584760de58d0cff25ae923e
Add CustomTypeInfo class
whampson/bft-spec,whampson/cascara
Implementations/CSharp/WHampson.BFT/CustomTypeInfo.cs
Implementations/CSharp/WHampson.BFT/CustomTypeInfo.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#
7d6b1deae60b7677f8a8ac2ad45ea7635e5d30ba
Add Customer
jontansey/.Net-Core-Ecommerce-Base,jontansey/.Net-Core-Ecommerce-Base
src/Shop.Core/Entites/Customer.cs
src/Shop.Core/Entites/Customer.cs
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Shop.Core.BaseObjects; using Shop.Core.Interfaces; namespace Shop.Core.Entites { public class Customer : LifetimeBase, IReferenceable<Customer> { private string _title; private string _name; private s...
mit
C#
f3793c880911c8049ab645c02e0e38607ec2f5b0
Add lightweight `TournamentPlayer` model
ppy/osu,peppy/osu,ppy/osu,peppy/osu,ppy/osu,peppy/osu
osu.Game.Tournament/Models/TournamentPlayer.cs
osu.Game.Tournament/Models/TournamentPlayer.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 osu.Game.Database; using osu.Game.Online.API.Requests.Responses; using osu.Game.Users; namespace osu.Game.Tournament.Models { /// <summary> /...
mit
C#
87927c369a9d3de8eb8967cb6ee5a6e1ed37ce4f
Add layout page
IliaAnastassov/OdeToFood,IliaAnastassov/OdeToFood
OdeToFood/VIews/Shared/_Layout.cshtml
OdeToFood/VIews/Shared/_Layout.cshtml
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title>@ViewBag.Title</title> </head> <body> <header> @RenderSection("header", required: false) </header> <div> @RenderBody() </div> <footer> @RenderSection("footer", required: false...
mit
C#
8aa43d9f352c3486d565141dc3fda65e2c77f517
Add F.Tap
farity/farity
Farity/Tap.cs
Farity/Tap.cs
using System; namespace Farity { public static partial class F { /// <summary> /// Runs the given function with the supplied value, then returns the value. /// Functions that do not mutate the value provided are recommended. /// </summary> /// <typeparam name="T">The ty...
mit
C#
17633e6435879bb4f9ad15823e92b97b703678f2
Add fund test account method
elucidsoft/dotnetcore-stellar-sdk
stellar-dotnet-sdk/AccountUtil.cs
stellar-dotnet-sdk/AccountUtil.cs
using System; using System.IO; using System.Net; namespace stellar_dotnet_sdk { public static class AccountUtil { public static void FundTestAccount(string Public_Key) { UriBuilder baseUri = new UriBuilder("https://horizon-testnet.stellar.org/friendbot"); string queryToAppend = "addr=" + Public_Key; b...
apache-2.0
C#
44c3d39f0df070f39840c3a9b6b1953b43e54b9f
Create 3.cs
rikkus/adventofcode2016,rikkus/adventofcode2016
3.cs
3.cs
@" 785 516 744 272 511 358 [... etc ...] " .Split(new[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries) .Select(row => row.Split(new[] { " " }, StringSplitOptions.RemoveEmptyEntries)) .Select(row => new[] { int.Parse(row[0]), int.Parse(row[1]), int.Parse(row[2]) }) .Count(row => (row.Sum() - row.Max()) > ro...
mit
C#
d4c489c61667c96ed96b95c5ee1566a509f71523
Add unit test for OptionExtensions
sprache/Sprache
test/Sprache.Tests/OptionTests.cs
test/Sprache.Tests/OptionTests.cs
using Sprache; using Xunit; namespace Sprache.Tests { public class OptionTests { private Parser<IOption<char>> ParserOptionalSelect = Parse.Char('a').Optional().Select(o => o.Select(c => char.ToUpperInvariant(c))); private Parser<IOption<string>> ParserOptionalSelectMany = from...
mit
C#
d370c84f84f5b0baef9c65d66048f1ef92aacb9d
Update reducer so that the interface has defaults
modulexcite/ZocMon,ZocDoc/ZocMon,ZocDoc/ZocMon,modulexcite/ZocMon,ZocDoc/ZocMon,modulexcite/ZocMon
ZocMon/ZocMon/ZocMonLib/Framework/IRecordReduce.cs
ZocMon/ZocMon/ZocMonLib/Framework/IRecordReduce.cs
using System.Data; namespace ZocMonLib { public interface IRecordReduce { /// <summary> /// Reduce all known data. /// </summary> string ReduceAll(bool deleteReducedData); /// <summary> /// Calculate and store all reductions for the given configuration. ...
using System.Data; namespace ZocMonLib { public interface IRecordReduce { /// <summary> /// Reduce all known data. /// </summary> string ReduceAll(bool deleteReducedData); /// <summary> /// Calculate and store all reductions for the given configuration. ...
apache-2.0
C#
c0b29865fc00d15a8e50a79bcafe0048b1bc22aa
Add AppendSpace extension method for StringBuilder
atata-framework/atata-webdriverextras,atata-framework/atata-webdriverextras
src/Atata.WebDriverExtras/Extensions/StringBuilderExtensions.cs
src/Atata.WebDriverExtras/Extensions/StringBuilderExtensions.cs
using System.Text; namespace Atata { /// <summary> /// Provides a set of extension methods for <see cref="StringBuilder"/>. /// </summary> public static class StringBuilderExtensions { /// <summary> /// Appends the space character. /// </summary> /// <param name="bu...
apache-2.0
C#
b79909752a4e1b93bd9576b4308dcdc564f9200c
Add directory extensions
nikeee/HolzShots
src/HolzShots.Core/IO/DirectoryEx.cs
src/HolzShots.Core/IO/DirectoryEx.cs
using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; namespace HolzShots.IO { public static class DirectoryEx { /// <summary> /// We are doing this synchronously, assuming the application is not located on a network drive. /// See: h...
agpl-3.0
C#
79b25eca137dacb284b7518dce472088bbad4773
Add tests
tgstation/tgstation-server-tools,tgstation/tgstation-server,tgstation/tgstation-server
tests/Tgstation.Server.Host.Tests/System/TestProcessFeatures.cs
tests/Tgstation.Server.Host.Tests/System/TestProcessFeatures.cs
using Castle.Core.Logging; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using System; using System.Threading.Tasks; using Tgstation.Server.Host.IO; namespace Tgstation.Server.Host.System.Tests { /// <summary> /// Tests for <see cref="IProcessFeatures"/>. /// </...
agpl-3.0
C#
8dcfdb2dc53b18399b52c025b898efe0ac3b6d0d
Add Sum indicator tests
redmeros/Lean,Neoracle/Lean,bizcad/LeanJJN,StefanoRaggi/Lean,bizcad/LeanITrend,bizcad/LeanAbhi,AlexCatarino/Lean,AnshulYADAV007/Lean,a-hart/Lean,bizcad/Lean,tzaavi/Lean,desimonk/Lean,Phoenix1271/Lean,bizcad/LeanAbhi,young-zhang/Lean,Obawoba/Lean,jameschch/Lean,devalkeralia/Lean,JKarathiya/Lean,FrancisGauthier/Lean,andr...
Tests/Indicators/SumTests.cs
Tests/Indicators/SumTests.cs
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * 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 ...
apache-2.0
C#
333165e0528f2f48d427d8cf215efcd01bfb886e
Add test scene for Triangles
peppy/osu,peppy/osu,ppy/osu,ppy/osu,ppy/osu,peppy/osu
osu.Game.Tests/Visual/Background/TestSceneTrianglesBackground.cs
osu.Game.Tests/Visual/Background/TestSceneTrianglesBackground.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.Game.Graphics.Backgrounds; using osu.Framework.Graphics; using osuTK.Graphics; using osu.Framework.Graphics.Shapes; namespace osu.Game.Tests.Visual.Background...
mit
C#
067fb9d71cb44c8b018f2ab892deb95afa6b5355
Create ByteArrayExtensions.cs
strvmarv/Extensions
ByteArrayExtensions.cs
ByteArrayExtensions.cs
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; namespace Extensions { public static class ByteArrayExtensions { public static byte[] GenerateHash(this byte[] input) { SHA1 sha1 = SHA1.Create(); re...
mit
C#
6d3fcb82a0582d7a36b5bd8988b6cb811afe2426
Add AzurePipelinesCachePaths
nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke
source/Nuke.Common/CI/AzurePipelines/AzurePipelinesCachePaths.cs
source/Nuke.Common/CI/AzurePipelines/AzurePipelinesCachePaths.cs
 // Copyright 2021 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE using System; using System.Linq; namespace Nuke.Common.CI.AzurePipelines { // https://docs.microsoft.com/en-us/azure/devops/pipelines/release/caching?view=azure-devops publi...
mit
C#
df4d8f6f18deca0f2f254671d07172a98f96090a
Update version number.
ronnymgm/csla-light,jonnybee/csla,jonnybee/csla,BrettJaner/csla,rockfordlhotka/csla,rockfordlhotka/csla,jonnybee/csla,JasonBock/csla,JasonBock/csla,MarimerLLC/csla,MarimerLLC/csla,BrettJaner/csla,ronnymgm/csla-light,ronnymgm/csla-light,MarimerLLC/csla,rockfordlhotka/csla,JasonBock/csla,BrettJaner/csla
cslatest/Csla.Test/Properties/AssemblyInfo.cs
cslatest/Csla.Test/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("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("Cs...
mit
C#
452002302b8654131d376f291bb8872d3d1f7a00
Add some tests.
nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet
WalletWasabi.Tests/UnitTests/ValidateMethodTests.cs
WalletWasabi.Tests/UnitTests/ValidateMethodTests.cs
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using WalletWasabi.Gui.Converters; using WalletWasabi.Gui.ViewModels.Validation; using WalletWasabi.Models; using Xunit; namespace WalletWasabi.Tests.UnitTests { public class Valida...
mit
C#
d0b19623ae36116b1606d65d29dd9e705e7ef252
Add static Pragmas class with string const keys
mbdavid/LiteDB
LiteDB/Engine/Pragmas.cs
LiteDB/Engine/Pragmas.cs
namespace LiteDB.Engine { public static class Pragmas { public const string USER_VERSION = nameof(USER_VERSION); public const string COLLATION = nameof(COLLATION); public const string TIMEOUT = nameof(TIMEOUT); public const string LIMIT_SIZE = nameof(LIMIT_SIZE); public c...
mit
C#
74c81a15fee28568fbf4b7e4a9d3248a01cf65ad
Create answer.cs
neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu...
POH6/kirishima/answer.cs
POH6/kirishima/answer.cs
/* * 結果 https://paiza.jp/poh/joshibato/kirishima/result/32185cf0 */ using C=System.Console; public class answer { public static void Main() { var n = int.Parse(C.ReadLine()); var t_str = C.ReadLine().Split(' '); var t = new int[n]; for (var i = 0; i < n; i++) { ...
mit
C#
dafb52e1be9c7c51919825f1b3aa9d39541ad467
Add pseudo profiler for real.
Eusth/VRGIN
VRGIN/Helpers/Profiler.cs
VRGIN/Helpers/Profiler.cs
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using UnityEngine; using VRGIN.Core; using VRGIN.Helpers; namespace VRGIN.Helpers { public class Profiler : ProtectedBehaviour { private const int DEFAULT_SAMPLE_CO...
mit
C#
052d9a85cc70de61c9dcee8ec5ef9b852e8602e9
Create Create.cshtml
CarmelSoftware/Generic-Data-Repository-for-ASP.NET-MVC
Views/Blogs/Create.cshtml
Views/Blogs/Create.cshtml
@model GenericRepository.Models.Blog @{ ViewBag.Title = "Create"; } <div class="jumbotron"> <h2>Generic Data Repository - Create</h2><br /><h4>By Carmel Schvartzman</h4> </div> <div class="jumbotron"> @using (Html.BeginForm()) { @Html.AntiForgeryToken() @Html.ValidationSummary(true) <fieldset> ...
mit
C#
a3c3f9093594105c6feccd57e0e8ea859f52c126
add custom list
Pinckyang/easygenerator
EasyGenerator/EasyGenerator.Studio/Utils/ContextObjectList.cs
EasyGenerator/EasyGenerator.Studio/Utils/ContextObjectList.cs
using System; using System.Collections.Generic; using System.Xml.Serialization; using EasyGenerator.Studio.Model; using System.Runtime.Serialization; using System.Xml; using System.Xml.Schema; namespace EasyGenerator.Studio.Utils { [Serializable()] public class ContextObjectList<T> : List<T> wher...
cc0-1.0
C#
06632de1a2fbb5fa865d5590412a271e20e474a9
Add ChannelHelper
Aux/NTwitch,Aux/NTwitch
src/NTwitch.Rest/Entities/Channels/ChannelHelper.cs
src/NTwitch.Rest/Entities/Channels/ChannelHelper.cs
using System; using System.Collections.Generic; using System.Threading.Tasks; namespace NTwitch.Rest { internal class ChannelHelper { public static Task<IEnumerable<RestPost>> GetPostsAsync(RestChannel channel, int comments, TwitchPageOptions options) { throw new NotImplementedExce...
mit
C#
74847046445f1278ee22a8834fff0ba23bd0caeb
Add lint rule to warn when disabled objects are present.
sjp/SJP.Schema,sjp/Schematic,sjp/Schematic,sjp/Schematic,sjp/Schematic
src/SJP.Schematic.Lint/Rules/DisabledObjectsRule.cs
src/SJP.Schematic.Lint/Rules/DisabledObjectsRule.cs
using System; using System.Collections.Generic; using System.Linq; using SJP.Schematic.Core; namespace SJP.Schematic.Lint.Rules { public class DisabledObjectsRule : Rule { public DisabledObjectsRule(RuleLevel level) : base(RuleTitle, level) { } public override IEnu...
mit
C#
6e3e184139686da0fff5db112dc405a0b972d652
Add Stats db Model
Nanabell/NoAdsHere
NoAdsHere/Database/Models/GuildSettings/Stats.cs
NoAdsHere/Database/Models/GuildSettings/Stats.cs
using MongoDB.Bson; namespace NoAdsHere.Database.Models.GuildSettings { public class Stats : IIndexed { public Stats(ulong guildId) { GuildId = guildId; } public ObjectId Id { get; set; } public ulong GuildId { get; set; } public uint Blocks { get; s...
mit
C#
cbb3c9c0fbd6c6218aca320b4a208f70fb3d538a
Add ETW class
It423/enigma-simulator,wrightg42/enigma-simulator
Enigma/EnigmaUtilities/Components/ETW.cs
Enigma/EnigmaUtilities/Components/ETW.cs
// ETW.cs // <copyright file="ETW.cs"> This code is protected under the MIT License. </copyright> using System.Collections.Generic; using System.Linq; namespace EnigmaUtilities.Components { /// <summary> /// An implementation of the ETW component for the enigma machine. /// </summary> public class ETW...
mit
C#
c403e628ddae77c9c3173604e8c9832dd09b8a6c
Add test coverage for distance/rectangular grid exclusivity
ppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu,peppy/osu-new,NeoAdonis/osu,peppy/osu,smoogipoo/osu,peppy/osu,smoogipooo/osu,NeoAdonis/osu
osu.Game.Rulesets.Osu.Tests/Editor/TestSceneOsuEditorGrids.cs
osu.Game.Rulesets.Osu.Tests/Editor/TestSceneOsuEditorGrids.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.Testing; using osu.Game.Rulesets.Osu.Edit; using osu.Game.Screens.Edit.Compose.Components; using osu.Game.Te...
mit
C#
92f271f601ccae5c414f5dd20320d62e85f4ba52
add missing test file
mvbalaw/FluentWebControls
src/FluentWebControls.Tests/Mapping/ListUIMapWithItemTests.cs
src/FluentWebControls.Tests/Mapping/ListUIMapWithItemTests.cs
using System.Collections.Generic; using FluentAssert; using FluentWebControls.Mapping; using NUnit.Framework; namespace FluentWebControls.Tests.Mapping { public class ListUIMapWithItemTests { [TestFixture] public class When_the_constructor_is_called { private Foo _item; private FooUIMap _uiMap; [T...
mit
C#
0e50338b475c3aa90394647bdfa1bc0215d2f29a
Create MongoClientProviderBase.cs
tiksn/TIKSN-Framework
TIKSN.Core/Data/Mongo/MongoClientProviderBase.cs
TIKSN.Core/Data/Mongo/MongoClientProviderBase.cs
using Microsoft.Extensions.Configuration; using MongoDB.Driver; namespace TIKSN.Data.Mongo { public abstract class MongoClientProviderBase : IMongoClientProvider { private readonly IConfiguration _configuration; private readonly string _connectionStringKey; private readonly object _loc...
mit
C#
5cc0d7e6edf44963c5666c5daa340d211336b351
Create Developer-Banner.cs
DeanCabral/Code-Snippets
Console/Developer-Banner.cs
Console/Developer-Banner.cs
class DeveloperBanner { static string assignmentTitle, developerName, dateSubmitted, generalPurpose; static int bannerLength = 50; static void Main(string[] args) { GetUserInput(); } static void GetUserInput() { Console.Wri...
mit
C#
a2a18f0a74fb96c7de5ecdbdc2c5d6acba47a5cc
Add ChuckNorris
ReddwarfCro/CodingGame
ChuckNorris.cs
ChuckNorris.cs
using System; using System.Linq; using System.Text; /** * Auto-generated code below aims at helping you parse * the standard input according to the problem statement. **/ class Solution { public static byte[] ConvertToByteArray(string str, Encoding encoding) { return encoding.GetBytes(str); } ...
mit
C#
5f5fcbdd34490cfe60339145f035ee82dd2f860f
Create Exercise_13.cs
jesushilarioh/Questions-and-Exercises-in-C-Sharp
Exercise_13.cs
Exercise_13.cs
using System; public class Exercise_13 { public static void Main() { /********************************************************************** * * 13. Write a program that takes a character as input and then displays * a rectangle of 3 columns wide and 5 rows tall using that digit. * * By: ...
mit
C#