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 |
|---|---|---|---|---|---|---|---|---|
36e944c3438159e21a0b98cf3bf9dfac63caa0dc | Add tracingheader for support Diagnostics | dotnetcore/CAP,ouraspnet/cap,dotnetcore/CAP,dotnetcore/CAP | src/DotNetCore.CAP/Diagnostics/TracingHeaders.cs | src/DotNetCore.CAP/Diagnostics/TracingHeaders.cs | // Copyright (c) .NET Core Community. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace DotNetCore.CAP.Diagnostics
{
public class TracingHeaders : IEnumerabl... | mit | C# | |
ae53e53ec5ea65f52ad2a177c47c6ea05bc1933c | Add samples infrastructure | jorik041/maccore,mono/maccore,cwensley/maccore | tools/docfixer/samples.cs | tools/docfixer/samples.cs | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
using System.Xml.Serialization;
using Ionic.Zip;
public struct SampleDesc {
public string ID { get; set; }
public string FullTypeName { get; set; }
public string DocumentationF... | apache-2.0 | C# | |
6e2afd99846f3d66476063df26a65bc06b003ade | add posix ip family helper | splitice/IPTables.Net,splitice/IPTables.Net,splitice/IPTables.Net,splitice/IPTables.Net | IPTables.Net/Iptables/Helpers/PosixFamilyHelpers.cs | IPTables.Net/Iptables/Helpers/PosixFamilyHelpers.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IPTables.Net.Iptables.Helpers
{
public class PosixFamilyHelpers
{
public String GetIpFamily(int ipVersion)
{
switch (ipVersion)
{
... | apache-2.0 | C# | |
396138ecca8e74999e10dc6361c1d56f82dac290 | Create StephanosConstantinou.cs | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/StephanosConstantinou.cs | src/Firehose.Web/Authors/StephanosConstantinou.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class StephanosConstantinou : IAmACommunityMember
{
public string FirstName => "Stephanos";
publ... | mit | C# | |
5f8a0f3d1f4cd9948ced87e312bcd0c4a616ef2a | Add the remote connector for freeswitch config retrieval | EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,RavenB/opensim,TomDataworks/opensim,TomDataworks/opensim,RavenB/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,RavenB/opensim,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.... | OpenSim/Services/Connectors/Freeswitch/RemoteFreeswitchConnector.cs | OpenSim/Services/Connectors/Freeswitch/RemoteFreeswitchConnector.cs | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | bsd-3-clause | C# | |
4912948a37bf86c473a9e56d7f98660a1404262b | Create ShopifyCustomCollection.cs | Yitzchok/ShopifySharp,clement911/ShopifySharp,mooglegiant/ShopifySharp,nozzlegear/ShopifySharp,shajumohamed/ShopifySharp,addsb/ShopifySharp | ShopifySharp/Entities/ShopifyCustomCollection.cs | ShopifySharp/Entities/ShopifyCustomCollection.cs | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace ShopifySharp
{
/// <summary>
/// An entity representing a Shopify Custom Collection Object.
/// </summary>
public class ShopifyCustomCollection : ShopifyObject
{
/// <summar... | mit | C# | |
8f944a6f62fd9fd04a1cdfffeaafb6d5f2ab7c5d | Add unit test for SecurityKeyEntropyMode. | mconnew/wcf,dotnet/wcf,dotnet/wcf,mconnew/wcf,StephenBonikowsky/wcf,mconnew/wcf,imcarolwang/wcf,StephenBonikowsky/wcf,imcarolwang/wcf,imcarolwang/wcf,dotnet/wcf | src/System.ServiceModel.Security/tests/ServiceModel/SecurityKeyEntropyModeTest.cs | src/System.ServiceModel.Security/tests/ServiceModel/SecurityKeyEntropyModeTest.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.ServiceModel.Security;
using Infrastructure.Common;
using Xunit;
public static class SecurityKeyEntr... | mit | C# | |
d7c6623cfcef77be7f63964a2c751d4215667d56 | Remove code that sets grid to tabbed | AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,karthiknad... | src/Package/Impl/DataInspect/Viewers/GridViewerBase.cs | src/Package/Impl/DataInspect/Viewers/GridViewerBase.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Threading.Tasks;
using EnvDTE;
using Microsoft.R.Components.Extensions;
using Microsoft.R.DataInspection;
using Microsoft.VisualStudio.R.P... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Threading.Tasks;
using EnvDTE;
using Microsoft.R.Components.Extensions;
using Microsoft.R.DataInspection;
using Microsoft.VisualStudio.R.P... | mit | C# |
ed172c4f517d913a026f4a2e4c038d184a4d7901 | Create SaveInSpreadsheetMLFormat.cs | asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells... | Examples/CSharp/Files/Handling/SaveInSpreadsheetMLFormat.cs | Examples/CSharp/Files/Handling/SaveInSpreadsheetMLFormat.cs | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Files.Handling
{
public class SaveInSpreadsheetMLFormat
{
public static void Main(string[] args)
{
//ExStart:1
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples... | mit | C# | |
0b8ca667a94c5c5d962bbd66726e464deca21422 | Add failing test coverage of loading with an unavailable ruleset | NeoAdonis/osu,ppy/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,peppy/osu-new,peppy/osu,smoogipooo/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,peppy/osu,UselessToucan/osu | osu.Game.Tournament.Tests/NonVisual/DataLoadTest.cs | osu.Game.Tournament.Tests/NonVisual/DataLoadTest.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.IO;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Platform;
using osu.Game.Rulesets;
using osu.Game.Tests;
namespace osu.Game.T... | mit | C# | |
d3bb4ddbee09ebcab963add6fcce38945d01b99f | Add an ad-hoc way to provide dependency to children | peppy/osu,peppy/osu-new,smoogipooo/osu,UselessToucan/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu | osu.Game/Tests/Visual/DependencyProvidingContainer.cs | osu.Game/Tests/Visual/DependencyProvidingContainer.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Tests.Visual
{
/// <summary>
/// A <... | mit | C# | |
524e3ba82f4d717cddeec3fa7506831920665e88 | Add Void type to FunctionsDomain | manisero/DSLExecutor | dev/Manisero.DSLExecutor/Domain/FunctionsDomain/Void.cs | dev/Manisero.DSLExecutor/Domain/FunctionsDomain/Void.cs | namespace Manisero.DSLExecutor.Domain.FunctionsDomain
{
public class Void
{
public const Void Value = null;
private Void()
{
}
}
}
| mit | C# | |
4903f2c191431bbe97265719c6a36afcf166c90d | Add IScreenRecorder stubs | nikeee/HolzShots | src/HolzShots.Capture.Video/Capture/Video/IScreenRecorder.cs | src/HolzShots.Capture.Video/Capture/Video/IScreenRecorder.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HolzShots.Capture.Video
{
public interface IScreenRecorder : IDisposable
{
Task<ScreenRecordingResult> Invoke(Rectangle rectangle... | agpl-3.0 | C# | |
d17d85ad58e33e94714759c0ad5669e3e88706e2 | Add UserDataWebSocketClientExtensions | sonvister/Binance | src/Binance/Extensions/UserDataWebSocketClientExtensions.cs | src/Binance/Extensions/UserDataWebSocketClientExtensions.cs | using Binance.Api;
// ReSharper disable once CheckNamespace
namespace Binance.WebSocket.UserData
{
public static class UserDataWebSocketClientExtensions
{
/// <summary>
/// Subscribe listen key and user (w/o callback).
/// </summary>
/// <param name="client"></param>
//... | mit | C# | |
ea132b40ff48eb15660b417b32c55f97341c850b | Fix off indicator for json/asmdef file | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | resharper/resharper-unity/src/AsmDefNew/Daemon/AsmDefNewLanguageSpecificDaemonBehavior.cs | resharper/resharper-unity/src/AsmDefNew/Daemon/AsmDefNewLanguageSpecificDaemonBehavior.cs | using JetBrains.ReSharper.Feature.Services.Daemon;
using JetBrains.ReSharper.Plugins.Unity.JsonNew.Psi;
using JetBrains.ReSharper.Psi;
namespace JetBrains.ReSharper.Plugins.Unity.AsmDefNew.Daemon
{
[Language(typeof(JsonNewLanguage))]
public class AsmDefNewLanguageSpecificDaemonBehavior: ILanguageSpecificDaemon... | apache-2.0 | C# | |
3e7d6e68aec2af1fe8d223a0094987562db8a09e | Add class: WinSCard | Archie-Yang/PcscDotNet | src/PcscDotNet/WinSCard.cs | src/PcscDotNet/WinSCard.cs | using System;
public class WinSCard : IPcscProvider
{
} | mit | C# | |
6ef75710449105ac30daabe98a8a75916c21a9e6 | add missing file | altimesh/hybridizer-basic-samples,altimesh/hybridizer-basic-samples | Jupyter/Labs/03_Streams/04-stream-add/04-stream-add.cs | Jupyter/Labs/03_Streams/04-stream-add/04-stream-add.cs | using Hybridizer.Runtime.CUDAImports;
using System;
using System.Runtime.InteropServices;
namespace Streams
{
public class Program
{
[EntryPoint]
public static void Add(float[] a, float[] b, int start, int stop)
{
for (int k = start + threadIdx.x + blockDim.x * blockIdx.x; ... | mit | C# | |
139a332aaa1cc907a5796e28a8b92e87a4629dfa | Create ArrayUtils.cs | AOmelaienko/Camila.ArrayUtils | ArrayUtils.cs | ArrayUtils.cs | using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace Camila {
public static class ArrayUtils {
public static int[] GetIndices ( int[] Lengths, int FlatIndex ) {
int[] result = new int[Lengths.Length];
Parallel.For ( 0, result.Length, i => result[i] = ( FlatI... | mit | C# | |
4338b6b0ec130754522869e0d4789a58329c6708 | Add BasePlugin | KpdApps/KpdApps.Common.MsCrm2013 | BasePlugin.cs | BasePlugin.cs | using System;
using KpdApps.Common.MsCrm2013.Extensions;
using Microsoft.Xrm.Sdk;
namespace KpdApps.Common.MsCrm2013
{
public abstract class BasePlugin : IPlugin
{
public readonly string UnsecureConfiguration;
public readonly string SecureConfiguration;
/// <summary>
/// Cons... | mit | C# | |
0ca4cb0d596ac50e8817eac51703995f48590e37 | Add missing file | skillz/BlockBreaker | BlockBreaker/Assets/Skillz/Internal/SkillzHelpers.cs | BlockBreaker/Assets/Skillz/Internal/SkillzHelpers.cs | using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
namespace SkillzSDK
{
namespace Extensions {
/// <summary>
/// Skillz helper extensions. Internal only, do not rely on for game code
/// </summary>
public static class SkillzExtensions
{
public static bool? Saf... | mit | C# | |
117547f7851317d615545bf4166cd1c7011f029a | Add parameterless constructor | perspicapps/toolbox,tomgrv/pa.toolbox,perspicapps/toolbox | PA.Plugin/Attributes/PluginDescriptionAttribute.cs | PA.Plugin/Attributes/PluginDescriptionAttribute.cs | using System;
using System.Linq;
using System.ComponentModel.Composition;
using System.ComponentModel;
using System.Collections.Generic;
namespace PA.Plugin
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property), MetadataAttribute]
public class PluginDescriptionAttribute : DescriptionAttribute
... | using System;
using System.Linq;
using System.ComponentModel.Composition;
using System.ComponentModel;
using System.Collections.Generic;
namespace PA.Plugin
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property), MetadataAttribute]
public class PluginDescriptionAttribute : DescriptionAttribute
... | mit | C# |
0c8da605bcb877091d7ca14f47645c4df687e11f | Create index.cshtml | KovalNikita/apmathcloud | SITE/index.cshtml | SITE/index.cshtml | @{
var txt = DateTime.Now; // ëþáîé êîä íà C#
}
<html>
<body>
<p>The dateTime is @txt</p>
</body>
</html>
| mit | C# | |
3d53aa49e8eece95b183d24d64fc0203d491ff48 | add path class | jasarsoft/mmrtw | Class/Path.cs | Class/Path.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Jasarsoft.ModManager.RTW
{
public class Path
{
private string app;
private string game;
private string icon;
//constructor
public Path()
{
Read();
}
publi... | apache-2.0 | C# | |
400b2a5179a7b4b66994a56016dc0ea568c51b27 | Add tests for new extensionmethods | contentful/contentful.net | Contentful.Core.Tests/Extensions/JTokenExtensionsTests.cs | Contentful.Core.Tests/Extensions/JTokenExtensionsTests.cs | using Contentful.Core.Extensions;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
namespace Contentful.Core.Tests.Extensions
{
public class JTokenExtensionsTests
{
[Fact]
public void JTokenIsNullShouldReturnTrueForNullValue()
... | mit | C# | |
48030fed1129bfa26e8ac2d012b8f8c2583cf2b2 | add EditorTools/EditorToolsPlayerPrefsDeleteAll.cs | NDark/ndinfrastructure,NDark/ndinfrastructure | Unity/EditorTools/EditorToolsPlayerPrefsDeleteAll.cs | Unity/EditorTools/EditorToolsPlayerPrefsDeleteAll.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EditorToolsPlayerPrefsDeleteAll : MonoBehaviour
{
public void PlayerPrefsDeleteAll()
{
EditorTools.PlayerPrefsDeleteAll() ;
}
}
| mit | C# | |
1fa9a624d332d7005e7d119c1a73536c67c96b9f | Add testrunconfiguration class | mmanela/chutzpah,andersnygaard/chutzpah,mmanela/chutzpah,mmanela/chutzpah,mmanela/chutzpah,andersnygaard/chutzpah,andersnygaard/chutzpah,andersnygaard/chutzpah | Chutzpah/Models/TestRunConfiguration.cs | Chutzpah/Models/TestRunConfiguration.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Chutzpah.Models
{
public class TestRunConfiguration
{
public List<List<PathInfo>> TestGroups { get; set; }
public int? MaxDegreeOfParallelism { get; set; }
p... | apache-2.0 | C# | |
f717c96bb8f1bc053bca2993927100eb46b61a62 | Create 10.PriceChangeAlert.cs | stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity | TechnologiesFundamentals/ProgrammingFundamentals/MethodsAndDebugging-Lab/10.PriceChangeAlert.cs | TechnologiesFundamentals/ProgrammingFundamentals/MethodsAndDebugging-Lab/10.PriceChangeAlert.cs | using System;
class PriceChangeAlert
{
static void Main()
{
int n = int.Parse(Console.ReadLine());
double priceThreshold = double.Parse(Console.ReadLine());
double lastAvailablePrice = double.Parse(Console.ReadLine());
for (int i = 0; i < n - 1; i++)
{
double... | mit | C# | |
885d94a50b9159713100e807174b92b044ba44ae | support additional environment names (stage/test) | AerisG222/mikeandwan.us,AerisG222/mikeandwan.us,AerisG222/mikeandwan.us,AerisG222/mikeandwan.us,AerisG222/mikeandwan.us | src/Maw.Domain/HostEnvironmentExtensions.cs | src/Maw.Domain/HostEnvironmentExtensions.cs | namespace Microsoft.Extensions.Hosting;
public static class HostEnvironmentExtensions
{
public static bool IsStage(this IHostEnvironment hostEnvironment)
{
if (hostEnvironment == null)
{
throw new ArgumentNullException(nameof(hostEnvironment));
}
return hostEnvironm... | mit | C# | |
62cdc3b5bfadc3235740937aaaa4c8d757d99eea | Add main configuration | lecaillon/Evolve | src/Evolve.Core/Configuration/IEvolveConfiguration.cs | src/Evolve.Core/Configuration/IEvolveConfiguration.cs | using System.Collections.Generic;
using System.Text;
namespace Evolve.Core.Configuration
{
/// <summary>
/// <para>
/// Evolve configuration for sql migrations.
/// </para>
/// <para>
/// Sql migrations have the following file name structure: prefixVERSIONseparatorD... | mit | C# | |
487979b0164091f9c2928204e660d218ca9faada | Add Testing | smoogipoo/osu,peppy/osu,NeoAdonis/osu,smoogipooo/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,2yangk23/osu,johnneijzen/osu,UselessToucan/osu,ppy/osu,ZLima12/osu,2yangk23/osu,ppy/osu,EVAST9919/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,johnneijzen/osu,peppy/osu,ZLima12/osu,smoogipoo/osu,EVAST9919/osu,ppy/osu,pep... | osu.Game.Tests/Visual/Online/TestSceneUserRequest.cs | osu.Game.Tests/Visual/Online/TestSceneUserRequest.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.Bindables;
using osu.Framework.Graphics.Containers;
using osu.Game.Online.API;
using osu.Game.... | mit | C# | |
17e5d0770ac9cb0118637ab2f24ebae3700ca77a | Add Platforms model for possible future use | mrattner/chchbus | ChchBus/Models/Platforms.cs | ChchBus/Models/Platforms.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Net.Http;
using System.Xml.Linq;
using System.IO;
namespace ChchBus {
/// <summary>
/// Interfaces with the Metroinfo API to get bus stop information.
/// </summary>
public class Platforms {
/// <summar... | mit | C# | |
670a9b9b40b1ae963ce2bb07542ec53782529a33 | add Bytes.Primitives | acple/ParsecSharp | ParsecSharp/Parser/Bytes/Bytes.Primitives.cs | ParsecSharp/Parser/Bytes/Bytes.Primitives.cs | using System;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
namespace ParsecSharp
{
public static partial class Bytes
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Parser<byte, short> Int16()
=> Take(sizeof(short)).Map(x => BitConv... | mit | C# | |
3e2834bb3cfffa6898dfebb017a9cfe017c9f433 | Update UserService.cs class in the Example | feanz/Thinktecture.IdentityServer3.Samples,IdentityServer/IdentityServer3.Samples,feanz/Thinktecture.IdentityServer3.Samples,codehedgehog/IdentityServer3.Samples,geffzhang/Thinktecture.IdentityServer.v3.Samples,IdentityServer/IdentityServer3.Samples,geffzhang/Thinktecture.IdentityServer.v3.Samples,codehedgehog/Identity... | source/AspNetIdentity/WebHost/IdSvr/UserService.cs | source/AspNetIdentity/WebHost/IdSvr/UserService.cs | /*
* Copyright 2014 Dominick Baier, Brock Allen
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | /*
* Copyright 2014 Dominick Baier, Brock Allen
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | apache-2.0 | C# |
bedd41cf8c906a0b35074463ed86a3179e15b886 | Add Support for IScopeStore | fredrikstrandin/IdentityServer4.MongoDB | src/Core.MongoDB/Services/MongoDB/MongoDBScopeStore.cs | src/Core.MongoDB/Services/MongoDB/MongoDBScopeStore.cs | // Copyright (c) Fredrik Strandin. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using IdentityServer4.Core.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extens... | apache-2.0 | C# | |
edf180e750d0ef17402a98d277b5a0950c50a2a0 | Create Problem52.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem52.cs | Problems/Problem52.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectEuler
{
class Problem52
{
private string Integers(long n)
{
List<int> intList = new List<int>();
string strN = n.ToString();
for (int i = 0; i < strN.Length... | mit | C# | |
68b0c3167c608fee9ffdaa3470b0e5805d4f46f9 | Add tests for 'AuthenticationExtensions' | InfiniteSoul/Azuria | Azuria.Test/Authentication/AuthenticationExtensionsTest.cs | Azuria.Test/Authentication/AuthenticationExtensionsTest.cs | using System.Threading;
using System.Threading.Tasks;
using Azuria.Authentication;
using Azuria.ErrorHandling;
using Azuria.Test.Core;
using Moq;
using Xunit;
namespace Azuria.Test.Authentication
{
public class AuthenticationExtensionsTest
{
private const string Username = "username";
private c... | mit | C# | |
707c779b9937bbc48a6c103e9201ad8941920a9c | Update HCSR04.cs | ZhangGaoxing/windows-iot-demo,ZhangGaoxing/windows-iot-demo,ZhangGaoxing/windows-iot-demo | HC_SR04Demo/HC_SR04Demo/HCSR04.cs | HC_SR04Demo/HC_SR04Demo/HCSR04.cs | using System.Diagnostics;
using System.Threading.Tasks;
using Windows.Devices.Gpio;
namespace HC_SR04Demo
{
class HCSR04
{
private int sensorTrig;
private int sensorEcho;
private GpioPin pinTrig;
private GpioPin pinEcho;
Stopwatch time = new Stopwatch();
/// ... | mit | C# | |
146bef7e3d73cab319284fc28d98d7a8fd0ca359 | Add collection to array Newtonsoft.Json based JSON converter | JasperFx/Marten,ericgreenmix/marten,JasperFx/Marten,mysticmind/marten,mdissel/Marten,mysticmind/marten,mysticmind/marten,ericgreenmix/marten,JasperFx/Marten,mdissel/Marten,ericgreenmix/marten,ericgreenmix/marten,mysticmind/marten | src/Marten/Util/CollectionToArrayJsonConverter.cs | src/Marten/Util/CollectionToArrayJsonConverter.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
namespace Marten.Util
{
/// <summary>
/// Serialize collection type property to JSON array using a custom Newtonsoft.Json JsonConverter
/// Note that without using custom `JsonConverter`, `Newtonsoft.Json` stores it a... | mit | C# | |
406fcaa95104d94e975492ad6b61bea4b4eb9844 | Add ArgumentInvalidException class. | Si13n7/SilDev.CSharpLib | src/SilDev/ArgumentInvalidException.cs | src/SilDev/ArgumentInvalidException.cs | #region auto-generated FILE INFORMATION
// ==============================================
// This file is distributed under the MIT License
// ==============================================
//
// Filename: ArgumentInvalidException.cs
// Version: 2019-01-30 10:22
//
// Copyright (c) 2019, Si13n7 Developments (r)
//... | mit | C# | |
866ecf7f9da713cd2c601afcc90d961084116ae8 | Create DataRepository.cs | CarmelSoftware/Generic-Data-Repository-for-ASP.NET-MVC | Models/DataRepository.cs | Models/DataRepository.cs | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity.Infrastructure;
using System.Data.Objects;
using System.Linq;
using System.Web;
namespace GenericRepository.Models
{
public class DataRepository : IDisposable
{
#region Context
private BlogEntities _Cont... | mit | C# | |
d92e853dcaee5c585645b7f0acf8a07c11c194c5 | Create WindowAlwaysOnTop.cs | UnityCommunity/UnityLibrary | Assets/Scripts/Helpers/Windows/WindowAlwaysOnTop.cs | Assets/Scripts/Helpers/Windows/WindowAlwaysOnTop.cs | // keep executable window always on top, good for multiplayer testing
using System;
using System.Runtime.InteropServices;
using UnityEngine;
namespace UnityLibrary
{
public class WindowAlwaysOnTop : MonoBehaviour
{
// https://stackoverflow.com/a/34703664/5452781
private static readonly IntPtr ... | mit | C# | |
b9e8a99b01d2b0859402ac2d43337e70d9506b93 | Fix visibility of internal extensions type | rjxby/corefx,DnlHarvey/corefx,richlander/corefx,ViktorHofer/corefx,axelheer/corefx,stone-li/corefx,Petermarcu/corefx,seanshpark/corefx,parjong/corefx,yizhang82/corefx,DnlHarvey/corefx,DnlHarvey/corefx,dhoehna/corefx,shimingsg/corefx,the-dwyer/corefx,lggomez/corefx,rjxby/corefx,Ermiar/corefx,axelheer/corefx,DnlHarvey/co... | src/Common/src/System/Net/Internals/IPAddressExtensions.cs | src/Common/src/System/Net/Internals/IPAddressExtensions.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.Diagnostics;
namespace System.Net.Sockets
{
internal static class IPAddressExtensions
{
... | // 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.Diagnostics;
namespace System.Net.Sockets
{
public static class IPAddressExtensions
{
... | mit | C# |
815fc702c37dba76a2d318e982aa8a73141086c1 | validate exception and usage | Pondidum/Stronk,Pondidum/Stronk | src/Stronk.Tests/Validation/ValueSelectorValidatorTests.cs | src/Stronk.Tests/Validation/ValueSelectorValidatorTests.cs | using System;
using System.Collections.Generic;
using NSubstitute;
using Shouldly;
using Stronk.ConfigurationSources;
using Stronk.PropertyMappers;
using Stronk.PropertyWriters;
using Stronk.Validation;
using Xunit;
namespace Stronk.Tests.Validation
{
public class ValueSelectorValidatorTests
{
private readonly Val... | lgpl-2.1 | C# | |
7a5f58962a4b190ec233c216dbd3a7280abe8101 | create ping command | Iwuh/Wycademy | WycademyV2/src/WycademyV2/Commands/Modules/OtherModule.cs | WycademyV2/src/WycademyV2/Commands/Modules/OtherModule.cs | using Discord.Commands;
using Discord.WebSocket;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WycademyV2.Commands.Preconditions;
using WycademyV2.Commands.Services;
namespace WycademyV2.Commands.Modules
{
[Summary("Misc. Commands")]
public class OtherM... | mit | C# | |
69ac6bd39abd8c361f9710982af8a04106bd7fdf | Add old index | Nousware/nous-ware.com,Nousware/nous-ware.com,Nousware/nous-ware.com | Nousware.Web/Nousware.Web/Views/Home/OLDIndex.cshtml | Nousware.Web/Nousware.Web/Views/Home/OLDIndex.cshtml |
@{
Layout = null;
}
@using System.Web.Optimization
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Nousware</title>
@Styles.Render("~/Content/site")
@Scripts.Render("~/Content/dependencies/jquery/dist/jquery.js")
@Scripts.Render("~/Conte... | apache-2.0 | C# | |
fe215e5240c5393d05f2f6c67124e432f9d159b4 | Add Chat View - omitted before | gparlakov/chat-teamwork,gparlakov/chat-teamwork | WS-Team-Work/Chat.Services/Views/Chat/Index.cshtml | WS-Team-Work/Chat.Services/Views/Chat/Index.cshtml | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Michelangelo Web Chat</title>
<link href='http://fonts.googleapis.com/css?family=Yesteryear' rel='stylesheet' type='text/css'/>
<script src="~/Scripts/jquery-2.0.3.js"></script>
<script src="~/Scripts/http-requester.js"></s... | mit | C# | |
645ea2a236b042d15ca7245f655ecc01a6f7a061 | Add test coverage | ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework | osu.Framework.Tests/Input/KeyCombinationModifierTest.cs | osu.Framework.Tests/Input/KeyCombinationModifierTest.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.Input.Bindings;
namespace osu.Framework.Tests.Input
{
[TestFixture]
public class KeyCombinationModifierTest
{
... | mit | C# | |
dc738d697611ad61c6580d9245764c6bb4836c63 | Create BlogsController.cs | CarmelSoftware/Generic-Data-Repository-With-Caching | Controllers/BlogsController.cs | Controllers/BlogsController.cs | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using GenericRepositoryWithCatching.Models;
namespace GenericRepositoryWithCatching.Controllers
{
public class BlogsController : Controller
{
private ... | mit | C# | |
91e890e06a1f49a9b6ce2889b1bea3d1dcfda8b3 | Introduce GridContainerContent | EVAST9919/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework | osu.Framework/Graphics/Containers/GridContainerContent.cs | osu.Framework/Graphics/Containers/GridContainerContent.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.
namespace osu.Framework.Graphics.Containers
{
public class GridContainerContent
{
public GridContainerContent(Drawable[][] drawables)
{
... | mit | C# | |
35c9335d20cb9c41ea282870408ce3f5bf484804 | add oculus hand script | tatmos/ADX2Cursor | ADX2ColliderPlayStop_Hand.cs | ADX2ColliderPlayStop_Hand.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ADX2ColliderPlayStop_Hand : MonoBehaviour
{
public int handId = 0; // Left = 0,Right = 1
private Color m_color = Color.black;
private MeshRenderer[] m_meshRenderers = null;
void Start()
{
m_col... | mit | C# | |
200c9d0ddc4f30f09012cb96685c4e2613ef5c43 | Create unit_test.cs | Juchnowski/testrep | unit_test.cs | unit_test.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestkosztPrzejazduSamochod()
{
var kontekst = new RozliczeniePracownikow.Rozliczenia();
var aktualne ... | mit | C# | |
0a90a8ffebebd2152ed33e8bfff30ccd6de8acdd | Add test for temporary directory | meziantou/Meziantou.Framework,meziantou/Meziantou.Framework,meziantou/Meziantou.Framework,meziantou/Meziantou.Framework | tests/Meziantou.Framework.Tests/TemporaryDirectoryTests.cs | tests/Meziantou.Framework.Tests/TemporaryDirectoryTests.cs | using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace Meziantou.Framework.Tests
{
public class TemporaryDirectoryTests
{
[Fact]
public void CreateInParallel()
{
const int Iterations = 100;
var dirs = new TemporaryDirectory[Iter... | mit | C# | |
a30d06a244aedab82ea7906d0ecf89272009d002 | add an IExcelExporter interface to abstract exporting data from List services to Excel | volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity | src/Serenity.Net.Services/Reporting/IExcelExporter.cs | src/Serenity.Net.Services/Reporting/IExcelExporter.cs | using System;
using System.Collections;
using System.Collections.Generic;
namespace Serenity.Reporting
{
public interface IExcelExporter
{
/// <summary>
/// Exports the specified data to Excel format
/// </summary>
/// <param name="data">The data.</param>
//... | mit | C# | |
3b0226adf15c4a4fdfe4c549f9660a192766b725 | Add NoteOfTheDay.cs | tomboy-notes/tomboy,MatteoNardi/Tomboy,tomboy-notes/tomboy,oluc/tomboy,oluc/tomboy,MatteoNardi/Tomboy,oluc/tomboy,rotty3000/tomboy,tomboy-notes/tomboy,grepory/tomboy,MatteoNardi/Tomboy,tomboy-notes/tomboy,rmayr/privatenotes-tomboyaddin,rmayr/privatenotes-tomboyaddin,rotty3000/tomboy,rmayr/privatenotes-tomboyaddin,grepo... | Tomboy/Plugins/NoteOfTheDay.cs | Tomboy/Plugins/NoteOfTheDay.cs |
using System;
using System.Collections;
using System.Runtime.InteropServices;
using Mono.Posix;
using Gtk;
using Tomboy;
class NoteOfTheDay {
static string title_prefix = Catalog.GetString ("NotD: ");
public static string GetTitle (DateTime day)
{
// Format: "NotD: Friday, July 01 2005"
return title_prefix ... | lgpl-2.1 | C# | |
a294971bd367a71df764834d4df36648d1403a63 | Add dummy DoctTest. | Xeeynamo/KingdomHearts | OpenKh.Tests/kh2/DoctTest.cs | OpenKh.Tests/kh2/DoctTest.cs | using NSubstitute.Extensions;
using OpenKh.Kh2;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Xunit;
namespace OpenKh.Tests.kh2
{
public class DoctTest : Common
{
[Fact]
public void CreateDummyDoctAndReadIt()
{
usin... | mit | C# | |
6dd5c7e5ab46b6fe548eff85ffc6871c232b71d9 | Add test case | ZLima12/osu,smoogipoo/osu,ppy/osu,peppy/osu-new,UselessToucan/osu,johnneijzen/osu,peppy/osu,NeoAdonis/osu,ppy/osu,naoey/osu,naoey/osu,UselessToucan/osu,NeoAdonis/osu,EVAST9919/osu,naoey/osu,smoogipoo/osu,DrabWeb/osu,ppy/osu,EVAST9919/osu,DrabWeb/osu,UselessToucan/osu,peppy/osu,smoogipooo/osu,2yangk23/osu,johnneijzen/os... | osu.Game.Tests/Visual/TestCaseLabelledTextBox.cs | osu.Game.Tests/Visual/TestCaseLabelledTextBox.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Screens.Edit.Screens.Setup.Components.LabelledComponents;
using Syst... | mit | C# | |
c08d389efd5b368e6926edfc38e610c371485f86 | Add Label | praeclarum/Ooui,praeclarum/Ooui,praeclarum/Ooui | Ooui/Label.cs | Ooui/Label.cs | using System;
namespace Ooui
{
public class Label : Element
{
Element htmlFor = null;
public Element For {
get => htmlFor;
set => SetProperty (ref htmlFor, value, "htmlFor");
}
public Label ()
: base ("label")
{
}
}
}
| mit | C# | |
2bb50f0d117a80f1649d8f477a7f7c3d1b383208 | Create HTTPProtocolResponse.cs | poostwoud/discovery | src/Library/Protocol/HTTPProtocolResponse.cs | src/Library/Protocol/HTTPProtocolResponse.cs | using System.Xml;
namespace Discovery.Library.Protocol
{
public sealed class HTTPProtocolResponse : XmlDocument, IProtocolResponse
{
#region IProtocolResponse Members
public string Result
{
get
{
return this.OuterXml;
}
}
#endregion
}
}
| mit | C# | |
1721b8e47aad4959d3b20f7516cb151e44938b92 | Add request class | ppy/osu,ppy/osu,peppy/osu,ppy/osu,peppy/osu,peppy/osu | osu.Game/Online/API/Requests/CommentDeleteRequest.cs | osu.Game/Online/API/Requests/CommentDeleteRequest.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.Net.Http;
using osu.Framework.IO.Network;
using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Online.API.Requests
{
public class CommentDel... | mit | C# | |
d3706106ab17cd33078936f2e29eba3b334e439e | Add Timestamp test coverage | carbon/Amazon | src/Amazon.DynamoDb.Tests/Actions/TimestampTests.cs | src/Amazon.DynamoDb.Tests/Actions/TimestampTests.cs | namespace Amazon.DynamoDb.Models.Tests;
public class TimestampTests
{
[Fact]
public void CanConvertToDateTime()
{
var timestamp = new Timestamp(1658453070);
Assert.Equal(1658453070d, timestamp.Value);
Assert.Equal(new DateTime(2022, 07, 22, 01, 24, 30, DateTimeKind.Utc), timestam... | mit | C# | |
f89094b5491b2a427df6edefe588a1cff8405d38 | Create FindPeriod.cs | burnsba/scratch,burnsba/scratch,burnsba/scratch | FindPeriod.cs | FindPeriod.cs | public void FindPeriod(int digits, int n)
{
int working = n;
int start = -1;
int startPeriod = 0;
int ilimit = 10;
for (int i=0; i<digits; i++)
{
ilimit *= 10;
}
for (int i=1; i<ilimit; i++)
{
if (start == working)
{
string msg = String.Format("R... | apache-2.0 | C# | |
9f0fb6a5d4fa64e15ace810e29ae90b02175db78 | Add helper class used to deserialize JSON. | jcheng31/WundergroundAutocomplete.NET | WundergroundClient/Autocomplete/RawAutocompleteResult.cs | WundergroundClient/Autocomplete/RawAutocompleteResult.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
namespace WundergroundClient.Autocomplete
{
[DataContract]
internal class RawAutocompleteResult
{
[DataMember] internal RawResult[] RESULTS;
}
[DataContract]
inter... | mit | C# | |
cabc304399e5eb4bf46fc882c6475c648bfd11a7 | Add the interface for the map manager | arkeine/Fierce-Galaxy,arkeine/Fierce-Galaxy | fierce-galaxy/FierceGalaxyInterface/MapModule/IMapManager.cs | fierce-galaxy/FierceGalaxyInterface/MapModule/IMapManager.cs | using System;
using System.Collections.Generic;
namespace FierceGalaxyInterface.MapModule
{
/// <summary>
/// The MapManager load/save the map from/to the disk
/// </summary>
public interface IMapManager
{
IList<String> MapsName { get; }
IReadOnlyMap LoadMap(String mapName... | apache-2.0 | C# | |
dfa48008331db7244aecc5588f04f8005df5cfb4 | add Moderate view | KristianMariyanov/VotingSystem,KristianMariyanov/VotingSystem,KristianMariyanov/VotingSystem | VotingSystem.Web/Areas/User/Views/Candidates/Moderate.cshtml | VotingSystem.Web/Areas/User/Views/Candidates/Moderate.cshtml | @model VotingSystem.Web.ViewModels.Votes.VoteWithCandidatesInputModel
@{
ViewBag.Title = "Moderate";
}
<div class="container">
<div class="row">
@Html.ActionLink("Add New Candidate", "Add", new { id = Model.Id}, new { @class = "btn btn-primary btn-lg btn-block" })
</div>
</div>
@foreac... | mit | C# | |
04f3a6948d6ab658ba533b29cc2e0718405986e3 | Enable command factory test | karthiknadig/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhip... | src/Package/Test/Commands/CommandFactoryTest.cs | src/Package/Test/Commands/CommandFactoryTest.cs | using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using FluentAssertions;
using Microsoft.Languages.Editor.Composition;
using Microsoft.Languages.Editor.Controller;
using Microsoft.Languages.Editor.Shell;
using Microsoft.R.Editor.ContentType;
using Microsoft.UnitTests.Core.XUnit;
using Microsoft... | using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using FluentAssertions;
using Microsoft.Languages.Editor.Composition;
using Microsoft.Languages.Editor.Controller;
using Microsoft.Languages.Editor.Shell;
using Microsoft.R.Editor.ContentType;
namespace Microsoft.VisualStudio.R.Package.Test.Comm... | mit | C# |
6704fd45861b9104543052780c07d51c64d11acc | Define ignore attribute | SceneGate/Yarhl | src/Yarhl/IO/Serialization/YarhlIgnoreAttribute.cs | src/Yarhl/IO/Serialization/YarhlIgnoreAttribute.cs | // Copyright (c) 2020 SceneGate
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distr... | mit | C# | |
5d0734ef6c4e7e8537e460648b88c59c5a08e295 | Add note around MouseEventArgs | mengruxing/audio-switcher,davkean/audio-switcher,paulcbetts/audio-switcher | src/AudioSwitcher/UI/Presenters/NotificationAreaPresenter.cs | src/AudioSwitcher/UI/Presenters/NotificationAreaPresenter.cs | // -----------------------------------------------------------------------
// Copyright (c) David Kean. All rights reserved.
// -----------------------------------------------------------------------
using System;
using System.ComponentModel.Composition;
using System.Windows.Forms;
using AudioSwitcher.ApplicationModel... | // -----------------------------------------------------------------------
// Copyright (c) David Kean. All rights reserved.
// -----------------------------------------------------------------------
using System;
using System.ComponentModel.Composition;
using System.Windows.Forms;
using AudioSwitcher.ApplicationModel... | mit | C# |
8190f9103c03afc41e7cc08bc887e1c2383026c2 | Add stress test of EventHandler | praeclarum/Ooui,praeclarum/Ooui,praeclarum/Ooui | Tests/EventTargetStressTests.cs | Tests/EventTargetStressTests.cs | using System;
#if NUNIT
using NUnit.Framework;
using TestClassAttribute = NUnit.Framework.TestFixtureAttribute;
using TestMethodAttribute = NUnit.Framework.TestCaseAttribute;
#else
using Microsoft.VisualStudio.TestTools.UnitTesting;
#endif
using Ooui;
using System.Linq;
using System.Threading.Tasks;
using System.Dia... | mit | C# | |
f924f3f6256bcafc4b16730e2057e67b1e95ecf2 | Add file missing in build | nunit/nunit3-vs-adapter,nunit/nunit-vs-adapter | src/NUnitTestAdapterTests/FakeTestExecutionRecorder.cs | src/NUnitTestAdapterTests/FakeTestExecutionRecorder.cs | using Microsoft.VisualStudio.TestPlatform.ObjectModel;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging;
using System;
using System.Collections.Generic;
namespace NUnit.VisualStudio.TestAdapter.Tests
{
class FakeTestExecutionRecorder : IT... | mit | C# | |
e1a04a5d98e8af0172a699dcfcd4b25e6804c1ec | add Toolbar Menu Item | CloudBreadProject/CloudBread-Unity-SDK | Assets/CloudBread/Editor/CBMenu.cs | Assets/CloudBread/Editor/CBMenu.cs | using UnityEngine;
using UnityEditor;
namespace CloudBread
{
public class CBMenu {
#if UNITY_EDITOR
[MenuItem("CloudBread/Setting", false, 0)]
public static void Settings()
{
Selection.activeObject = CBSetting.instance;
}
[MenuItem("CloudBread/Developers Page", false, 1)]
public static void Open... | mit | C# | |
e304de5707a933442902212bb375270e7f71dd27 | Add Tests for RDN Class | dsbenghe/Novell.Directory.Ldap.NETStandard,dsbenghe/Novell.Directory.Ldap.NETStandard | Novell.Directory.Ldap.NETStandard.UnitTests/RDNTests.cs | Novell.Directory.Ldap.NETStandard.UnitTests/RDNTests.cs | using Novell.Directory.Ldap.Utilclass;
using System;
using System.Reflection;
using Xunit;
namespace Novell.Directory.Ldap.NETStandard.UnitTests
{
public class RDNTests
{
private MethodInfo EqualAttrTypeMethod = typeof(Rdn).GetMethod("EqualAttrType", BindingFlags.Instance | BindingFlags.NonPublic);
... | mit | C# | |
6a692430b64c994d07feb3893973b0f588506969 | Create Strings | neyogiry/Examples_Csharp | Strings.cs | Strings.cs | using System;
public class Strings {
static void Main(string[] args){
string myString = "Go to your C:\\drive";
string myString = "My \"so called\" life";
string myString = "What if I need \n a new line?";
string myString = string.Format("{0}!", "Neyo");
string myString = string.Format("Make: {0} (Model: {... | mpl-2.0 | C# | |
4c5b23fc5d5dadb29d37d0cdae97c65ade413f10 | Create MongoClientSessionContext.cs | tiksn/TIKSN-Framework | TIKSN.Core/Data/Mongo/MongoClientSessionContext.cs | TIKSN.Core/Data/Mongo/MongoClientSessionContext.cs | using System;
using LanguageExt;
using MongoDB.Driver;
namespace TIKSN.Data.Mongo
{
public class MongoClientSessionContext : IMongoClientSessionStore, IMongoClientSessionProvider
{
private Option<IClientSessionHandle> _clientSessionHandle = Option<IClientSessionHandle>.None;
public Option<ICl... | mit | C# | |
14539f76d970a08530699eccafdba803ca976e96 | Create ExtendedSpriteBatch.cs | Moci1/ColorBox | ExtendedSpriteBatch.cs | ExtendedSpriteBatch.cs | using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace ColorBox
{
/// <summary>
/// An extended version of the SpriteBatch class that supports line and
/// rectangle drawing.
/// </summary>
public class ExtendedSpriteBatch : SpriteBatch
{
/// <summary>
/// The texture ... | mit | C# | |
fe60478beb7b3cf8442b135fe43cf8234ab89ea3 | Create test.cs | Jibran-Geo/MSE_XMLParser | test.cs | test.cs | This is test content for testing.
| mit | C# | |
8d80ccbbc284b96345c9e4d70456c8f601756cbe | add ModuleGenerator | AspectCore/AspectCore-Framework,AspectCore/Abstractions,AspectCore/AspectCore-Framework,AspectCore/Lite | src/AspectCore.Core/Internal/Generator/ModuleGenerator.cs | src/AspectCore.Core/Internal/Generator/ModuleGenerator.cs | using System;
using System.Collections.Generic;
using System.Reflection;
using System.Reflection.Emit;
using AspectCore.Abstractions.Internal;
namespace AspectCore.Core.Internal.Generator
{
internal sealed class ModuleGenerator
{
internal const string ProxyNameSpace = "AspectCore.Proxies";
pr... | mit | C# | |
8a3ecb512fa4d40a930655d9566bfd33ead3da36 | Add DataBinderDial non-generic definition. | ryanwang/LeapMotionCoreAssets,Amarcolina/LeapMotionCoreAssets | Assets/LeapMotion/Widgets/Scripts/Interfaces/DataBinder.cs | Assets/LeapMotion/Widgets/Scripts/Interfaces/DataBinder.cs | using UnityEngine;
using System;
using System.Collections.Generic;
namespace LMWidgets {
// Interface to define an object that can be a data provider to a widget.
public abstract class DataBinder<WidgetType, PayloadType> : MonoBehaviour where WidgetType : IDataBoundWidget<WidgetType, PayloadType> {
[Serializ... | using UnityEngine;
using System;
using System.Collections.Generic;
namespace LMWidgets {
// Interface to define an object that can be a data provider to a widget.
public abstract class DataBinder<WidgetType, PayloadType> : MonoBehaviour where WidgetType : IDataBoundWidget<WidgetType, PayloadType> {
[Serializ... | apache-2.0 | C# |
7418362cc4d1f4e6731a10de398f8fd676eb4b9d | Create Program_Stack.cs | alchemz/ARL_Training | CSharpDotNet_Programming/Collections/Program_Stack.cs | CSharpDotNet_Programming/Collections/Program_Stack.cs | //can only add element of the top of stack
//first in and first out
//example a pile of book
class Program_Stack
{
static void Main()
{
Stack<string> books= new Stack<string>();
books.Push(“Programming WPF”);
books.Push(“The Philosophy Book”);
books.Push(“Heat and Thermodynamics”);
books.Push(“Harry P... | mit | C# | |
a6a69e1891276b8483c190d37bded05e68283d5f | Add Test to check GaugeLogMetrics log number of Rejections correctly | hudl/Mjolnir | tests/unit/Hudl.Mjolnir.Tests/Events/GaugeLogMetricsTests.cs | tests/unit/Hudl.Mjolnir.Tests/Events/GaugeLogMetricsTests.cs | using System;
using Hudl.Mjolnir.Events;
using Hudl.Mjolnir.External;
using Moq;
using Xunit;
namespace Hudl.Mjolnir.Tests.Events
{
public class GaugeLogMetricsTests
{
[Fact]
public void RejectionsLoggedInGaugeCorrectly()
{
var mockLogFactory = new Mock<IMjolnirLogFactory>()... | apache-2.0 | C# | |
faa4fbbbade33b0b5342859bd3cd2550a60f7683 | Define contextual as coordinate subclass | perspicapps/toolbox,tomgrv/pa.toolbox,perspicapps/toolbox | PA.TileList.Extensions/Extensions/Contextual/Contextual.cs | PA.TileList.Extensions/Extensions/Contextual/Contextual.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PA.TileList.Contextual
{
public class Contextual<T> : Coordinate, IContextual<T>
where T : ICoordinate
{
public T Context { get; private set; }
public Contextual(int x, int y, T context)
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PA.TileList.Contextual
{
public class Contextual<T> : IContextual<T>
where T : ICoordinate
{
public int X { get; set; }
public int Y { get; set; }
public T Context { get; private ... | mit | C# |
34bf4221a124188e8e8ce8a32afdfcb5ca1ac33b | Add expression helper functions | xin9le/DeclarativeSql | src/DeclarativeSql/Internals/ExpressionHelper.cs | src/DeclarativeSql/Internals/ExpressionHelper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace DeclarativeSql.Internals
{
/// <summary>
/// Provides helper functions for the expression.
/// </summary>
internal static class ExpressionHelper
{
/// <summary>
/// Gets th... | mit | C# | |
934a3278fc640e421c607d1e3f057f877d069e66 | Fix typo in the documentation | rrev/SampSharp,rrev/SampSharp,rrev/SampSharp,Seprum/SampSharp,Seprum/SampSharp,ikkentim/SampSharp,ikkentim/SampSharp,Seprum/SampSharp,Seprum/SampSharp,ikkentim/SampSharp | src/SampSharp.GameMode/SAMP/Commands/IPermissionChecker.cs | src/SampSharp.GameMode/SAMP/Commands/IPermissionChecker.cs | using System;
using SampSharp.GameMode.World;
namespace SampSharp.GameMode.SAMP.Commands
{
/// <summary>
/// A Permission checker is used to check if a player
/// is allowed to use a specific command.
///
/// Every class that implement this interface
/// should have a paramete... | using System;
using SampSharp.GameMode.World;
namespace SampSharp.GameMode.SAMP.Commands
{
/// <summary>
/// A Permission checker is used to check if a player
/// is allowed to use a specific command.
///
/// Every class that implement this interface
/// should create paramete... | apache-2.0 | C# |
d1f8a0b0c978380d7a39b6354ede761574f5fd56 | Create OpeningSpreadsheetMLFiles.cs | maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_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,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,as... | Examples/CSharp/Files/Handling/OpeningSpreadsheetMLFiles.cs | Examples/CSharp/Files/Handling/OpeningSpreadsheetMLFiles.cs | using System.IO;
using Aspose.Cells;
using System;
namespace Aspose.Cells.Examples.Files.Handling
{
public class OpeningSpreadsheetMLFiles
{
public static void Main(string[] args)
{
//Exstart:1
// The path to the documents directory.
string dataDir = Aspose.... | mit | C# | |
91c806823321fefec4af847cbe02709db0c2122b | Create UnicodeUtilityTests.cs | SixLabors/Fonts | tests/SixLabors.Fonts.Tests/Unicode/UnicodeUtilityTests.cs | tests/SixLabors.Fonts.Tests/Unicode/UnicodeUtilityTests.cs | // Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.Fonts.Unicode;
using Xunit;
namespace SixLabors.Fonts.Tests.Unicode
{
public class UnicodeUtilityTests
{
[Theory]
[InlineData(0x3040u, 0x309Fu)] // Hiragana
[InlineData(0x30A0u, 0x30FFu)] //... | apache-2.0 | C# | |
b3d727b6318e2c9cfe13c063ebf7271ee96e14d4 | Enable IntelliSense for new component parameters. | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Razor/Microsoft.CodeAnalysis.Razor/src/FilePathComparison.cs | src/Razor/Microsoft.CodeAnalysis.Razor/src/FilePathComparison.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Runtime.InteropServices;
namespace Microsoft.CodeAnalysis.Razor
{
internal static class FilePathComparison
{
... | apache-2.0 | C# | |
b76cf519a20665a369aaf2b46003ba601138eec9 | Make CPSProject.Disconnect() synchronous if on UI thread | mgoertz-msft/roslyn,vslsnap/roslyn,mavasani/roslyn,OmarTawfik/roslyn,nguerrera/roslyn,brettfo/roslyn,kelltrick/roslyn,dotnet/roslyn,orthoxerox/roslyn,KevinRansom/roslyn,KevinRansom/roslyn,ErikSchierboom/roslyn,jamesqo/roslyn,amcasey/roslyn,jkotas/roslyn,VSadov/roslyn,DustinCampbell/roslyn,abock/roslyn,khyperia/roslyn,b... | src/VisualStudio/Core/Impl/ProjectSystem/CPS/CPSProject.cs | src/VisualStudio/Core/Impl/ProjectSystem/CPS/CPSProject.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Host;
using Microsoft.VisualStudio.LanguageServices.Implementation.TaskList;
using M... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Host;
using Microsoft.VisualStudio.LanguageServices.Implementation.TaskList;
using M... | mit | C# |
32472d5a20b2905f9bdfb3387a43718240d508d5 | Add RazorTemplateCompiler unit tests | toddams/RazorLight,toddams/RazorLight | tests/RazorLight.Tests/Compilation/RazorTemplateCompilerTest.cs | tests/RazorLight.Tests/Compilation/RazorTemplateCompilerTest.cs | using System;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.Extensions.Caching.Memory;
using RazorLight.Compilation;
using RazorLight.Generation;
using RazorLight.Razor;
using Xunit;
namespace RazorLight.Tests.Compilation
{
public class RazorTemplateCompilerTest
{
[Fact]
public void ... | apache-2.0 | C# | |
6bd6085fa0ded719ba32cd3ee62f898f98f8f792 | Create SimpleIpcClient.cs | Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum | src/Nethereum.JsonRpc.IpcClient/SimpleIpcClient.cs | src/Nethereum.JsonRpc.IpcClient/SimpleIpcClient.cs | using System;
using System.IO;
using System.IO.Pipes;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Nethereum.JsonRpc.Client;
using Newtonsoft.Json;
using Common.Logging;
using Nethereum.JsonRpc.Client.RpcMessages;
namespace Nethereum.JsonRpc.IpcClient
{
/// <summary>
/// IpcC... | mit | C# | |
c686c5224bdd8050f45c25fcf511dee0ac06f96a | add OsuMarkdownTextFlowContainer | ppy/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,peppy/osu,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,ppy/osu,peppy/osu,UselessToucan/osu,peppy/osu-new | osu.Game/Graphics/Containers/Markdown/OsuMarkdownTextFlowContainer.cs | osu.Game/Graphics/Containers/Markdown/OsuMarkdownTextFlowContainer.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 Markdig.Syntax.Inlines;
using osu.Framework.Graphics.Containers.Markdown;
namespace osu.Game.Graphics.Containers.Markdown
{
public class OsuMarkdownTextFlowCon... | mit | C# | |
243426b818d1f4949bc0c428d1e6286c25f75348 | Create Exercise_11.cs | jesushilarioh/Questions-and-Exercises-in-C-Sharp | Exercise_11.cs | Exercise_11.cs | using System;
public class Exercise_11
{
public static void Main()
{
/********************************************************************
*
* 11. Write a program that takes an age (for example 20) as input
* and prints something as "You look older that 20".
*
*
* By: Jesus Hilario Her... | mit | C# | |
caa8523b59bdaefa26d51cb7cbbd4f1c3cd4c490 | 添加命名接口的MD5实例 | noear/uwp-imageLoader | ImageLoader.UWP/ImageLoader.UWP/Md5FileNameGenerator.cs | ImageLoader.UWP/ImageLoader.UWP/Md5FileNameGenerator.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Noear.UWP.Loader {
public class Md5FileNameGenerator : IFileNameGenerator {
public string Generate(string url) {
return Util.md5(url);
}
}
}
| apache-2.0 | C# | |
5043b930c42b938c61b4d06a5dd037bd9f02ec13 | Check in simple end-to-end test for covariant returns. | weltkante/roslyn,gafter/roslyn,jmarolf/roslyn,CyrusNajmabadi/roslyn,bartdesmet/roslyn,mgoertz-msft/roslyn,tannergooding/roslyn,aelij/roslyn,stephentoub/roslyn,KirillOsenkov/roslyn,shyamnamboodiripad/roslyn,ErikSchierboom/roslyn,brettfo/roslyn,KevinRansom/roslyn,wvdd007/roslyn,KevinRansom/roslyn,dotnet/roslyn,panopticon... | src/Compilers/CSharp/Test/Emit/Emit/CovariantReturnTests.cs | src/Compilers/CSharp/Test/Emit/Emit/CovariantReturnTests.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 Roslyn.Test.Utilities;
using System;
using System.Text;
using Xunit;
using Microsoft.CodeAnalysis.Test.Utilit... | mit | C# | |
885974cf009b578c504ad37ef0b077962c7c65cf | Create InstagramObject.cs | mexxanit/instagram.net,dego89/instagram.net | InstagramObject.cs | InstagramObject.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
/// <summary>
/// Summary description for Instagram
/// </summary>
public class InstagramObject
{
public Pagination pagination { get; set; }
public Meta meta { get; set; }
public List<Datum> data { get;... | mit | C# | |
03981c5efeb6199be2fb09eec329ae980002051a | fix the unit test that I broke when I was fixing #1071 | ig-sinicyn/BenchmarkDotNet,PerfDotNet/BenchmarkDotNet,adamsitnik/BenchmarkDotNet,Ky7m/BenchmarkDotNet,Ky7m/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,adamsitnik/BenchmarkDotNet,alinasmirnova/BenchmarkDotNet,PerfDotNet/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,Ky7m/BenchmarkDotNet,adamsitnik/BenchmarkDotNet,PerfDotNet/... | tests/BenchmarkDotNet.Tests/SourceCodeHelperTests.cs | tests/BenchmarkDotNet.Tests/SourceCodeHelperTests.cs | using System.Reflection;
using BenchmarkDotNet.Helpers;
using Xunit;
using Xunit.Abstractions;
namespace BenchmarkDotNet.Tests
{
// TODO: add decimal, typeof, CreateInstance, TimeInterval, IntPtr, IFormattable
public class SourceCodeHelperTests
{
private ITestOutputHelper output;
public S... | using System.Reflection;
using BenchmarkDotNet.Helpers;
using Xunit;
using Xunit.Abstractions;
namespace BenchmarkDotNet.Tests
{
// TODO: add decimal, typeof, CreateInstance, TimeInterval, IntPtr, IFormattable
public class SourceCodeHelperTests
{
private ITestOutputHelper output;
public S... | mit | C# |
1b42af75647f75fc908210bf51c7ebf1dad7fe71 | Add extension method AddWithNullableValue. | PhilipDaniels/BassUtils | BassUtils/MsSql/SqlParameterCollectionExtensions.cs | BassUtils/MsSql/SqlParameterCollectionExtensions.cs | using System;
using Microsoft.Data.SqlClient;
namespace BassUtils.MsSql
{
/// <summary>
/// Extensions for the SqlParameterCollection class.
/// </summary>
public static class SqlParameterCollectionExtensions
{
/// <summary>
/// Adds a value to the end of the <c>SqlParam... | mit | C# | |
2b7c107fc3ab6ac6f22542f76931b5c2ad9bad11 | add npm connector tests | lvermeulen/ProGet.Net | test/ProGet.Net.Tests/Native/NpmConnectors/ProGetClientShould.cs | test/ProGet.Net.Tests/Native/NpmConnectors/ProGetClientShould.cs | using System;
using System.Threading.Tasks;
using Xunit;
// ReSharper disable CheckNamespace
namespace ProGet.Net.Tests
{
public partial class ProGetClientShould
{
[Fact]
public async Task NpmConnectors_GetPackagesAsync()
{
var results = await _client.NpmConnectors_GetPack... | mit | C# | |
1e7c2d3c84b7ab1bf900867475128de4bdab406b | Add logout support | MihaMarkic/Cake.Docker | src/Cake.Docker/Registry/Logout/Docker.Aliases.Logout.cs | src/Cake.Docker/Registry/Logout/Docker.Aliases.Logout.cs | using Cake.Core;
using Cake.Core.Annotations;
using System;
namespace Cake.Docker
{
// Contains functionality for working with logout command.
partial class DockerAliases
{
/// <summary>
/// Register or log in to a Docker registry.
/// If no server is specified, the docker engine d... | mit | C# | |
2083da3a0ae6a182cc2bf045203e8e60ccb8e51b | add BaseEntity | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | src/WeihanLi.Common/Models/BaseEntity.cs | src/WeihanLi.Common/Models/BaseEntity.cs | namespace WeihanLi.Common.Models
{
public class BaseEntity<TKey>
{
public TKey Id { get; set; }
}
public class BaseEntity : BaseEntity<int>
{
}
}
| mit | C# | |
1d0c1bacd6d2a6fc847ef664bafcada25a95bfa4 | Add gestione eccezioni servizi esterni | vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf | src/backend/SO115App.Models/Classi/Condivise/LogException.cs | src/backend/SO115App.Models/Classi/Condivise/LogException.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace SO115App.Models.Classi.Condivise
{
public class LogException
{
public DateTime DataOraEsecuzione { get; set; }
public string Servizio { get; set; }
public string Content { get; set; }
public string Res... | agpl-3.0 | C# | |
f4b48e1f5cc440e9b33ff23ccc9f554f459ae5c7 | Add missing test coverage over UnableToGenerateValueException | invio/Peddler,invio/Peddler | test/Peddler.Tests/UnableToGenerateValueExceptionTests.cs | test/Peddler.Tests/UnableToGenerateValueExceptionTests.cs | using System;
using Xunit;
namespace Peddler {
public class UnableToGenerateValueExceptionTests {
[Fact]
public void WithDefaults() {
// Act
var exception = Throw<UnableToGenerateValueException>(
() => { throw new UnableToGenerateValueException(); }
... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.