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
661f221c692a27ef8767816a3a673c118c86f80c
Create AssemblyInfo.cs
SMihand/Cache-GlobalsProxy-Framework
SpeedTest_Save/Properties/AssemblyInfo.cs
SpeedTest_Save/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Управление общими сведениями о сборке осуществляется с помощью // набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения, // связанные со сборкой. [assembly: AssemblyTitle("EXTREMECompairingTe...
mit
C#
d917e5ea39c98a9eb0b9225085fbb11d7c31573a
Implement PLAIN SASL mechanism.
msoler8785/ExoMail
ExoMail.Smtp/Authentication/PlainSaslMechanism.cs
ExoMail.Smtp/Authentication/PlainSaslMechanism.cs
using ExoMail.Smtp.Exceptions; using ExoMail.Smtp.Interfaces; using ExoMail.Smtp.Utilities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExoMail.Smtp.Authentication { /// <summary> /// The PLAIN Simple Authentication and Security...
mit
C#
6a31f5644df06a4de4791c6c24420eb5455698f3
Add new source file
sillsdev/DblMetaData,sillsdev/DblMetaData,sillsdev/DblMetaData,sillsdev/DblMetaData
DblMetaData/FullEndingXmlTextWriter.cs
DblMetaData/FullEndingXmlTextWriter.cs
// From http://stackoverflow.com/questions/1849214/render-empty-xml-elements-as-parent-elements using System.IO; using System.Text; using System.Xml; namespace DblMetaData { public class FullEndingXmlTextWriter : XmlTextWriter { public FullEndingXmlTextWriter(TextWriter w) : base...
mit
C#
5bc97255883a048dbf29f101876936e7334461a6
Add partial implementation to PPCompletionCallback
xamarin/WebSharp,xamarin/WebSharp,xamarin/WebSharp,xamarin/WebSharp,xamarin/WebSharp,xamarin/WebSharp
PepperSharp/src/pp_completion_callback_extensions.cs
PepperSharp/src/pp_completion_callback_extensions.cs
using System; using System.Runtime.InteropServices; namespace PepperSharp { public partial struct PPCompletionCallback { public PPCompletionCallback(PPCompletionCallbackFunc func) { this.func = func; this.user_data = IntPtr.Zero; this.flags = (int)PPComplet...
mit
C#
fb251d5ca34d3c9f4368d1d9a2a0fb546e3d38a5
Remove [DryJob] from IntroBasic
adamsitnik/BenchmarkDotNet,Ky7m/BenchmarkDotNet,adamsitnik/BenchmarkDotNet,Ky7m/BenchmarkDotNet,alinasmirnova/BenchmarkDotNet,adamsitnik/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,adamsitnik/BenchmarkDotNet,PerfDotNet/BenchmarkDotNet,alinasmirnova/BenchmarkDotNet,Ky7m/BenchmarkDotNet,ig-sinic...
samples/BenchmarkDotNet.Samples/IntroBasic.cs
samples/BenchmarkDotNet.Samples/IntroBasic.cs
using System.Threading; using BenchmarkDotNet.Attributes; namespace BenchmarkDotNet.Samples { // It is very easy to use BenchmarkDotNet. You should just create a class public class IntroBasic { // And define a method with the Benchmark attribute [Benchmark] public void Sleep() => T...
using System.Threading; using BenchmarkDotNet.Attributes; namespace BenchmarkDotNet.Samples { // It is very easy to use BenchmarkDotNet. You should just create a class [DryJob] public class IntroBasic { // And define a method with the Benchmark attribute [Benchmark] public void...
mit
C#
1a39807ce5eaeeba07e384f9c1050054fa488242
Add listroles command (#5533)
space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14
Content.Server/Roles/ListRolesCommand.cs
Content.Server/Roles/ListRolesCommand.cs
using Content.Server.Administration; using Content.Shared.Administration; using Content.Shared.Roles; using Robust.Shared.Console; using Robust.Shared.IoC; using Robust.Shared.Prototypes; namespace Content.Server.Roles { [AdminCommand(AdminFlags.Fun)] public class ListRolesCommand : IConsoleCommand { ...
mit
C#
de76662f479ead15fdf0f5a5720d1c13b5ff11c9
Add extension methods to export the Data Center's content.
Mirrawrs/Tera
DataCenterReader/DataCenterExtensions.cs
DataCenterReader/DataCenterExtensions.cs
using System.IO; using System.Linq; using System.Xml.Linq; namespace Tera.Analytics { public static class DataCenterExtensions { private static XStreamingElement ToXStreamingElement(DataCenterElement element) { var xElement = new XStreamingElement(element.Name); xElemen...
mit
C#
4e74ec737bacafb391a4c5add26cd9e9e9555c2f
Revert "Delete 'source/Cosmos.System2/Graphics/VGATextMode.cs'"
zarlo/Cosmos,CosmosOS/Cosmos,zarlo/Cosmos,zarlo/Cosmos,zarlo/Cosmos,CosmosOS/Cosmos,CosmosOS/Cosmos,CosmosOS/Cosmos
source/Cosmos.System2/Graphics/VGATextMode.cs
source/Cosmos.System2/Graphics/VGATextMode.cs
using System; using Cosmos.HAL; using static Cosmos.HAL.VGADriver; namespace Cosmos.System.Graphics { /// <summary> /// VGAScreen class. Used to control VGA textmode. /// </summary> public class VGAScreen { private static readonly VGADriver _Screen = new VGADriver(); /// <summary> ...
bsd-3-clause
C#
7e028afcc5e640eaa8a3744378159f9db7bd9cf6
Solve baekjoon 1446
agemor/sowrender,agemor/sowrender,Camille-Jeong/sowrender,Erica1217/sowrender-1,agemor/sowrender,Erica1217/sowrender-1,Camille-Jeong/sowrender,Camille-Jeong/sowrender,agemor/sowrender,Erica1217/sowrender-1,Camille-Jeong/sowrender,agemor/sowrender,Camille-Jeong/sowrender,Erica1217/sowrender-1,Erica1217/sowrender-1
week1/assignments/shortcut-kyle.cs
week1/assignments/shortcut-kyle.cs
using System; namespace ShortCut { class Program { static void Main(string[] args) { int[,] shortCuts; // 지름길 int D; // 학교까지의 거리 #region Input string[] input = Console.ReadLine().Split(' '); shortCuts = new int[int.Parse(input[0]), 3]; // 지름길의 개수만큼 할당 D = int.Parse(input[1]); ...
mit
C#
8d7191a9cbc33853caef353b00260f212245b2ad
add base namespace source
m5knt/BrownSugar
Sources/BrownSugar/BrownSugar.cs
Sources/BrownSugar/BrownSugar.cs
/* * @file * @Auther Yukio KANEDA */ using System; using System.Net; /* * */ /// <summary> /// バイト・ビットに関係するシンタックスシュガーを纏めています /// </summary> namespace ThunderEgg.BrownSugar { /// <summary> /// 拡張メソッドによるシュガー /// </summary> public static partial class Sugar { } }
mit
C#
f36f6ea8ba486b5b54015c36682f5b6d97b482ec
fix typo
JakeGinnivan/GitVersion,pascalberger/GitVersion,dpurge/GitVersion,asbjornu/GitVersion,asbjornu/GitVersion,GeertvanHorrik/GitVersion,distantcam/GitVersion,pascalberger/GitVersion,DanielRose/GitVersion,Kantis/GitVersion,distantcam/GitVersion,DanielRose/GitVersion,ParticularLabs/GitVersion,RaphHaddad/GitVersion,anoblepers...
GitVersionTask/VersionAndBranchFinder.cs
GitVersionTask/VersionAndBranchFinder.cs
namespace GitVersionTask { using System.Collections.Generic; using GitVersion; public static class VersionAndBranchFinder { static List<string> processedDirectories = new List<string>(); public static bool TryGetVersion(string directory, out SemanticVersion versionAndBranch) {...
namespace GitVersionTask { using System.Collections.Generic; using GitVersion; public static class VersionAndBranchFinder { static List<string> processedDirectories = new List<string>(); public static bool TryGetVersion(string directory, out SemanticVersion versionAndBranch) {...
mit
C#
a01402664f341be9bc04ffbb9811ee6d40cbbdae
Add redesigned star rating display
smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,peppy/osu-new,ppy/osu,peppy/osu,peppy/osu,ppy/osu,smoogipooo/osu
osu.Game/Beatmaps/Drawables/StarRatingDisplayV2.cs
osu.Game/Beatmaps/Drawables/StarRatingDisplayV2.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Graphics; using osu.Framework.Graphics...
mit
C#
36e6745ec1c540f73279681a74f222292f55951b
create ritual class
kidchenko/windows-phone
DailyRitualsApp/DailyRitualsApp/DataModel/Ritual.cs
DailyRitualsApp/DailyRitualsApp/DataModel/Ritual.cs
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DailyRitualsApp.DataModel { public class Ritual { public int Id { get; set; } public string Name { get; set; } public stri...
mit
C#
a517e597f5960e5ce5eeea89e9087ac32a42bf06
Fix wrong sql statement in offline im.
RavenB/opensim,BogusCurry/arribasim-dev,justinccdev/opensim,M-O-S-E-S/opensim,ft-/opensim-optimizations-wip-tests,M-O-S-E-S/opensim,ft-/arribasim-dev-extras,ft-/opensim-optimizations-wip-extras,Michelle-Argus/ArribasimExtract,ft-/opensim-optimizations-wip-extras,justinccdev/opensim,ft-/opensim-optimizations-wip-tests,b...
OpenSim/Data/MySQL/MySQLOfflineIMData.cs
OpenSim/Data/MySQL/MySQLOfflineIMData.cs
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must r...
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must r...
bsd-3-clause
C#
8e4f5381e3cba926282ea72d52621cca6be6a52e
Add top level test coverage of editor shortcuts
ppy/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu,peppy/osu
osu.Game.Tests/Visual/Editing/TestSceneEditorBindings.cs
osu.Game.Tests/Visual/Editing/TestSceneEditorBindings.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Game.Rulesets; using osu.Game.Rulesets.Osu; using osuTK.Input; namespace osu.Game.Tests.Visual.Editing { /// <summary> /// Test ...
mit
C#
3206fc4de4d5481f9edb1a71a65b46af344d3997
Test removing the before-last node in the SLList.
shaunstanislaus/C-Sharp-Algorithms,ivandrofly/C-Sharp-Algorithms,shijiaxing/C-Sharp-Algorithms,aalhour/C-Sharp-Algorithms,jgiunti/C-Sharp-Algorithms,qdimka/C-Sharp-Algorithms,VShangxiao/C-Sharp-Algorithms,guiling/C-Sharp-Algorithms,cossu/C-Sharp-Algorithms,kamilkk/C-Sharp-Algorithms,ivayloivanof/C-Sharp-Algorithms,weic...
C-Sharp-Algorithms/C-Sharp-Algorithms/DummyTests.cs
C-Sharp-Algorithms/C-Sharp-Algorithms/DummyTests.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DataStrcutres; namespace C_Sharp_Algorithms { /// <summary> /// Functions that use the classes and use them with dummy data. /// These are used as simple functionality tests. /// ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DataStrcutres; namespace C_Sharp_Algorithms { /// <summary> /// Functions that use the classes and use them with dummy data. /// These are used as simple functionality tests. /// ...
mit
C#
bc7704bf4858a1199af7e5eac60391e08eb7870c
add help extensions for ienumerables
feuerwelt/estellaris
Estellaris.Core/Extensions/IEnumerableExtensions.cs
Estellaris.Core/Extensions/IEnumerableExtensions.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Estellaris.Core.Extensions { //TODO: Add Tests public static class IEnumerableExtensions { public static bool IsEmpty<T>(this IEnumerable<T> _this) { return !_this.Any(); } } }
mit
C#
a6c15d6d866b26d3ee7e62b6fe394631b2086228
remove un-used tests
onovotny/GitVersion,onovotny/GitVersion,ParticularLabs/GitVersion,ParticularLabs/GitVersion,openkas/GitVersion,orjan/GitVersion,RaphHaddad/GitVersion,MarkZuber/GitVersion,onovotny/GitVersion,Philo/GitVersion,gep13/GitVersion,ermshiperete/GitVersion,pascalberger/GitVersion,pascalberger/GitVersion,asbjornu/GitVersion,Kan...
Tests/BranchFinders/ReleaseTests.cs
Tests/BranchFinders/ReleaseTests.cs
using GitVersion; using LibGit2Sharp; using NUnit.Framework; [TestFixture] public class ReleaseTests : Lg2sHelperBase { [Test] public void EnsureAReleaseBranchNameDoesNotExposeAPatchSegment() { var repoPath = Clone(ASBMTestRepoWorkingDirPath); using (var repo = new Repository(repoPath)) ...
using GitVersion; using LibGit2Sharp; using NUnit.Framework; [TestFixture] public class ReleaseTests : Lg2sHelperBase { [Test] public void EnsureAReleaseBranchNameDoesNotExposeAPatchSegment() { var repoPath = Clone(ASBMTestRepoWorkingDirPath); using (var repo = new Repository(repoPath)) ...
mit
C#
fb3d050209bb8b72c02435d5225b8f7318afd98f
Add comprehensive configuration lookup tests
EVAST9919/osu,EVAST9919/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,smoogipooo/osu,2yangk23/osu,ZLima12/osu,2yangk23/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,UselessToucan/osu,peppy/osu-new,NeoAdonis/osu,peppy/osu,johnneijzen/osu,ppy/osu,ZLima12/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,johnn...
osu.Game.Tests/Skins/SkinConfigurationLookupTest.cs
osu.Game.Tests/Skins/SkinConfigurationLookupTest.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 NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Audio.Sample; using osu.Framework.Bindables; using osu.Framew...
mit
C#
1c12f4c7efa8dfb49c57094231bc5d338b042670
Implement Specification Interface
MrWooJ/WJStore
WJStore.Domain/Interfaces/Specification/ISpecification.cs
WJStore.Domain/Interfaces/Specification/ISpecification.cs
namespace WJStore.Domain.Interfaces.Validation { public interface ISpecification<in TEntity> { bool IsSatisfiedBy(TEntity entity); } }
mit
C#
4624197aea2bb6101a8ef4b85f441bb70ea12732
Add async helper
AlmirKadric/mage-sdk-unity,mage/mage-sdk-unity
Async/Async.cs
Async/Async.cs
using System; using System.Collections.Generic; /// <summary> /// Async is a utility class which provides straight-forward, powerful functions for working with asynchronous C#. /// /// Async provides around 20 functions that include the usual 'functional' suspects (map, reduce, filter, each…) as well as /// some co...
mit
C#
be881f4c1fb5c218546b65420d7812f4e6e4fc01
Create UpdateQuery.cs
PowerMogli/Rabbit.Db
src/RabbitDB/Query/Generic/UpdateQuery.cs
src/RabbitDB/Query/Generic/UpdateQuery.cs
using System; using System.Collections.Generic; using System.Data; using System.Linq.Expressions; using RabbitDB.Expressions; using RabbitDB.Reflection; using RabbitDB.Storage; namespace RabbitDB.Query.Generic { internal class UpdateQuery<TEntity> : IQuery { private readonly Expression<Func<TEntity, bo...
apache-2.0
C#
137626c950c182b8fe149ebc3acdb410537ab798
Add a basic application test
Cyberboss/tgstation-server,tgstation/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server-tools
tests/Tgstation.Server.Host.Tests/Core/TestApplication.cs
tests/Tgstation.Server.Host.Tests/Core/TestApplication.cs
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using System; namespace Tgstation.Server.Host.Core.Tests { [TestClass] public sealed class TestApplicat...
agpl-3.0
C#
073d2f2c7501cc281e5a4a9de4cb150082d4a779
Add some example struct types, including one with a default constructor declarations.
github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql
csharp/ql/test/library-tests/csharp10/StructTypes.cs
csharp/ql/test/library-tests/csharp10/StructTypes.cs
using System; // Struct with user declared parameterless constructor. public struct MyStructParameterlessConstructor { public int X; public readonly int Y; public int Z { get; } public MyStructParameterlessConstructor() { X = 1; Y = 2; Z = 3; } } // Struct with compile...
mit
C#
289a6cbcec56265c050f2d5cf98b81dc776d0229
Add PluginState
KpdApps/KpdApps.Common.MsCrm2015
PluginState.cs
PluginState.cs
using System; using Microsoft.Xrm.Sdk; namespace KpdApps.Common.MsCrm2015 { public class PluginState { private IOrganizationService _service; private IPluginExecutionContext _context; public virtual IServiceProvider Provider { get; private set; } public virtual IPluginExecutionContext Context => _context...
mit
C#
45d64ea39b22247c6534756d028d05f7c0934b2e
Fix Authentication Response NULL
auth0/auth0.net,jerriep/auth0.net,jerriep/auth0.net,jerriep/auth0.net,auth0/auth0.net
src/Auth0.AuthenticationApi/Models/AuthenticationResponse.cs
src/Auth0.AuthenticationApi/Models/AuthenticationResponse.cs
using Newtonsoft.Json; namespace Auth0.AuthenticationApi.Models { /// <summary> /// Contains the response from an authentication request. /// </summary> public class AuthenticationResponse { /// <summary> /// Gets or sets the identifier token. /// </summary> [JsonProp...
namespace Auth0.AuthenticationApi.Models { /// <summary> /// Contains the response from an authentication request. /// </summary> public class AuthenticationResponse { /// <summary> /// Gets or sets the identifier token. /// </summary> public string IdToken { get; se...
mit
C#
4cb886755cd938e445f5fd3de367756b7875a323
Add newfile UITests/Tests.cs
ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl
UITests/Tests.cs
UITests/Tests.cs
�using System; using System.IO; using System.Linq; using NUnit.Framework; using Xamarin.UITest; using Xamarin.UITest.Android; using Xamarin.UITest.Queries; namespace userAuth.cpl.UITests { [TestFixture] public class Tests { AndroidApp app; [SetUp] public void BeforeEachTest () { app...
mit
C#
9af0ae87e833d80f30f49d824b2c2c5b1c2e9a32
Add IReadonlyRepository
ericburcham/Highway.Data,HighwayFramework/Highway.Data
src/Highway.Data/Interfaces/IReadonlyRepository.cs
src/Highway.Data/Interfaces/IReadonlyRepository.cs
using System.Collections.Generic; using System.Threading.Tasks; namespace Highway.Data { /// <summary> /// The readonly interface used to interact with the ORM-specific implementations /// </summary> public interface IReadonlyRepository { /// <summary> /// Reference to the ...
mit
C#
87cab65d25369767990c37faee240062b0135cea
Create EthRequestAccounts.cs
Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum
src/Nethereum.RPC/HostWallet/EthRequestAccounts.cs
src/Nethereum.RPC/HostWallet/EthRequestAccounts.cs
using Nethereum.Hex.HexTypes; using Nethereum.JsonRpc.Client; using Nethereum.RPC.Eth.DTOs; using Nethereum.RPC.Eth; using Nethereum.RPC.Infrastructure; using Newtonsoft.Json; using System.Collections.Generic; using Nethereum.Hex.HexConvertors.Extensions; using System.Threading.Tasks; using System; using Newtonsoft.Jso...
mit
C#
6d108e903d323b36315e8b019bd59ac851770d6b
Rearrange chars - prep work
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
CareerCup/Google/rearrange_chars.cs
CareerCup/Google/rearrange_chars.cs
// http://careercup.com/question?id=5693863291256832 // // Rearrange chars in a String so that no adjacent chars repeat // using System; using System.Collections.Generic; using System.Linq; using System.Text; static class Program { static Random random = new Random(); static String Rearrange(this String s) ...
mit
C#
bfa2dcdbf46a9103447e25121478952474957661
add BuildEngine_Linux.cs
lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino
tools/LuminoBuild/Tasks/BuildEngine_Linux.cs
tools/LuminoBuild/Tasks/BuildEngine_Linux.cs
using System; using System.Collections.Generic; using System.IO; namespace LuminoBuild.Tasks { class BuildEngine_Linux : BuildTask { public override string CommandName => "BuildEngine_Linux"; public override string Description => "BuildEngine_Linux"; public override void ...
mit
C#
ef49d7aebe4cf42bbb98c3ff7d849444b90ab4d2
Disable claim binary roundtripping test on netfx
JosephTremoulet/corefx,shimingsg/corefx,jlin177/corefx,mazong1123/corefx,parjong/corefx,MaggieTsang/corefx,MaggieTsang/corefx,ericstj/corefx,richlander/corefx,the-dwyer/corefx,zhenlan/corefx,the-dwyer/corefx,richlander/corefx,ravimeda/corefx,rubo/corefx,rubo/corefx,ViktorHofer/corefx,mazong1123/corefx,parjong/corefx,mm...
src/System.Security.Claims/tests/ClaimTests.cs
src/System.Security.Claims/tests/ClaimTests.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; using System.IO; using System.Linq; using System.Text; using Xunit; namespace Sys...
// 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; using System.IO; using System.Linq; using System.Text; using Xunit; namespace Sys...
mit
C#
5067e65f552c81914a1fc0d93307e8ae88ea960b
Add BalanceMinFlow.cs
or-tools/or-tools,or-tools/or-tools,or-tools/or-tools,or-tools/or-tools,or-tools/or-tools,or-tools/or-tools,google/or-tools,google/or-tools,google/or-tools,google/or-tools,google/or-tools,google/or-tools
ortools/graph/samples/BalanceMinFlow.cs
ortools/graph/samples/BalanceMinFlow.cs
// Copyright 2010-2021 Google LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
apache-2.0
C#
bf611085663b09530402cceca9440993a65bdb1b
Add Q187
txchen/localleet
csharp/Q187_RepeatedDNASequences.cs
csharp/Q187_RepeatedDNASequences.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to identify repeated sequences within the DNA. // // Write a function ...
mit
C#
661fca9c24e86839f7c1e38ee5a4b10630d72196
Add Q220
txchen/localleet
csharp/Q220_ContainsDuplicateIII.cs
csharp/Q220_ContainsDuplicateIII.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Given an array of integers, find out whether there are two distinct indices i and j in the array such that the difference between nums[i] and nums[j] is at most t and the difference between i...
mit
C#
b39f3bb9ecceb787c2b026a6a7162e38232f4d10
Add two extensions for RegionInfo.
chtoucas/Narvalo.NET,chtoucas/Narvalo.NET
src/Narvalo.Finance/Globalization/RegionInfo$.cs
src/Narvalo.Finance/Globalization/RegionInfo$.cs
// Copyright (c) Narvalo.Org. All rights reserved. See LICENSE.txt in the project root for license information. namespace Narvalo.Finance { using System.Globalization; public static class RegionInfoExtensions { public static bool IsUsing(this RegionInfo @this, Currency currency) { ...
bsd-2-clause
C#
756d018f4495841c435fb0af9a13376a135bebca
Add Provider for RequestHandling
pranavkm/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,zanetdev/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Protot...
src/Glimpse.Web.Common/Framework/IRequestHandlerProvider.cs
src/Glimpse.Web.Common/Framework/IRequestHandlerProvider.cs
using System; using System.Collections.Generic; namespace Glimpse.Web { public interface IRequestHandlerProvider { IEnumerable<IRequestHandler> Handlers { get; } } }
mit
C#
46f7c2efdadb05165872484aa5242a44451c70fd
Add NeutralResourceLang attribute
IRlyDontKnow/FluentValidation,roend83/FluentValidation,mgmoody42/FluentValidation,olcayseker/FluentValidation,regisbsb/FluentValidation,cecilphillip/FluentValidation,deluxetiky/FluentValidation,GDoronin/FluentValidation,robv8r/FluentValidation,glorylee/FluentValidation,ruisebastiao/FluentValidation,roend83/FluentValida...
src/CommonAssemblyInfo.cs
src/CommonAssemblyInfo.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#
4933de22a5743eae671ce38acc828e40fcfaf913
Add tests
EVAST9919/osu-framework,ppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework
osu.Framework.Tests/Audio/TestSceneDrawableTrack.cs
osu.Framework.Tests/Audio/TestSceneDrawableTrack.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Audio; using osu.Framework.Audio.Track; using osu.Framework.Bindables; using osu.Framework.Grap...
mit
C#
49ab89b9ba9e878712f0ebb4f08771df5ea1d5a1
Add DirectDeliveryCore
tdrake/iserviceoriented,jezell/iserviceoriented
IServiceOriented.ServiceBus/DirectDeliveryCore.cs
IServiceOriented.ServiceBus/DirectDeliveryCore.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace IServiceOriented.ServiceBus { /// <summary> /// Dispatches messages directly to subscribers /// </summary> /// <remarks> /// This delivery core can be useful if you do not require queued delivery or are...
mit
C#
fa7c90f1fea377efb7aa725acced1d16136ce3cf
Create SimpleFollow.cs
felladrin/unity3d-scripts,felladrin/unity-scripts
SimpleFollow.cs
SimpleFollow.cs
using UnityEngine; public class SimpleFollow : MonoBehaviour { public GameObject target; public bool FollowXPosition; public bool FollowYPosition; public bool FollowZPosition; void Update () { if (target == null) { return; } if (FollowXPosition) { transform.position = new Vector3 ( target.trans...
mit
C#
f63953b8aae7086df919022bfb00de1957ae67c0
add project infos
Garthi/monomail
Properties/AssemblyInfo.cs
Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle ("MonoMail")] [assembly: AssemblyDescription ("")] [assembly: AssemblyConfiguration ("")] [a...
mit
C#
c2a54cf7541af7d434573eb5548007b73a71474c
Update SharedTextWriter
hal-ler/omnisharp-roslyn,DustinCampbell/omnisharp-roslyn,jtbm37/omnisharp-roslyn,nabychan/omnisharp-roslyn,nabychan/omnisharp-roslyn,jtbm37/omnisharp-roslyn,sreal/omnisharp-roslyn,OmniSharp/omnisharp-roslyn,hal-ler/omnisharp-roslyn,sreal/omnisharp-roslyn,OmniSharp/omnisharp-roslyn,DustinCampbell/omnisharp-roslyn
src/OmniSharp.Stdio/Services/SharedTextWriter.cs
src/OmniSharp.Stdio/Services/SharedTextWriter.cs
using System.Collections.Concurrent; using System.IO; using System.Threading; using System.Threading.Tasks; namespace OmniSharp.Stdio.Services { public class SharedTextWriter : ISharedTextWriter { private BlockingCollection<object> _queue = new BlockingCollection<object>(); private readonly ob...
using System.IO; using System.Threading.Tasks; namespace OmniSharp.Stdio.Services { public class SharedTextWriter : ISharedTextWriter { private readonly object _lock = new object(); private readonly TextWriter _writer; public SharedTextWriter(TextWriter writer) { _...
mit
C#
60de9933134065d89fd1cd3ca670d2a2f4545400
add EventBusTest.cs
WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common
test/WeihanLi.Common.Test/EventsTest/EventBusTest.cs
test/WeihanLi.Common.Test/EventsTest/EventBusTest.cs
using Microsoft.Extensions.DependencyInjection; using System.Threading; using System.Threading.Tasks; using WeihanLi.Common.Event; using Xunit; namespace WeihanLi.Common.Test.EventsTest { public class EventBusTest { private static int _counter, _counter1; public EventBusTest() { ...
mit
C#
e372bc27a272c1535ffb4888605b0522fe2aeb6c
Add Q257
txchen/csharp-leet,txchen/csharp-leet
solutions/Q257.cs
solutions/Q257.cs
public class Solution { public IList<string> BinaryTreePaths(TreeNode root) { List<string> result = new List<string>(); if (root != null) { BuildPath(root, root.val.ToString(), result); } return result; } private void BuildPath(TreeNode node, string c...
mit
C#
dd165290da89b9a622b2b45cf27c441e8faa2f96
Add a helper class to compose broadcasted messages.
LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform
src/CompetitionPlatform/Helpers/NotificationMessageHelper.cs
src/CompetitionPlatform/Helpers/NotificationMessageHelper.cs
using Newtonsoft.Json; namespace CompetitionPlatform.Helpers { public static class NotificationMessageHelper { public static string ProjectCreatedMessage(string userEmail, string userName, string projectName) { var messageData = new MessageData { Subject...
mit
C#
07496d23acd4e6f4f30b343b8c9e172d71c9d562
Add test coverage for common mime types
AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp
src/AngleSharp.Core.Tests/Io/MimeTypeNameTests.cs
src/AngleSharp.Core.Tests/Io/MimeTypeNameTests.cs
namespace AngleSharp.Core.Tests.Io { using AngleSharp.Io; using NUnit.Framework; [TestFixture] public class MimeTypeNameTests { [Test] public void CommonMimeTypesAreCorrectlyDefined() { Assert.AreEqual("image/avif", MimeTypeNames.FromExtension(".avif")); ...
mit
C#
1a18f2c83b8ac6ee8a1761611a3a0ebc72f7ea85
Create highlight_stitching_capacitor.cs
sts-CAD-Software/PCB-Investigator-Scripts
highlight_stitching_capacitor.cs
highlight_stitching_capacitor.cs
//----------------------------------------------------------------------------------- // PCB-Investigator Automation Script // Created on 2015-01-02 // www.pcb-investigator.com // SDK online reference http://www.pcb-investigator.com/sites/default/files/documents/InterfaceDocumentation/Index.html // SDK http://www.pcb-i...
bsd-3-clause
C#
0aca2667889d6f59f1eb8bce6f98ce4898ddd7ec
Add tests for F.Sort
farity/farity
Farity.Tests/SortTests.cs
Farity.Tests/SortTests.cs
using System.Linq; using Xunit; namespace Farity.Tests { public class SortTests { [Fact] public void SortSortsTheItemsInAscendingOrder() { var expected = new[] {1, 2, 3, 5, 9}; var data = new[] {3, 2, 1, 9, 5}; var actual = F.Sort(data); ...
mit
C#
0eb7a7e65b80336e1061a03203e68d8d9efdf01a
Create CallerContext.cs
hprose/hprose-dotnet
src/Hprose.RPC/Plugins/Reverse/CallerContext.cs
src/Hprose.RPC/Plugins/Reverse/CallerContext.cs
/*--------------------------------------------------------*\ | | | hprose | | | | Official WebSite: https://hprose.com | | ...
mit
C#
92c25696dd2878289befb20452ac3fc7f98db626
Add the ThreadMonitor.
TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim
Aurora/Framework/ThreadMonitor.cs
Aurora/Framework/ThreadMonitor.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace Aurora.Framework { public class ThreadMonitor { protected internal class InternalHeartbeat { public Heartbeat heartBeat; pub...
bsd-3-clause
C#
9175b6a1d87950bdb89246c7889c0e6a7a298aa0
Add basic test
smoogipooo/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework
osu.Framework.Tests/Visual/Testing/TestSceneTestWithValues.cs
osu.Framework.Tests/Visual/Testing/TestSceneTestWithValues.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Tests.Bindables; namespace osu.Framework.Tests.Visual.Testing { public class TestSceneTestWithValues : FrameworkTestScene ...
mit
C#
c989d9c121880544c007a664e05676226f140ae2
Add the method RunPasses to PassBuilder.
imazen/CppSharp,inordertotest/CppSharp,ktopouzi/CppSharp,mohtamohit/CppSharp,xistoso/CppSharp,KonajuGames/CppSharp,u255436/CppSharp,u255436/CppSharp,KonajuGames/CppSharp,xistoso/CppSharp,mydogisbox/CppSharp,Samana/CppSharp,mydogisbox/CppSharp,genuinelucifer/CppSharp,xistoso/CppSharp,nalkaro/CppSharp,txdv/CppSharp,mono/...
src/Generator/Passes/PassBuilder.cs
src/Generator/Passes/PassBuilder.cs
using System.Collections.Generic; using System.Linq; using CppSharp.Passes; namespace CppSharp { /// <summary> /// This class is used to build passes that will be run against the AST /// that comes from C++. /// </summary> public class PassBuilder { public List<TranslationUnitPass> Pas...
using System.Collections.Generic; using System.Linq; using CppSharp.Passes; namespace CppSharp { /// <summary> /// This class is used to build passes that will be run against the AST /// that comes from C++. /// </summary> public class PassBuilder { public List<TranslationUnitPass> Pas...
mit
C#
6ca93de7a1084e9a8e78c1a8814507c9e757ab4b
Add unit tests for MetaModel
martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site
tests/LondonTravel.Site.Tests/Models/MetaModelTests.cs
tests/LondonTravel.Site.Tests/Models/MetaModelTests.cs
// Copyright (c) Martin Costello, 2017. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.LondonTravel.Site.Models { using MartinCostello.LondonTravel.Site.Options; using Shouldly; using Xunit; ...
apache-2.0
C#
427cc60a31d190c7f6d13e1442f70b586bf02578
Create module1_code.cs
CptDemocracy/edx_dev204x
module1_code.cs
module1_code.cs
using System; namespace Dev204x { class Program { static void Main() { /* declaration stage */ string firstName; string lastName; string addressLine1; string addressLine2; string city; string stateOrProvince; st...
mit
C#
8f374636702f8a42af735f9d9feeb49307b8e26c
Add unicode tests to all images docker-exec/dexec#27
docker-exec/csharp
test/Unicode.cs
test/Unicode.cs
public class Unicode { public static void Main() { System.Console.WriteLine("hello unicode 👾"); } }
mit
C#
afe9e21e14bcedaf01a3c08bfd6f58f786fe4850
Add failing tests for GetTenantFeatureCacheItem
ryancyq/aspnetboilerplate,ryancyq/aspnetboilerplate,luchaoshuai/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,luchaoshuai/aspnetboilerplate
test/Abp.ZeroCore.Tests/Zero/Tenants/FeatureValueStoreTests.cs
test/Abp.ZeroCore.Tests/Zero/Tenants/FeatureValueStoreTests.cs
using System.Threading.Tasks; using Abp.Domain.Repositories; using Abp.Domain.Uow; using Abp.MultiTenancy; using Abp.Runtime.Caching; using Abp.ZeroCore.SampleApp.Application; using Abp.ZeroCore.SampleApp.Core; using Shouldly; using Xunit; namespace Abp.Zero.Tenants { public class FeatureValueStoreTests : AbpZeroT...
mit
C#
5258f96d280651b30e3e6ff2404a4829ea1ede09
Add MySql version provider
canton7/SimpleMigrations,canton7/SimpleMigrations,canton7/Simple.Migrations,canton7/Simple.Migrations
src/Simple.Migrations/VersionProvider/MysqlVersionProvider.cs
src/Simple.Migrations/VersionProvider/MysqlVersionProvider.cs
namespace SimpleMigrations.VersionProvider { /// <summary> /// Class which can read from / write to a version table in an MySQL database /// </summary> public class MysqlVersionProvider : VersionProviderBase { /// <summary> /// Gets or sets the name of the table to use. Defaults to ...
mit
C#
58b0e64c0e79450131648ffdcef520dd738ab400
Revert "delete useless enum FormatValueType"
riganti/dotvvm,riganti/dotvvm,riganti/dotvvm,riganti/dotvvm
src/DotVVM.Framework/Controls/FormatValueType.cs
src/DotVVM.Framework/Controls/FormatValueType.cs
namespace DotVVM.Framework.Controls { public enum FormatValueType { Text = 0, DateTime = 1, Number = 2 } }
apache-2.0
C#
a1f71a6b856ebc66188b4bf9aa62c5d2f754e2dd
Add Q235
txchen/localleet
csharp/Q235_LowestCommonAncestorOfABinarySearchTree.cs
csharp/Q235_LowestCommonAncestorOfABinarySearchTree.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. // // According to the definition of LCA on Wikipedia: “The lowest common ancestor is de...
mit
C#
f2c9f6e2e8781800508b639e8fb5cbeeb1d60ef1
Add mapping profile for departments
denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs
src/Diploms.Services/Departments/DepartmentsMappings.cs
src/Diploms.Services/Departments/DepartmentsMappings.cs
using AutoMapper; using Diploms.Core; using Diploms.Dto.Departments; namespace Diploms.Services.Departments { public class DepartmentsMappings : Profile { public DepartmentsMappings() { CreateMap<DepartmentEditDto, Department>(); } } }
mit
C#
005ce0e7c261de07adf08afd9669afcef5ebeda6
add EditorTools/EditorToolsCachingCleanCache.cs
NDark/ndinfrastructure,NDark/ndinfrastructure
Unity/EditorTools/EditorToolsCachingCleanCache.cs
Unity/EditorTools/EditorToolsCachingCleanCache.cs
using UnityEngine; using System.Collections; public class EditorToolsCachingCleanCache : MonoBehaviour { // Use this for initialization void Start () { EditorTools.CachingCleanCache() ; } // Update is called once per frame void Update () { } }
mit
C#
4a4edfaa578097615191b24a0f0b1222ffa981bb
Create Songs.cs
SongSync/windows
Classes/Songs.cs
Classes/Songs.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SongSync { class Songs { public string name { get; set; } public int playlist_ID { get; set; } public DateTime created_at { get; set; } public DateTime u...
apache-2.0
C#
1a9a93542ffd90af0e63f67f174572e9faf133d8
Add separate facility for bit commitment
0culus/ElectronicCash
BitCommitment/BitCommitmentEngine.cs
BitCommitment/BitCommitmentEngine.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BitCommitment { /// <summary> /// A class to perform bit commitment. It does not care what the input is; it's just a /// facility for exchanging bit commitment messages. /// <...
mit
C#
db0d1520560c2b8ac2118194f86f7edd30aa0c02
Create Vector3.cs
Andy16823/OpenObjectLoader
source/OpenObjectLoader/Types/Vector3.cs
source/OpenObjectLoader/Types/Vector3.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OpenObjectLoader.Types { public class Vector3 { public float x { get; set; } public float y { get; set; } public float z { get; set; } public Vector3() ...
mit
C#
dbbbec66c6fe25a64554792ca040c2faa6f9c566
Add method chain test
xin9le/DeclarativeSql
src/DeclarativeSql.Tests/Cases/MethodChainTest.cs
src/DeclarativeSql.Tests/Cases/MethodChainTest.cs
using DeclarativeSql.Sql; using DeclarativeSql.Tests.Models; using FluentAssertions; using Xunit; namespace DeclarativeSql.Tests.Cases { public class MethodChainTest { private DbProvider DbProvider { get; } = DbProvider.SqlServer; [Fact] public void Count_Where() { ...
mit
C#
f68054c0917d9c71f5c67da46a34656fb07c1c57
Create program.cs
kamazoy/csharp-class-inheritance-example
program.cs
program.cs
// This is an example of code that gives you examples of how inheritance works in c# // by Daniel Dainty, Birmingham City University // You will see we have a main class called Animal which can Walk() and Poo() and ActHappy() // ActHappy() is defined as 'virtual' meaning it can be overwritten by specific animals // The...
cc0-1.0
C#
30e61df7d520b2b97326b9c714b2944a360ffe9f
Add missing file
ParagonTruss/UnitClassLibrary
UnitClassLibrary/Energy.cs
UnitClassLibrary/Energy.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace UnitClassLibrary { public class Energy { #region _internalVariables private EnergyType InternalUnitType; private double _intrinsicValue; #e...
lgpl-2.1
C#
a841a73bcff76b81f218688231c931847e2a0482
Create BindableListView.cs
Julien-Mialon/StormXamarin,Julien-Mialon/StormXamarin,snipervld/StormXamarin,snipervld/StormXamarin,snipervld/StormXamarin,Julien-Mialon/StormXamarin
StormXamarin/Storm.Mvvm.Android.Shared/Components/BindableListView.cs
StormXamarin/Storm.Mvvm.Android.Shared/Components/BindableListView.cs
using Android.Content; using Android.Runtime; using Android.Util; using Android.Widget; using Storm.Mvvm.Interfaces; using System; namespace Storm.Mvvm.Components { public class BindableListView : ListView { public event EventHandler CurrentItemChanged; public object CurrentItem { ...
mit
C#
bc9ba6eeefcf89cac40ab4b7faa9783be79889f3
Add interface IPathElementFactory
Domysee/Pather.CSharp
src/Pather.CSharp/PathElements/IPathElementFactory.cs
src/Pather.CSharp/PathElements/IPathElementFactory.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Pather.CSharp.PathElements { public interface IPathElementFactory { bool IsApplicable(string pathElement); IPathElement Create(string pathElement); } }
mit
C#
d1ef304c8da4837ca84c4adb810fe8dd8a558677
add Upgrade_20211130_ChunksAndMinBy
signumsoftware/framework,signumsoftware/framework
Signum.Upgrade/Upgrades/Upgrade_20211130_ChunksAndMinBy.cs
Signum.Upgrade/Upgrades/Upgrade_20211130_ChunksAndMinBy.cs
namespace Signum.Upgrade.Upgrades; class Upgrade_20211130_ChunksAndMinBy : CodeUpgradeBase { public override string Description => "Replace some Signum.Utilities methods (GroupsOf, WithMin, WithMax) with the .Net 6 counterparts (Chunks, MinBy, MaxBy)"; public override void Execute(UpgradeContext uctx) { ...
mit
C#
9c3bfd2e92623bc475efc2fb261169d438e76e6e
Add failing test
Perspex/Perspex,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,Perspex/Perspex,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,...
tests/Avalonia.Skia.UnitTests/Media/TextFormatting/TextShaperTests.cs
tests/Avalonia.Skia.UnitTests/Media/TextFormatting/TextShaperTests.cs
using System; using System.Globalization; using Avalonia.Media; using Avalonia.Media.TextFormatting; using Avalonia.UnitTests; using Xunit; namespace Avalonia.Skia.UnitTests.Media.TextFormatting { public class TextShaperTests { [Fact] public void Should_Form_Clusters_For_BreakPairs() {...
mit
C#
4cfa10df0c51f40835b2d03fc914062ef38ae1f2
Fix ModelState Invalid (#3800)
quantumagi/StratisBitcoinFullNode,Neurosploit/StratisBitcoinFullNode,Neurosploit/StratisBitcoinFullNode,quantumagi/StratisBitcoinFullNode,Neurosploit/StratisBitcoinFullNode,fassadlr/StratisBitcoinFullNode,stratisproject/StratisBitcoinFullNode,fassadlr/StratisBitcoinFullNode,stratisproject/StratisBitcoinFullNode
src/Stratis.Bitcoin.IntegrationTests/API/MultiCallTest.cs
src/Stratis.Bitcoin.IntegrationTests/API/MultiCallTest.cs
using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using Stratis.Bitcoin.Features.Api; using Stratis.Bitcoin.Features.Miner.Interfaces; using Stratis.Bitcoin.IntegrationTests.Common; using Xunit; namespace Stratis.Bitcoin.IntegrationTests.API { public partial...
mit
C#
0231c9b5e3c9179e8d95929cff8b00805942cd4e
Create Veci.cs
SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming
Kattis-Solutions/Veci.cs
Kattis-Solutions/Veci.cs
using System; using System.Collections.Generic; using System.Linq; namespace Veci { class Program { static List<string> permute(List<string> p, string s, int start, int end) { if(start == end) { p.Add(s); } else { ...
mit
C#
52627abaad474897ff83d980be4e98f1352de699
bump version
ColinDabritzViewpoint/Fody,PKRoma/Fody,furesoft/Fody,GeertvanHorrik/Fody,ichengzi/Fody,jasonholloway/Fody,huoxudong125/Fody,Fody/Fody,distantcam/Fody
CommonAssemblyInfo.cs
CommonAssemblyInfo.cs
using System.Reflection; [assembly: AssemblyTitle("Fody")] [assembly: AssemblyProduct("Fody")] [assembly: AssemblyVersion("1.26.1")] [assembly: AssemblyFileVersion("1.26.1")]
using System.Reflection; [assembly: AssemblyTitle("Fody")] [assembly: AssemblyProduct("Fody")] [assembly: AssemblyVersion("1.26.0")] [assembly: AssemblyFileVersion("1.26.0")]
mit
C#
ee36968092e5ee6706a69028521c37eec451faec
Add a basic kafka serilaizer
JasperFx/jasper,JasperFx/jasper,JasperFx/jasper
src/Jasper.ConfluentKafka/Serialization/DefaultJsonSerializer.cs
src/Jasper.ConfluentKafka/Serialization/DefaultJsonSerializer.cs
using System; using System.Text; using System.Threading.Tasks; using Confluent.Kafka; using Confluent.Kafka.SyncOverAsync; using Newtonsoft.Json; namespace Jasper.ConfluentKafka.Serialization { internal class DefaultJsonSerializer<T> : IAsyncSerializer<T> { public Task<byte[]> SerializeAsync(T data, Se...
mit
C#
f8c7d08845b48f0c248f96851830796e03c0d974
Add Viewmodel for MainView
Zalodu/Schedutalk,Zalodu/Schedutalk
Schedutalk/Schedutalk/Schedutalk/ViewModel/VMMainView.cs
Schedutalk/Schedutalk/Schedutalk/ViewModel/VMMainView.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Schedutalk.ViewModel { class VMMainView : VMBase { } }
mit
C#
be437d2631ee040e73bf03e055575550323068c0
Create WcfExtensions.cs
keith-hall/Extensions,keith-hall/Extensions
src/WcfExtensions.cs
src/WcfExtensions.cs
using System; using System.Collections.Generic; namespace HallLibrary.Extensions { public static class WcfExtensions { public static TReturn CallWCFMethodWithHeaders<TChannel, TReturn> (TChannel channel, IEnumerable<System.ServiceModel.Channels.MessageHeader> headers, Func<TChannel, TReturn> callWCFMethod) { usi...
apache-2.0
C#
fa159ce8e72f51aa3227cc02329c6d3349cfb566
Create typicalRequests.cshtml
go4web/Umbraco-Snippets
typicalRequests.cshtml
typicalRequests.cshtml
@{ var language = Model.Content.GetPropertyValue("language", true).ToString(); } @if (@language == "da") { } else {} <h1>@Html.Raw(Model.Content.GetPropertyValue<string>("pageTitle"))</h1> @if(Model.Content.GetPropertyValue<bool>("showImportantNotice")) { <div class="panel"> <div class="panelBackground light g...
mit
C#
6acbd2d9484f28e725bcc52262cb11966cf3d98a
Add InstanceMetadataOptionsRequest
carbon/Amazon
src/Amazon.Ec2/Actions/InstanceMetadataOptionsRequest.cs
src/Amazon.Ec2/Actions/InstanceMetadataOptionsRequest.cs
using System.ComponentModel.DataAnnotations; namespace Amazon.Ec2 { public sealed class InstanceMetadataOptionsRequest { public static InstanceMetadataOptionsRequest RequireHttpToken = new InstanceMetadataOptionsRequest { HttpTokens = "required" }; // Valid Valu...
mit
C#
da00abaf0c58ebb9286d4ca71430f5914a52e75d
Create KissApiWrapper.cs
kcassata/KISSMetricNet
KissApiWrapper.cs
KissApiWrapper.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Cache; using System.Text; namespace DaneSolutions.Wrappers { public class KissApiWrapper : Dictionary<string, string> { private string apiKey; private bool useSSL; pub...
apache-2.0
C#
78647d6eb00d9baf25177667e1e3ad44fc555f41
Create test3.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...
POH6plus/test3.cs
POH6plus/test3.cs
using System; using System.IO; class H { static byte[] b=new byte[20000]; static int i,j,h,k,n=0,x,l=0,m,c=0; static int[] p,q; static Stream o=Console.OpenStandardOutput(); static int cmp(int u, int v) { if (b[u]==b[v]) if (b[u]=='\n') return 0; e...
mit
C#
147b2da7548119182cfb06c4a4bfbe681c0d0603
Create AssemblyInfo.cs
sergkondr/spritz_reader
spritz/Properties/AssemblyInfo.cs
spritz/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Управление общими сведениями о сборке осуществляется с помощью // набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения, // связанные со сборкой. [assembly: AssemblyTitle("spritz")] [assembly...
apache-2.0
C#
fb1c5428749973fb279c53236270debbb9214bf6
Create AboutApp.cs
Onastick/SightByte
AboutApp.cs
AboutApp.cs
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Reflection; using System.Threading.Tasks; using System.Windows.Forms; namespace SightByte { partial class AboutApp : Form { public AboutApp() { Initiali...
cc0-1.0
C#
2e37f21c04b4a09362c3bf44bed5461c7b0fa516
Add Logistic activation function
A1essandro/NeuralNetworkConstructor
NeuralNetworkConstructor/Network/Node/ActivationFunction/Logistic.cs
NeuralNetworkConstructor/Network/Node/ActivationFunction/Logistic.cs
using System; namespace NeuralNetworkConstructor.Network.Node.ActivationFunction { public class Logistic : IActivationFunction { private double _param; public Logistic(double param = 1) { _param = param; } public double Calculate(double value) => 1 / (1 ...
mit
C#
011965a2249337ce475dff473b3706b385d75fc5
add mapper
mzrimsek/scheduler,mzrimsek/scheduler,mzrimsek/scheduler
Mappers/EventModelMapper.cs
Mappers/EventModelMapper.cs
using System; using scheduler.Models; using scheduler.Models.DatabaseModels; using scheduler.Models.SchedulerViewModels; namespace scheduler.Mappers { public static class EventModelMapper { public static Event MapFrom(ApplicationUser currentUser, EventViewModel viewModel) { return n...
mit
C#
293f4af0fba0cc0209e59a783dc3c159c01ba55a
Add default web socket client unit tests
sonvister/Binance
test/Binance.Tests/WebSocket/DefaultWebSocketClientTest.cs
test/Binance.Tests/WebSocket/DefaultWebSocketClientTest.cs
using System; using System.Threading; using System.Threading.Tasks; using Binance.WebSocket; using Xunit; namespace Binance.Tests.WebSocket { public class DefaultWebSocketClientTest { [Fact] public async Task Throws() { var uri = new Uri("wss://stream.binance.com:9443"); ...
mit
C#
a06a6a0dff154b1a3e90f52da890db96c528e497
Add TestAsyncDelayer
Cyberboss/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server-tools,Cyberboss/tgstation-server
tests/Tgstation.Server.Host.Tests/Core/TestAsyncDelayer.cs
tests/Tgstation.Server.Host.Tests/Core/TestAsyncDelayer.cs
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Threading; using System.Threading.Tasks; namespace Tgstation.Server.Host.Core.Tests { [TestClass] public sealed class TestAsyncDelayer { [TestMethod] public async Task TestDelay() { var delayer = new AsyncDelayer(); var star...
agpl-3.0
C#
8ed48402115146a85a81ac0c4fed780befbdcced
Add the producer wrap to donet
StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTan...
rocketmq-client-donet/src/ProducerWrap.cs
rocketmq-client-donet/src/ProducerWrap.cs
using System; using System.Runtime.InteropServices; namespace RocketMQ.Interop { public static class ProducerWrap { // init [DllImport(ConstValues.RocketMQDriverDllName, CallingConvention = CallingConvention.Cdecl)] public static extern IntPtr CreateProducer(string groupId); [...
apache-2.0
C#
194a4426022c4880997941b3c9fb6e21f03b7544
add PostDbContext class.
Taylorgrohs/.NET-SoloProject,Taylorgrohs/.NET-SoloProject,Taylorgrohs/.NET-SoloProject
SoloProject/src/SoloProject/Models/PostDbContext.cs
SoloProject/src/SoloProject/Models/PostDbContext.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SoloProject.Models { public class PostDbContext : DbContext { public DbSet<Post> Posts { get; set; } public DbSet<Comment> Comments { get; set; } protected override void OnConfi...
mit
C#
acc3f23971d64704fb9530ca676ce86bce55c086
Add PWM-to-LED driver
treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk
NET/Libraries/Treehopper.Libraries/Displays/PwmLedDriver.cs
NET/Libraries/Treehopper.Libraries/Displays/PwmLedDriver.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Treehopper.Libraries.Interface; namespace Treehopper.Libraries.Displays { /// <summary> /// An LedDriver implemented using plain digital output pins /// </summary> /// <typeparam n...
mit
C#
f888021c3acc096be6c5fd5421d4a277eee99920
Add tests
spektrumgeeks/Spk.Common
test/Spk.Common.Tests.Helpers/Guard/ArgumentGuardTests.GuardIsNotEmpty.cs
test/Spk.Common.Tests.Helpers/Guard/ArgumentGuardTests.GuardIsNotEmpty.cs
using System; using Shouldly; using Spk.Common.Helpers.Guard; using Xunit; namespace Spk.Common.Tests.Helpers.Guard { public partial class ArgumentGuardTests { [Fact] public void GuardIsNotEmpty_ShouldThrow_WhenArgumentIsEmpty() { Guid argument = Guid.Empty; Asse...
mit
C#
1e28fc4a9a1f3a745d37469ce48639c65dade4ac
Add the NBench visual studio test adapter project.
SeanFarrow/NBench.VisualStudio
src/NBench.VisualStudio.TestAdapter/NBenchTestDiscoverer.cs
src/NBench.VisualStudio.TestAdapter/NBenchTestDiscoverer.cs
namespace NBench.VisualStudio.TestAdapter { using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging; using System; using System.Collections.Generic; public class NBenchTestDiscoverer : ITestDiscoverer { public void Di...
apache-2.0
C#
e4d7fd2471a0f0f621291081efdb210cc76c7e97
Patch file
cmdrmcdonald/EliteDangerousDataProvider
Utilities/ServerInfo.cs
Utilities/ServerInfo.cs
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Utilities { /// <summary> /// Information obtained from the update server /// </summary> public class ServerInfo { /// <summary> /// ...
apache-2.0
C#
c88994f282b88689a80461941d7ae83d0db9fd70
Add test for EventAdapter
quartz-software/kephas,quartz-software/kephas
src/Tests/Kephas.Messaging.Tests/Events/EventAdapterTest.cs
src/Tests/Kephas.Messaging.Tests/Events/EventAdapterTest.cs
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="MessageAdapterTest.cs" company="Kephas Software SRL"> // Copyright (c) Kephas Software SRL. All rights reserved. // Licensed under the MIT license. See LICENSE file in the pro...
mit
C#
a348700477a5b2f113f039fa9eb26a6ccdc7d52c
Add test
smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,smoogipooo/osu-framework
osu.Framework.Tests/Visual/Audio/TestSceneSampleChannels.cs
osu.Framework.Tests/Visual/Audio/TestSceneSampleChannels.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 NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Audio.Sample; namespace osu.Framework.Tests.Visual.Audio { public class Test...
mit
C#
4cd9cc56a13588db8bf8f1cc81d1798eef09dabc
Remove OnSetup from ArgumentConstraintTestBase<T>
blairconrad/FakeItEasy,adamralph/FakeItEasy,adamralph/FakeItEasy,thomaslevesque/FakeItEasy,FakeItEasy/FakeItEasy,thomaslevesque/FakeItEasy,FakeItEasy/FakeItEasy,blairconrad/FakeItEasy
tests/FakeItEasy.Tests/ArgumentConstraintTestBase.of.T.cs
tests/FakeItEasy.Tests/ArgumentConstraintTestBase.of.T.cs
namespace FakeItEasy.Tests { using FakeItEasy.Core; using NUnit.Framework; internal abstract class ArgumentConstraintTestBase<T> : ArgumentConstraintTestBase { [SetUp] public void Setup() { this.CreateConstraint(new DefaultArgumentConstraintManager...
namespace FakeItEasy.Tests { using FakeItEasy.Core; using NUnit.Framework; internal abstract class ArgumentConstraintTestBase<T> : ArgumentConstraintTestBase { [SetUp] public void Setup() { this.CreateConstraint(new DefaultArgumentConstraintManager...
mit
C#
b18866f3a1e417c29f1addfdc39b3f0d21aa7c37
Create OpeningTabDelimitedFiles.cs
maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells...
Examples/CSharp/Files/Handling/OpeningTabDelimitedFiles.cs
Examples/CSharp/Files/Handling/OpeningTabDelimitedFiles.cs
using System.IO; using Aspose.Cells; using System; namespace Aspose.Cells.Examples.Files.Handling { public class OpeningFiles { public static void Main(string[] args) { //Exstart:1 // The path to the documents directory. string dataDir = Aspose.Cells.Example...
mit
C#
2fedef63f73774aa07d30e71851bedd9929c5c10
add Network.cs
jiankaiwang/seed,jiankaiwang/seed,jiankaiwang/seed,jiankaiwang/seed,jiankaiwang/seed,jiankaiwang/seed,jiankaiwang/seed,jiankaiwang/seed,jiankaiwang/seed
csharp/Network.cs
csharp/Network.cs
/* * proj : seed (https://github.com/jiankaiwang/seed) * auth : JianKai Wang * desc : Network * eg.1 : IsInSameSubnet * var ip1 = IPAddress.Parse("192.168.0.1"); * var ip2 = IPAddress.Parse("192.168.1.40"); * var mask = IPAddress.Parse("255.255.0.0"); * bool inSameNet = ip1.IsInSameSubnet(ip2, mask); */ usin...
mit
C#
3cbf6742bd415b3c1a8d25b89e75eef640ac8912
Remove unneeded nullable check
physhi/roslyn,physhi/roslyn,sharwell/roslyn,weltkante/roslyn,mgoertz-msft/roslyn,tannergooding/roslyn,AlekseyTs/roslyn,eriawan/roslyn,AlekseyTs/roslyn,wvdd007/roslyn,jasonmalinowski/roslyn,tmat/roslyn,panopticoncentral/roslyn,AmadeusW/roslyn,ErikSchierboom/roslyn,dotnet/roslyn,tmat/roslyn,diryboy/roslyn,KevinRansom/ros...
src/Features/Core/Portable/MetadataAsSource/IMetadataAsSourceFileService.cs
src/Features/Core/Portable/MetadataAsSource/IMetadataAsSourceFileService.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.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeA...
// 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. #nullable enable using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Text; namespa...
mit
C#