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 |
|---|---|---|---|---|---|---|---|---|
805bfbca21e0a377324b0300051d9fae8884c541 | Add interpolation hint tester. | eylvisaker/AgateLib | Tests/DisplayTests/Interpolation.cs | Tests/DisplayTests/Interpolation.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AgateLib;
using AgateLib.DisplayLib;
using AgateLib.Geometry;
namespace Tests.DisplayTests
{
class Interpolation : AgateLib.AgateApplication, IAgateTest
{
#region IAgateTest Members
public string Name
... | mit | C# | |
2100d9228180a61c49031f218c725dcaf37b184d | fix merge issue | Fody/Fody,GeertvanHorrik/Fody | FodyHelpers/Testing/Class1.cs | FodyHelpers/Testing/Class1.cs | using System;
using System.IO;
using Mono.Cecil;
using Mono.Cecil.Cil;
namespace Fody
{
[Obsolete(OnlyForTesting.Message)]
public class SymbolReaderProvider : ISymbolReaderProvider
{
DefaultSymbolReaderProvider inner;
public SymbolReaderProvider()
{
inner = new Default... | mit | C# | |
8d25d2716ca9f828a0247c74553be54402734623 | Create UriExtensions.cs | SirCmpwn/RedditSharp,theonlylawislove/RedditSharp,RobThree/RedditSharp,nyanpasudo/RedditSharp,justcool393/RedditSharp-1,pimanac/RedditSharp,epvanhouten/RedditSharp,CrustyJew/RedditSharp,chuggafan/RedditSharp-1,IAmAnubhavSaini/RedditSharp,Jinivus/RedditSharp,ekaralar/RedditSharpWindowsStore,angelotodaro/RedditSharp,tomn... | RedditSharp/UriExtensions.cs | RedditSharp/UriExtensions.cs | using System;
using System.Web;
namespace RedditSharp
{
public static class UriExtensions
{
/// <summary>
/// Adds the specified parameter to the Query String.
/// </summary>
/// <param name="url"></param>
/// <param name="paramName">Name of the parameter to add.</param>... | mit | C# | |
b51f147cd8f5153131a4efd7f989127be445632d | Add IPlatformIdentifier | tgstation/tgstation-server-tools,tgstation/tgstation-server,Cyberboss/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server | src/Tgstation.Server.Host/Core/IPlatformIdentifier.cs | src/Tgstation.Server.Host/Core/IPlatformIdentifier.cs | namespace Tgstation.Server.Host.Core
{
/// <summary>
/// For identifying the current platform
/// </summary>
interface IPlatformIdentifier
{
/// <summary>
/// If the current platform is a Windows platform
/// </summary>
bool IsWindows { get; }
}
}
| agpl-3.0 | C# | |
a9a590ca3a296126f2ce57b334b0729d619be328 | Update ImplicitAnimationScreen.xib.cs according to code guideline | nelzomal/monotouch-samples,haithemaraissia/monotouch-samples,haithemaraissia/monotouch-samples,labdogg1003/monotouch-samples,markradacz/monotouch-samples,davidrynn/monotouch-samples,albertoms/monotouch-samples,nervevau2/monotouch-samples,robinlaide/monotouch-samples,robinlaide/monotouch-samples,kingyond/monotouch-sampl... | CoreAnimation/Screens/iPad/LayerAnimation/ImplicitAnimationScreen.xib.cs | CoreAnimation/Screens/iPad/LayerAnimation/ImplicitAnimationScreen.xib.cs | using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using MonoTouch.CoreAnimation;
using System.Drawing;
namespace Example_CoreAnimation.Screens.iPad.LayerAnimation
{
public partial class ImplicitAnimationScreen : UIViewController, IDetailView
{
pub... |
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using MonoTouch.CoreAnimation;
using System.Drawing;
namespace Example_CoreAnimation.Screens.iPad.LayerAnimation
{
public partial class ImplicitAnimationScreen : UIViewController, IDetailView
{
pu... | mit | C# |
5f1f956d1711fdbf7afe04d589a459329e398bb5 | Fix the omission on the interface declaration | RavenB/opensim,TomDataworks/opensim,RavenB/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,TomDataworks/opensim,RavenB/opensim,RavenB/opensim,RavenB/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,RavenB/opensim,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,RavenB/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,EriH... | OpenSim/Region/Framework/Interfaces/IScriptModuleComms.cs | OpenSim/Region/Framework/Interfaces/IScriptModuleComms.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# |
eeef7cebfba13fb066893b7249b43fe29e0a4f73 | Define acceptable maps statically | will-hart/AnvilEditor,will-hart/AnvilEditor | AnvilEditor/Models/MapDefinitions.cs | AnvilEditor/Models/MapDefinitions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AnvilEditor.Models
{
internal class MapData
{
internal string ImageName;
internal int MapXMin;
internal int MapXMax;
internal int MapYMin;
inter... | mit | C# | |
8f8152f910f726aa5e6964d4001f2142bf750137 | Fix build error | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNetCore.DataProtection.Redis/Properties/AssemblyInfo.cs | src/Microsoft.AspNetCore.DataProtection.Redis/Properties/AssemblyInfo.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.Reflection;
using System.Resources;
[assembly: AssemblyMetadata("Serviceable", "True")]
[assembly: NeutralResourcesLanguage("en-US")]
[ass... | apache-2.0 | C# | |
db519b449ba416b6c8cf2a8db5d0eee9a4615dd1 | Add Debug.cs | 60071jimmy/UartOscilloscope,60071jimmy/UartOscilloscope | QueueDataGraphic/QueueDataGraphic/CSharpFiles/Debug.cs | QueueDataGraphic/QueueDataGraphic/CSharpFiles/Debug.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QueueDataGraphic.CSharpFiles
{
class Debug
{
}
}
| apache-2.0 | C# | |
da3d06262769c18cb34252760430408c9f5017de | Create deleteElements.cs | Gytaco/RevitAPI,Gytaco/RevitAPI | Macros/CS/Elements/deleteElements.cs | Macros/CS/Elements/deleteElements.cs | /*
This code will delete views, filters and view templates from your Project
*/
public void deleteElements()
{
//sets the variable to the current application
Document doc = this.ActiveUIDocument.Document;
//uses linq to select the views and templates to delete
var ViewDelExport = from el... | mit | C# | |
f74cb6395988361006f117cdc22eec67ae1c14fa | 扩展 json.net 库方法 | personball/Moju.WeChatHelper | Moju.WeChatHelper/Menu/JsonExtend.cs | Moju.WeChatHelper/Menu/JsonExtend.cs | using Newtonsoft.Json.Linq;
using System.Collections.Generic;
using System.Linq;
namespace Moju.WeChatHelper
{
public static class JsonExtend
{
public static Button ToWeChatMenuButton(this JObject JObj)
{
if (JObj["type"] == null)
{
return new HasSubButto... | mit | C# | |
0a427ace585fc0cdca09f295cf7d3db0d7d84fe8 | Create ProviderContext.cs | hprose/hprose-dotnet | src/Hprose.RPC/Plugins/Reverse/ProviderContext.cs | src/Hprose.RPC/Plugins/Reverse/ProviderContext.cs | /*--------------------------------------------------------*\
| |
| hprose |
| |
| Official WebSite: https://hprose.com |
| ... | mit | C# | |
92e9075589b2f9ba647d148b2a35c8e468f502cf | Add base class for path elements that has a good default implementation for Apply on Selection | Domysee/Pather.CSharp | src/Pather.CSharp/PathElements/PathElementBase.cs | src/Pather.CSharp/PathElements/PathElementBase.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Pather.CSharp.PathElements
{
public abstract class PathElementBase : IPathElement
{
public Selection Apply(Selection target)
{
var results = new List<object>();
fo... | mit | C# | |
7251d41deba1823276c129cb99e9d35823a1c094 | Add request class | peppy/osu,ppy/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu | osu.Game/Online/API/Requests/CommentReportRequest.cs | osu.Game/Online/API/Requests/CommentReportRequest.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.Overlays.Comments;
namespace osu.Game.Online.API.Requests
{
public class CommentReportRequest :... | mit | C# | |
4e7ff1619ee5cebcca3390392cbc0df6303f72ef | Add AutoQueryable extension on top of Iqueryable<T> | trenoncourt/AutoQueryable | src/AutoQueryable/Extensions/QueryableExtension.cs | src/AutoQueryable/Extensions/QueryableExtension.cs | using System;
using System.Linq;
using AutoQueryable.Helpers;
using AutoQueryable.Models;
namespace AutoQueryable.Extensions
{
public static class QueryableExtension
{
public static dynamic AutoQueryable(this IQueryable<object> query, string queryString, AutoQueryableProfile profile)
{
... | mit | C# | |
d9feefce0a844e6bd8c945d6bd0f53ffff0ffcf1 | Create Form2.cs | rus100/gomoku | Form2.cs | Form2.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace gomoku
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent(... | unlicense | C# | |
14257e138ed277eb6839c2b8700f8cc65670c47d | Add closure | caronyan/CSharpRecipe | CSharpRecipe/Recipe.ClassAndGeneric/Closure.cs | CSharpRecipe/Recipe.ClassAndGeneric/Closure.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Recipe.ClassAndGeneric
{
public class SalesPerson
{
public SalesPerson()
{
}
public SalesPerson(string name, decimal annualQuota, decimal commissionRat... | mit | C# | |
34381e6748f2bf4929970ce1734eb5ad894c1d78 | Add Extensions.Reflection test class | unosquare/swan | test/Unosquare.Swan.Test/ExtensionsReflectionTest.cs | test/Unosquare.Swan.Test/ExtensionsReflectionTest.cs | using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;
using Unosquare.Swan;
using Unosquare.Swan.Test.Mocks;
namespace Unosquare.Swan.Test
{
[TestFixture]
public class ExtensionsReflectionTest
{
[TestCase(null, typeof(... | mit | C# | |
e0e46ab9d2b56db05eb7553fc270389c5f8e8645 | Create Client Message Context Factory | HelloKitty/GladNet2.0,HelloKitty/GladNet2,HelloKitty/GladNet2-Lidgren,HelloKitty/GladNet2-Lidgren,HelloKitty/GladNet2.0,HelloKitty/GladNet2 | src/GladNet.Lidgren.Client/Network/Message/LidgrenClientMessageContextFactory.cs | src/GladNet.Lidgren.Client/Network/Message/LidgrenClientMessageContextFactory.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lidgren.Network;
using GladNet.Lidgren.Engine.Common;
using GladNet.Serializer;
namespace GladNet.Lidgren.Client
{
public class LidgrenClientMessageContextFactory : ILidgrenMessageContextFactory
{
private IDeserializerStra... | bsd-3-clause | C# | |
8be90dff4f375a069d7b72e56e3afb28a1bfe28f | Add test for Guid | generik0/Smooth.IoC.Dapper.Repository.UnitOfWork,generik0/Smooth.IoC.Dapper.Repository.UnitOfWork | src/Smooth.IoC.Dapper.Repository.UnitOfWork.Tests/SpecialTests/MsSqlGuidTests.cs | src/Smooth.IoC.Dapper.Repository.UnitOfWork.Tests/SpecialTests/MsSqlGuidTests.cs | using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.SqlClient;
using System.Reflection;
using FakeItEasy;
using NUnit.Framework;
using SimpleMigrations;
using Smooth.IoC.Dapper.Repository.UnitOfWork.Data;
using System.IO;
using System.Linq;
u... | mit | C# | |
5942385d0e95697dda1aac99e40d998b9bf8a2f4 | Add the prim count interfaces | ft-/opensim-optimizations-wip-tests,RavenB/opensim,ft-/arribasim-dev-extras,ft-/arribasim-dev-extras,OpenSimian/opensimulator,RavenB/opensim,bravelittlescientist/opensim-performance,QuillLittlefeather/opensim-1,QuillLittlefeather/opensim-1,allquixotic/opensim-autobackup,OpenSimian/opensimulator,Michelle-Argus/Arribasim... | OpenSim/Region/Framework/Interfaces/IPrimCountModule.cs | OpenSim/Region/Framework/Interfaces/IPrimCountModule.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# | |
a2121d8571991b7f39e2f3ecb53fe4c241ec13b6 | Add UnitClassTests_Force | BrandonLWhite/UnitsNet,neutmute/UnitsNet,maherkassim/UnitsNet,BrandonLWhite/UnitsNet,Tirael/UnitsNet,maherkassim/UnitsNet,anjdreas/UnitsNet,anjdreas/UnitsNet,BoGrevyDynatest/UnitsNet | Tests/UnitsNet.ThirdParty.Tests/UnitClassTests_Force.cs | Tests/UnitsNet.ThirdParty.Tests/UnitClassTests_Force.cs | using System.Globalization;
using System.Threading;
using NUnit.Framework;
using UnitsNet.Units;
namespace UnitsNet.ThirdParty.Tests
{
// I don't know where to put these tests. They were intended to test UnitSystem via unit classes,
// but I won't bother testing all the unit classes since they are generated ... | mit | C# | |
ad0ce54f9eeb4fb999b65dbab73820c4445967d9 | Revert "no message" | Darylcxz/ANIMA-SPIRIT | Assets/FireGate.cs | Assets/FireGate.cs | using UnityEngine;
using System.Collections;
public class FireGate : MonoBehaviour {
bool fireTrigger;
public GameObject LeftFire;
public GameObject RightFire;
public GameObject GateFire;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (LeftFir... | mit | C# | |
1e49078c526f2050a137f087cf0000f678f3484e | Add OsuCursorSprite | peppy/osu-new,peppy/osu,EVAST9919/osu,NeoAdonis/osu,2yangk23/osu,johnneijzen/osu,ppy/osu,EVAST9919/osu,2yangk23/osu,johnneijzen/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu,peppy/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,smoogipooo/osu,UselessToucan/osu,UselessToucan/osu | osu.Game.Rulesets.Osu/UI/Cursor/OsuCursorSprite.cs | osu.Game.Rulesets.Osu/UI/Cursor/OsuCursorSprite.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Rulesets.Osu.UI.Cursor
{
public class OsuCursorSprite : CompositeDrawable
... | mit | C# | |
248f7d79569847952abb75ad967c54365e887a4e | Add tests directory for Mango.Server | jacksonh/manos,mdavid/manos-spdy,mdavid/manos-spdy,jacksonh/manos,jmptrader/manos,jacksonh/manos,jacksonh/manos,jmptrader/manos,jacksonh/manos,mdavid/manos-spdy,mdavid/manos-spdy,jacksonh/manos,jmptrader/manos,jmptrader/manos,mdavid/manos-spdy,jmptrader/manos,mdavid/manos-spdy,jacksonh/manos,jacksonh/manos,jmptrader/ma... | src/Mango/Mango.Tests/Mango.Server/HttpRequestTest.cs | src/Mango/Mango.Tests/Mango.Server/HttpRequestTest.cs |
using System;
using NUnit.Framework;
using Mango;
using Mango.Server;
namespace Mango.Tests
{
[TestFixture()]
public class HttpRequestTest
{
[Test()]
public void TestNoNullQueryData ()
{
// var r = new HttpRequest (new MockHttpTransaction (), .... );
// Assert.NotNull (r.QueryData);
}
}
}
| mit | C# | |
81ead33b70f8aa161b4c1820e65748e58d45bc08 | Create NickRichardson.cs | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/NickRichardson.cs | src/Firehose.Web/Authors/NickRichardson.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 NickRichardson : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Nick";
... | mit | C# | |
95972dad0434802eed684574b7347f717885eb5d | Update Command_10_01. | CountrySideEngineer/Ev3Controller | dev/src/Ev3Controller/Ev3Command/Command_10_01.cs | dev/src/Ev3Controller/Ev3Command/Command_10_01.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ev3Controller.Ev3Command
{
public class Command_10_01 : ACommand_ResLenFix
{
#region Other methods and private properties in calling order
/// <summary>
... | mit | C# | |
6545b3e7039ada6058aaf99543441376e1a10541 | Add comment to interop BOOL type | weltkante/corefx,lggomez/corefx,manu-silicon/corefx,benpye/corefx,cydhaselton/corefx,rjxby/corefx,ViktorHofer/corefx,ravimeda/corefx,tstringer/corefx,shimingsg/corefx,ptoonen/corefx,shmao/corefx,YoupHulsebos/corefx,alexperovich/corefx,gkhanna79/corefx,dhoehna/corefx,stone-li/corefx,lggomez/corefx,Chrisboh/corefx,shahid... | src/Common/src/Interop/Windows/Interop.BOOL.cs | src/Common/src/Interop/Windows/Interop.BOOL.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.
internal partial class Interop
{
/// <summary>
/// Blittable version of Windows BOOL type. It is convenient ... | // 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.
internal partial class Interop
{
internal enum BOOL : int
{
FALSE = 0,
TRUE = 1,
}
}
| mit | C# |
63aa1397d52744e69782132075f4a8991e8362c4 | Add a passive check server with a store | RFQ-hub/ZabbixAgentLib | src/ZabbixAgent/PassiveCheckServerWithStore.cs | src/ZabbixAgent/PassiveCheckServerWithStore.cs | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Globalization;
using System.Net;
namespace Itg.ZabbixAgent
{
public class PassiveCheckServerWithStore : PassiveCheckServerBase
{
private struct CounterId
{
public string Key { get; }
... | mit | C# | |
6742f62cb51b73fff7bc90b31f22907380921592 | Add AccessorPropertyGenerator | AspectCore/AspectCore-Framework,AspectCore/AspectCore-Framework,AspectCore/Abstractions,AspectCore/Lite | src/AspectCore.Abstractions.Resolution/Generators/AccessorPropertyGenerator.cs | src/AspectCore.Abstractions.Resolution/Generators/AccessorPropertyGenerator.cs | using AspectCore.Abstractions.Generator;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Reflection.Emit;
using System.Reflection;
namespace AspectCore.Abstractions.Resolution.Generators
{
internal class AccessorPropertyGenerator : PropertyGenerator
... | mit | C# | |
506feff58342f33b89af55e2d5e04e1136feeae2 | add Upgrade_20211216_UpdateNugets | signumsoftware/framework,signumsoftware/framework | Signum.Upgrade/Upgrades/Upgrade_20211216_UpdateNugets.cs | Signum.Upgrade/Upgrades/Upgrade_20211216_UpdateNugets.cs | namespace Signum.Upgrade.Upgrades;
class Upgrade_20211216_UpdateNugets : CodeUpgradeBase
{
public override string Description => "Update nugets";
public override void Execute(UpgradeContext uctx)
{
uctx.ForeachCodeFile(@"*.csproj", file =>
{
file.UpdateNugetReference("Microsoft... | mit | C# | |
a522ef442f511f82a376a315938bd14a16c5e821 | Add VirtualPropertyExperiments | riganti/dotvvm-samples-academy,riganti/dotvvm-samples-academy,riganti/dotvvm-samples-academy | test/DotvvmAcademy.Validation.CSharp.Experiments/VirtualPropertyExperiments.cs | test/DotvvmAcademy.Validation.CSharp.Experiments/VirtualPropertyExperiments.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace DotvvmAcademy.Validation.CSharp.Experiments
{
public class VirtualPropertyExperiments
{
public class X1
{
public string Property1 { get; set; }... | apache-2.0 | C# | |
48ff8fe0d29503140006e8d8f2771983a0ecbb60 | Add Broadcast Router tests. | SaxxonPike/NextLevelSeven | NextLevelSeven.Test/Routing/BroadcastRouterTests.cs | NextLevelSeven.Test/Routing/BroadcastRouterTests.cs | using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NextLevelSeven.Routing;
namespace NextLevelSeven.Test.Routing
{
[TestClass]
public class BroadcastRouterTests
{
[TestMethod]
public void BroadcastRouter_CanBeInitializedWithoutRoutes()
{
... | isc | C# | |
610bea79191ffb213a771aa3a68339608fef49f6 | Add Selection class | Domysee/Pather.CSharp | src/Pather.CSharp/Selection.cs | src/Pather.CSharp/Selection.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Pather.CSharp
{
public class Selection
{
public IReadOnlyCollection<object> Entries { get; }
public Selection(IEnumerable entries)
{
var lis... | mit | C# | |
1d7bb64b069e181071767c34ecd78a2ec665cd8b | Add legacy getfees | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Backend/Controllers/LegacyController.cs | WalletWasabi.Backend/Controllers/LegacyController.cs | using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace WalletWasabi.Backend.Controllers
{
[Produces("application/json")]
public class LegacyController : ControllerBase
{
public LegacyCo... | mit | C# | |
fba49ae71d74e219e3c7d7fecfb6a0caa5d42a4f | Fix XML description for HDI Pig "defines" prop | pomortaz/azure-sdk-for-net,naveedaz/azure-sdk-for-net,amarzavery/azure-sdk-for-net,oburlacu/azure-sdk-for-net,ahosnyms/azure-sdk-for-net,nacaspi/azure-sdk-for-net,pomortaz/azure-sdk-for-net,vladca/azure-sdk-for-net,juvchan/azure-sdk-for-net,yoreddy/azure-sdk-for-net,rohmano/azure-sdk-for-net,amarzavery/azure-sdk-for-ne... | src/ResourceManagement/DataFactory/DataFactoryManagement/Customizations/Models/Activities/HDInsightPigActivity.cs | src/ResourceManagement/DataFactory/DataFactoryManagement/Customizations/Models/Activities/HDInsightPigActivity.cs | //
// Copyright (c) Microsoft. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | //
// Copyright (c) Microsoft. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | apache-2.0 | C# |
03cd3270285ad24840349e803057cc45128c523c | add update language tests | mzrimsek/resume-site-api | Test.Integration/ControllerTests/LanguageControllerTests/UpdateLanguageShould.cs | Test.Integration/ControllerTests/LanguageControllerTests/UpdateLanguageShould.cs | using Microsoft.AspNetCore.TestHost;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Net;
using System.Net.Http;
using Test.Integration.TestHelpers;
using Web.Models.LanguageModels;
namespace Test.Integration.ControllerTests.LanguageControllerTests
{
[TestClass]
public class UpdateLanguageShou... | mit | C# | |
8c0dd50819cbd34d2b490671b646c2d5aaca69e9 | Add test | sakapon/KLibrary.Linq | KLibrary4/UnitTest/Linq/ComparisonTest.cs | KLibrary4/UnitTest/Linq/ComparisonTest.cs | using System;
using System.Collections.Generic;
using KLibrary.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTest.Linq
{
[TestClass]
public class ComparisonTest
{
[TestMethod]
public void CreateComparer()
{
Assert.AreEqual(-1, Comp... | mit | C# | |
32ab51cb8ec6c1fc98b4db862f4c020c88e9f7aa | Introduce ModifierMarkerNameBuilder | JakeGinnivan/ApiApprover | src/PublicApiGenerator/ModifierMarkerNameBuilder.cs | src/PublicApiGenerator/ModifierMarkerNameBuilder.cs | using System.CodeDom;
using Mono.Cecil;
using static System.String;
namespace PublicApiGenerator
{
static class ModifierMarkerNameBuilder
{
public static string Build(MethodDefinition methodDefinition, MemberAttributes getAccessorAttributes, bool? isNew, string name, string markerTemplate)
{
... | mit | C# | |
ed90143e738f1181df2fcee1a1e2e164c6b596ef | Add `Point` animator. | wieslawsoltes/Perspex,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,Perspex/Perspex,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,SuperJMN/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,SuperJMN/Avalonia,jkoritzinsky/Avalonia,SuperJMN/Avalonia,jkoritzinsky/Perspex,wieslawsoltes/Perspex,SuperJMN/Avalonia,AvaloniaUI/Aval... | src/Avalonia.Visuals/Animation/Animators/PointAnimator.cs | src/Avalonia.Visuals/Animation/Animators/PointAnimator.cs | using System;
using Avalonia.Logging;
using Avalonia.Media;
namespace Avalonia.Animation.Animators
{
/// <summary>
/// Animator that handles <see cref="Point"/> properties.
/// </summary>
public class PointAnimator : Animator<Point>
{
public override Point Interpolate(double progress, Poin... | mit | C# | |
b3cf381c5d3b883be24df2db2b8210e38e8b348c | Add TestCaseHoldToQuit | NeoAdonis/osu,DrabWeb/osu,naoey/osu,johnneijzen/osu,ppy/osu,peppy/osu-new,johnneijzen/osu,smoogipooo/osu,peppy/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,2yangk23/osu,ZLima12/osu,UselessToucan/osu,DrabWeb/osu,UselessToucan/osu,2yangk23/osu,ppy/osu,ZLima12/osu,peppy/osu,NeoAdonis/osu,naoey/osu,smoogipoo/osu,naoey/osu... | osu.Game.Tests/Visual/TestCaseHoldToQuit.cs | osu.Game.Tests/Visual/TestCaseHoldToQuit.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 System.Linq;
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Game.Screens.Play.HUD;
namespace osu.Game.Tests... | mit | C# | |
37d7ef85798ebcf772d78ed003d1a615d15d0867 | Add sandbox test (#10767) | 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.IntegrationTests/Tests/Utility/SandboxTest.cs | Content.IntegrationTests/Tests/Utility/SandboxTest.cs | using System.Threading.Tasks;
using NUnit.Framework;
namespace Content.IntegrationTests.Tests.Utility;
public sealed class SandboxTest
{
[Test]
public async Task Test()
{
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings{NoServer = true});
var client = pairTr... | mit | C# | |
0aa25a34e97be25596ae6235e214ef38fad0d496 | Create function.cs | mmgrt/AIVision | TwitterMentionsMonitor/function.cs | TwitterMentionsMonitor/function.cs | using System;
using Tweetinvi;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net;
using Tweetinvi.Parameters;
using Tweetinvi.Models;
public static async void Run(TimerInfo myTimer, TraceWriter log)
{
Tweetinvi.Auth.SetUserCredentials("Consumer Key", "Consumer Secret", "... | mit | C# | |
3a2e13be2265b5af07cdd533545b58ed2139f84c | Add missing file | SuperJMN/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,grokys/Perspex,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,grokys/Perspex,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia | src/Avalonia.Base/Media/TextFormatting/TextRunBounds.cs | src/Avalonia.Base/Media/TextFormatting/TextRunBounds.cs | namespace Avalonia.Media.TextFormatting
{
/// <summary>
/// The bounding rectangle of text run
/// </summary>
public sealed class TextRunBounds
{
/// <summary>
/// Constructing TextRunBounds
/// </summary>
internal TextRunBounds(Rect bounds, int firstCharacterIndex, ... | mit | C# | |
23a981d1a02229019e3367d68c27ce57de0568c7 | fix broken build | assaframan/MoviesRestForAppHarbor,assaframan/MoviesRestForAppHarbor,ServiceStack/ServiceStack.Examples,ServiceStack/ServiceStack.Examples,zhaokunfay/ServiceStack.Examples,zhaokunfay/ServiceStack.Examples,ServiceStack/ServiceStack.Examples,assaframan/MoviesRestForAppHarbor,zhaokunfay/ServiceStack.Examples,ServiceStack/S... | src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Operations/Orders.cs | src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Operations/Orders.cs | using System.Collections.Generic;
using ServiceStack.Northwind.ServiceModel.Types;
using ServiceStack.ServiceInterface.ServiceModel;
public class Customers {}
public class CustomerResponse : IHasResponseStatus
{
public CustomerResponse()
{
this.ResponseStatus = new ResponseStatus();
}
public Customer Customer ... | public class Customers {}
public class CustomerResponse : IHasResponseStatus
{
public CustomerResponse()
{
this.ResponseStatus = new ResponseStatus();
}
public Customer Customer { get; set; }
public ResponseStatus ResponseStatus { get; set; }
}
public class CustomersResponse : IHasResponseStatus
{
public Cu... | bsd-3-clause | C# |
618166f56d8596e5264fd1f1a81a0616d7b87b6a | Add test for CurrencyRatesService | Lc5/CurrencyRates,Lc5/CurrencyRates,Lc5/CurrencyRates | CurrencyRates.Tests/WebService/CurrencyRatesServiceTest.cs | CurrencyRates.Tests/WebService/CurrencyRatesServiceTest.cs | namespace CurrencyRates.Tests.WebService
{
using System.Linq;
using CurrencyRates.Model;
using CurrencyRates.Model.Entities;
using CurrencyRates.Tests.TestUtils;
using CurrencyRates.WebService;
using Moq;
using NUnit.Framework;
[TestFixture]
public class CurrencyRa... | mit | C# | |
db3ed2172f80c51425394d822f5cdac8d4905a97 | Create ServiceProviderFixture.cs | tiksn/TIKSN-Framework | TIKSN.Framework.IntegrationTests/ServiceProviderFixture.cs | TIKSN.Framework.IntegrationTests/ServiceProviderFixture.cs | using System;
using System.Collections.Generic;
using Autofac;
using Autofac.Extensions.DependencyInjection;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using TIKSN.Data.Mongo;
using TIKSN.Framework.IntegrationTests.Data.Mongo;
namespace TIKSN.Framework.IntegrationTests
{
public ... | mit | C# | |
ffb64a3badb836004aab0f9d47c3f77e43093c0e | Add AccStructure | mehrandvd/Tralus,mehrandvd/Tralus | Selonia/Selonia.Accounting/Selonia.Accounting.BusinessModel/Entities/AccStructure.cs | Selonia/Selonia.Accounting/Selonia.Accounting.BusinessModel/Entities/AccStructure.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DevExpress.ExpressApp.Utils;
using DevExpress.Persistent.Base.General;
using Tralus.Framework.BusinessModel.Entities;
n... | apache-2.0 | C# | |
ace0d3830232812a722c2d2ca4d2d38cb85a0c3b | Create StringExtensions.cs | drawcode/labs-unity | extensions/StringExtensions.cs | extensions/StringExtensions.cs | using System;
using System.Collections;
using System.Globalization;
using System.Text;
using UnityEngine;
public static class StringExtensions {
public static string pathForBundleResource(string file) {
var path = Application.dataPath.Replace("Data", "");
return PathUtil.Combine(path, file);
}... | mit | C# | |
e6a5e7bf7ff470d3aa996d6f494791c5d445f610 | add C_LOGIN_ARBITER | Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns | TCC.Core/Parsing/Messages/C_LOGIN_ARBITER.cs | TCC.Core/Parsing/Messages/C_LOGIN_ARBITER.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tera.Game;
using Tera.Game.Messages;
namespace TCC.Parsing.Messages
{
public class C_LOGIN_ARBITER : ParsedMessage
{
internal C_LOGIN_ARBITER(TeraMessageReader reader) : base(reade... | mit | C# | |
630016ad2214dee85e4ef43de6b526d5292e0789 | Add MonoNativeFunctionWrapperAttribute. | cwensley/maccore,mono/maccore,jorik041/maccore | src/MonoNativeFunctionWrapperAttribute.cs | src/MonoNativeFunctionWrapperAttribute.cs | //
// MonoPInvokeCallbackAttribute.cs: necessary for AOT ports of Mono
//
// 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... | apache-2.0 | C# | |
aa0e72cf8654bf5f0055abe3cd5626c9a81b0ef0 | Add missing method | AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,MikhailAr... | src/R/Editor/Test/Mocks/EditorTreeMock.cs | src/R/Editor/Test/Mocks/EditorTreeMock.cs | using System;
using System.Diagnostics.CodeAnalysis;
using Microsoft.R.Core.AST;
using Microsoft.R.Editor.Tree;
using Microsoft.R.Editor.Tree.Definitions;
using Microsoft.VisualStudio.Text;
namespace Microsoft.R.Editor.Test.Mocks
{
[ExcludeFromCodeCoverage]
public sealed class EditorTreeMock : IEditorTree
... | using System;
using System.Diagnostics.CodeAnalysis;
using Microsoft.R.Core.AST;
using Microsoft.R.Editor.Tree;
using Microsoft.R.Editor.Tree.Definitions;
using Microsoft.VisualStudio.Text;
namespace Microsoft.R.Editor.Test.Mocks
{
[ExcludeFromCodeCoverage]
public sealed class EditorTreeMock : IEditorTree
... | mit | C# |
65f9a5fb3d0622d1d48a96201a3ee2c0e6b304fb | Add total number of gases atmospherics test (#1639) | space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content | Content.IntegrationTests/Tests/Atmos/ConstantsTest.cs | Content.IntegrationTests/Tests/Atmos/ConstantsTest.cs | using System;
using System.Linq;
using Content.Shared.Atmos;
using NUnit.Framework;
namespace Content.IntegrationTests.Tests.Atmos
{
[TestFixture]
[TestOf(typeof(Atmospherics))]
public class ConstantsTest : ContentIntegrationTest
{
[Test]
public void TotalGasesTest()
{
... | mit | C# | |
441c80a06f1f1aa95b625f093d1ee3e83491f7a3 | Include ShareTarget.xaml.cs. | wangjun/windows-app,wangjun/windows-app | wallabag/wallabag.WindowsPhone/Views/ShareTarget.xaml.cs | wallabag/wallabag.WindowsPhone/Views/ShareTarget.xaml.cs | using System;
using wallabag.Common;
using Windows.ApplicationModel.Activation;
using Windows.ApplicationModel.DataTransfer.ShareTarget;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
// Die Elementvorlage "Freigabezielvertrag" ist unter http://go.microsoft.com/fwlink/?LinkID=390556 dokumentiert.
namespace w... | mit | C# | |
5e39bad3da46d7e04d9b6db788af1e479b63b276 | Add cloudinary factory | Branimir123/PhotoLife,Branimir123/PhotoLife,Branimir123/PhotoLife | PhotoLife/PhotoLife.Web/Factories/ICloudinaryFactory.cs | PhotoLife/PhotoLife.Web/Factories/ICloudinaryFactory.cs | using CloudinaryDotNet;
namespace PhotoLife.Factories
{
public interface ICloudinaryFactory
{
Cloudinary GetCloudinary();
}
} | mit | C# | |
682afb1a487e7703e2cd82627cdc4600bd65a476 | Test for issue #1261 - .All() generates incomplete WHERE | linq2db/linq2db,MaceWindu/linq2db,LinqToDB4iSeries/linq2db,LinqToDB4iSeries/linq2db,MaceWindu/linq2db,linq2db/linq2db,ronnyek/linq2db | Tests/Linq/UserTests/Issue1261Tests.cs | Tests/Linq/UserTests/Issue1261Tests.cs | using System.Linq;
using NUnit.Framework;
namespace Tests.UserTests
{
[TestFixture, ActiveIssue]
public class Issue1261Tests : TestBase
{
[Test, DataContextSource]
public void TestLinqAll(string context)
{
using (var db = GetDataContext(context))
{
var q = db.GrandChild.Where(x => x.P... | mit | C# | |
3e3c53a97bb95bf85a370033847b58455579b4fa | Add basic unit test for SecurityProtocolManager | ViveportSoftware/vita_core_csharp,ViveportSoftware/vita_core_csharp | source/Htc.Vita.Core.Tests/SecurityProtocolManagerTest.cs | source/Htc.Vita.Core.Tests/SecurityProtocolManagerTest.cs | using Htc.Vita.Core.Net;
using Xunit;
using Xunit.Abstractions;
namespace Htc.Vita.Core.Tests
{
public class SecurityProtocolManagerTest
{
private readonly ITestOutputHelper _output;
public SecurityProtocolManagerTest(ITestOutputHelper output)
{
_output = output;
}... | mit | C# | |
38249f9cc9371da1db7c26b1b62cd62daa8ffb3f | add tests for adding a social media link | mzrimsek/resume-site-api | Test.Integration/ControllerTests/SocialMediaLinksControllerTests/AddSocialMediaLinkShould.cs | Test.Integration/ControllerTests/SocialMediaLinksControllerTests/AddSocialMediaLinkShould.cs | using System.Net;
using System.Net.Http;
using FluentAssertions;
using Microsoft.AspNetCore.TestHost;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Test.Integration.TestHelpers;
using Test.Integration.TestModels.SocialMediaLinkModels;
namespace Test.Integration.ControllerTests.SocialMediaLinksControllerTe... | mit | C# | |
68a043a0703202fc918e5879cc6eef296b14f7eb | Add test case covering regression | UselessToucan/osu,peppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,smoogipooo/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,peppy/osu-new,NeoAdonis/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu | osu.Game.Rulesets.Catch.Tests/Mods/TestSceneCatchModRelax.cs | osu.Game.Rulesets.Catch.Tests/Mods/TestSceneCatchModRelax.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
using osu.Framework.Testing;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Catch.Mods;
usin... | mit | C# | |
8a56c26cec0d43892f289e6313908dfed23e3e07 | Apply permutation | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | CareerCup/Facebook/reorder_array.cs | CareerCup/Facebook/reorder_array.cs | // http://careercup.com/question?id=5756151524229120
//
// Given an array A and an array of indexes B, reorder
// objects in A.
//
// a = { "c", "d", "e", "f", "g"]
// b = { 3, 0, 4, 1, 2 ]
//
// result : = ["d", "f", "g", "c", "e"]
//
using System;
using System.Linq;
static class Program
{
static char[] Permute... | mit | C# | |
09a984d474a514128f8134d41db9db2a71f8b0aa | Add Tuples.cs | devlights/try-csharp | TryCSharp.Samples/CSharp7/Tuples.cs | TryCSharp.Samples/CSharp7/Tuples.cs | using System;
using System.Threading;
using TryCSharp.Common;
namespace TryCSharp.Samples.CSharp7
{
/// <summary>
/// C# 7 の新機能についてのサンプルです。
/// </summary>
/// <remarks>
/// Tuples について
/// https://docs.microsoft.com/ja-jp/dotnet/csharp/whats-new/csharp-7#tuples
/// https://... | mit | C# | |
2cb7f2f793d992bc00fb919a4e6873d934129fbb | add IStatementDescription | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Crypto/ZeroKnowledge/IStatementDescription.cs | WalletWasabi/Crypto/ZeroKnowledge/IStatementDescription.cs | using System.Collections.Generic;
using WalletWasabi.Crypto.Groups;
namespace WalletWasabi.Crypto.ZeroKnowledge
{
public interface IStatementDescription
{
IEnumerable<GroupElement> PublicPoints { get; }
IEnumerable<GroupElement> Generators { get; }
}
}
| mit | C# | |
0f016c90e933175fe7a231e5525b4233de880972 | Create CommentsController | DimitarDKirov/Forum-Paulo-Coelho,DimitarDKirov/Forum-Paulo-Coelho,DimitarDKirov/Forum-Paulo-Coelho | Forum-Paulo-Coelho/ForumSystem.Api/Controllers/CommentsController.cs | Forum-Paulo-Coelho/ForumSystem.Api/Controllers/CommentsController.cs | namespace ForumSystem.Api.Controllers
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Microsoft.AspNet.Identity;
using ForumSystem.Api.Models;
using ForumSystem.Data;
using Foru... | mit | C# | |
23608a49b863533042fdd125da25c5ceff363ebe | Remove attribute since this is no longer a test code | karthiknadig/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,MikhailAr... | src/Common/Wpf/Impl/Extensions/VisualTreeExtensions.cs | src/Common/Wpf/Impl/Extensions/VisualTreeExtensions.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Diagnostics.CodeAnalysis;
using System.Windows;
using System.Windows.Media;
namespace Microsoft.Common.Wpf.Extensions {
public static class VisualT... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Diagnostics.CodeAnalysis;
using System.Windows;
using System.Windows.Media;
namespace Microsoft.Common.Wpf.Extensions {
[ExcludeFromCodeCoverage]
... | mit | C# |
79ea6a4e380b74ac688ff8a7e98bab66ee12b491 | Add PolyLineSegment path segment | SuperJMN/Avalonia,Perspex/Perspex,wieslawsoltes/Perspex,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Ava... | src/Avalonia.Visuals/Media/PolyLineSegment.cs | src/Avalonia.Visuals/Media/PolyLineSegment.cs | using System.Collections.Generic;
using Avalonia.Collections;
namespace Avalonia.Media
{
/// <summary>
/// Represents a set of line segments defined by a points collection with each Point specifying the end point of a line segment.
/// </summary>
public sealed class PolyLineSegment : PathSegment
{... | mit | C# | |
e79988c2f120cdd21d5f3bd4249a6455e1854f95 | Add skeleton BYOND implementation | tgstation/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server-tools,Cyberboss/tgstation-server | src/Tgstation.Server.Host/Components/Byond.cs | src/Tgstation.Server.Host/Components/Byond.cs | using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Tgstation.Server.Host.IO;
namespace Tgstation.Server.Host.Components
{
/// <inheritdoc />
sealed class Byond : IByond
{
/// <summary>
/// The <see cref="IIOManager"/> ... | agpl-3.0 | C# | |
65aa01866ee8fb6d14ef78ce3873e7bbad4692a8 | add test scene for OsuMarkdownContainer | peppy/osu,peppy/osu-new,NeoAdonis/osu,peppy/osu,peppy/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,smoogipooo/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,ppy/osu | osu.Game.Tests/Visual/UserInterface/TestSceneOsuMarkdownContainer.cs | osu.Game.Tests/Visual/UserInterface/TestSceneOsuMarkdownContainer.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.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using o... | mit | C# | |
6c6d2972feec658d804cb6d70d0ee7713ea335cc | Fix incorrect title on edit page | aaronamm/Orchard,yersans/Orchard,Serlead/Orchard,gcsuk/Orchard,LaserSrl/Orchard,jimasp/Orchard,aaronamm/Orchard,Dolphinsimon/Orchard,OrchardCMS/Orchard,yersans/Orchard,Serlead/Orchard,LaserSrl/Orchard,Dolphinsimon/Orchard,AdvantageCS/Orchard,fassetar/Orchard,Lombiq/Orchard,jersiovic/Orchard,omidnasri/Orchard,IDeliverab... | src/Orchard.Web/Modules/Orchard.Blogs/Views/Content-Blog.Edit.cshtml | src/Orchard.Web/Modules/Orchard.Blogs/Views/Content-Blog.Edit.cshtml | @using Orchard.Mvc.Html;
<div class="edit-item">
<div class="edit-item-primary">
@if (Model.Content != null) {
<div class="edit-item-content">
@Display(Model.Content)
</div>
}
</div>
<div class="edit-item-secondary group">
@if (Model.Actions !=... | @using Orchard.Mvc.Html;
@{
Layout.Title = T("New Blog");
}
<div class="edit-item">
<div class="edit-item-primary">
@if (Model.Content != null) {
<div class="edit-item-content">
@Display(Model.Content)
</div>
}
</div>
<div class="edit-item-secondar... | bsd-3-clause | C# |
58fb4c6bb9211ce8e206fc50267775edde2c59a8 | Remove unnecessary Task.Run. | karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,AlexanderShe... | src/Package/Impl/ProjectSystem/PropertyPages/PropertyPageProvider.cs | src/Package/Impl/ProjectSystem/PropertyPages/PropertyPageProvider.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
us... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
us... | mit | C# |
c7faf326e80d28fcefa73d02ec1b800f9aedd250 | Create Message Context Factory interface | HelloKitty/GladNet2-Lidgren,HelloKitty/GladNet2.0,HelloKitty/GladNet2-Lidgren,HelloKitty/GladNet2,HelloKitty/GladNet2,HelloKitty/GladNet2.0 | src/GladNet.Lidgren.Engine.Common/Network/Message/ContextMessages/ILidgrenMessageContextFactory.cs | src/GladNet.Lidgren.Engine.Common/Network/Message/ContextMessages/ILidgrenMessageContextFactory.cs | using Lidgren.Network;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GladNet.Lidgren.Engine.Common
{
/// <summary>
/// Factory that generates <see cref="LidgrenMessageContext"/>s.
/// </summary>
public interface ILidgrenMessageContextFactory
{
/// <summary>
/... | bsd-3-clause | C# | |
6c0da5856fba1806a47549704e0fc85240d9dcee | Update server side API for single multiple answer question | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist | Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs | Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.Models.Question;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api/question")]
public class QuestionsController : Controller
{
private readonly IQuestionRepository ... | mit | C# | |
9ad14311abe5ff5a93bfe7423cee3ae051967d4e | Create EditStatCommand.cs | NinjaVault/NinjaHive,NinjaVault/NinjaHive | NinjaHive.Contract/Commands/EditStatCommand.cs | NinjaHive.Contract/Commands/EditStatCommand.cs | using System.ComponentModel.DataAnnotations;
using NinjaHive.Contract.DTOs;
using NinjaHive.Core.Validations;
namespace NinjaHive.Contract.Commands
{
public class EditStatCommand
{
public EditStatCommand(StatInfo stat, bool createNew)
{
this.Stat = stat;
this.CreateNew ... | apache-2.0 | C# | |
066832243fd886e4f3148b2685f78bbb54b1186f | Add base class for auth tests. | rnwood/smtp4dev,rnwood/smtp4dev,rnwood/smtp4dev,rnwood/smtp4dev | Rnwood.SmtpServer.Tests/Extensions/Auth/AuthMechanismTest.cs | Rnwood.SmtpServer.Tests/Extensions/Auth/AuthMechanismTest.cs | using System;
using System.Text;
namespace Rnwood.SmtpServer.Tests.Extensions.Auth
{
public class AuthMechanismTest
{
protected static bool VerifyBase64Response(string base64, string expectedString)
{
string decodedString = Encoding.ASCII.GetString(Convert.FromBase64String(base64));... | bsd-3-clause | C# | |
cb0546c4dd685ad33e876fbea52af5c7c20492ab | Add benchmark for ElementMetadata.Create (#764) | tomjebo/Open-XML-SDK,ThomasBarnekow/Open-XML-SDK,OfficeDev/Open-XML-SDK | test/DocumentFormat.OpenXml.Benchmarks/ElementMetadataTests.cs | test/DocumentFormat.OpenXml.Benchmarks/ElementMetadataTests.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using BenchmarkDotNet.Attributes;
using DocumentFormat.OpenXml.Framework.Metadata;
namespace DocumentFormat.OpenXml.Benchmarks
{
public class ElementMetadataTests... | mit | C# | |
838ffe4e834e1ecf54f711cd6a1b6656c3d0cb00 | Restructure TypeHint (constructors/properties at top of file | KevinRansom/roslyn,tannergooding/roslyn,mgoertz-msft/roslyn,mavasani/roslyn,bartdesmet/roslyn,tannergooding/roslyn,physhi/roslyn,physhi/roslyn,bartdesmet/roslyn,mavasani/roslyn,CyrusNajmabadi/roslyn,weltkante/roslyn,jasonmalinowski/roslyn,shyamnamboodiripad/roslyn,dotnet/roslyn,tmat/roslyn,mgoertz-msft/roslyn,bartdesme... | src/Features/Core/Portable/InlineHints/TypeHint.cs | src/Features/Core/Portable/InlineHints/TypeHint.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.Immutable;
using System.Diagnostics;
using Microsoft.CodeAnalysis.Text;
namespace Microso... | // 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.Immutable;
using System.Diagnostics;
using Microsoft.CodeAnalysis.Text;
namespace Microso... | mit | C# |
09e4e8e7a9414c489959b0f9fdbbb8243d043f90 | Check in a file I forgot from the ResourceManager change | tijoytom/corert,gregkalapos/corert,sandreenko/corert,botaberg/corert,sandreenko/corert,shrah/corert,yizhang82/corert,shrah/corert,botaberg/corert,sandreenko/corert,gregkalapos/corert,krytarowski/corert,yizhang82/corert,krytarowski/corert,botaberg/corert,shrah/corert,krytarowski/corert,shrah/corert,gregkalapos/corert,sa... | src/System.Private.CoreLib/src/Internal/Runtime/CompilerServices/HasEmbeddedStringResourcesAttribute.cs | src/System.Private.CoreLib/src/Internal/Runtime/CompilerServices/HasEmbeddedStringResourcesAttribute.cs | using System;
namespace Internal.Runtime.CompilerServices
{
/// <summary>
/// Applied by the compiler to assemblies that contain embedded string resources.
/// In UWP apps, ResourceManager will use this attribute to determine whether to search
/// for embedded or PRI resources.
/// </summary>
... | mit | C# | |
8d667fc1e86dc977cf40719e986b326879e51dfb | Add failing test for issue GH-837 | ericgreenmix/marten,jokokko/marten,mdissel/Marten,jokokko/marten,mysticmind/marten,jokokko/marten,JasperFx/Marten,mysticmind/marten,ericgreenmix/marten,jokokko/marten,ericgreenmix/marten,JasperFx/Marten,mysticmind/marten,jokokko/marten,mdissel/Marten,ericgreenmix/marten,mysticmind/marten,JasperFx/Marten | src/Marten.Testing/Bugs/Bug_837_missing_func_mt_immutable_timestamp_when_initializing_with_new_Schema.cs | src/Marten.Testing/Bugs/Bug_837_missing_func_mt_immutable_timestamp_when_initializing_with_new_Schema.cs | using System;
using System.Linq;
using Marten.Schema;
using Marten.Testing.Documents;
using Xunit;
namespace Marten.Testing.Bugs
{
public class Bug_837_missing_func_mt_immutable_timestamp_when_initializing_with_new_Schema : IntegratedFixture
{
[Fact]
public void missing_func_mt_immutable_times... | mit | C# | |
b1cf014dc21a2dd61040522df015de5e4b6ed02a | Add test coverage of EF to Realm migration process | ppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu | osu.Game.Tests/Visual/Navigation/TestEFToRealmMigration.cs | osu.Game.Tests/Visual/Navigation/TestEFToRealmMigration.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 System.Linq;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Game.Beatmaps;
using osu.Game.Database;
using osu.Game.Models;
using ... | mit | C# | |
34d56ef604e787d72c5c533591305a151ee79103 | add IRequestMeta for extensibility | Research-Institute/json-api-dotnet-core,Research-Institute/json-api-dotnet-core,json-api-dotnet/JsonApiDotNetCore | src/JsonApiDotNetCore/Services/IRequestMeta.cs | src/JsonApiDotNetCore/Services/IRequestMeta.cs | using System.Collections.Generic;
namespace JsonApiDotNetCore.Services
{
public interface IRequestMeta
{
Dictionary<string, object> GetMeta();
}
} | mit | C# | |
223096eb6ebbf1c03bb3aa2cb59b68442b507018 | Add missing unit test file | ilovepi/Compiler,ilovepi/Compiler | compiler/NUnit.Tests/Middle-End/InstructionTests.cs | compiler/NUnit.Tests/Middle-End/InstructionTests.cs | using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using compiler.middleend.ir;
namespace NUnit.Tests.Middle_End
{
[TestFixture]
public class InstructionTests
{
[Test]
public void ToStringTest()
... | mit | C# | |
20304af1be8a2c72b2288e58bb0cac8ad0647b05 | Create TemporalRecord.cs | efruchter/UnityUtilities | MiscDataStructures/TemporalRecord.cs | MiscDataStructures/TemporalRecord.cs | using System.Collections.Generic;
using Unity.Mathematics;
using UnityEngine;
namespace ADT
{
public class TemporalRecord<T>
{
public struct Record
{
public float time;
public T t;
}
public float GetDuration()
{
if (_records.Count > 0... | mit | C# | |
dcae8462711ea2c9c1343131fca9db92ef0382e8 | Add unfinished ArticleTest | RehanSaeed/Schema.NET | Tests/Schema.NET.Test/ArticleTest.cs | Tests/Schema.NET.Test/ArticleTest.cs | namespace Schema.NET.Test
{
using System;
using Xunit;
public class ArticleTest
{
[Fact]
public void ToString_ArticleGoogleStructuredData_ReturnsExpectedJsonLd()
{
var article = new Article()
{
MainEntityOfPage = new Uri("https://google.c... | mit | C# | |
c7750ae0f8bdf362165b98789a1c46ecd9eaae56 | Add GlobalSuppressions | bytefish/PostgreSQLCopyHelper | src/PostgreSQLCopyHelper.Test/GlobalSuppressions.cs | src/PostgreSQLCopyHelper.Test/GlobalSuppressions.cs | // This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Securit... | mit | C# | |
326686d26a17d4fe8779cdcbce318a53bd921514 | Add Extension Methods for WebSocket->IGuild | AntiTcb/Discord.Net,RogueException/Discord.Net,Confruggy/Discord.Net,Joe4evr/Discord.Net,LassieME/Discord.Net | src/Discord.Net/WebSocket/Extensions/GuildExtensions.cs | src/Discord.Net/WebSocket/Extensions/GuildExtensions.cs | using System.Collections.Generic;
using System.Linq;
namespace Discord.WebSocket.Extensions
{
// TODO: Docstrings
public static class GuildExtensions
{
// Channels
public static IGuildChannel GetChannel(this IGuild guild, ulong id) =>
(guild as SocketGuild).GetChannel(id);
... | mit | C# | |
8b1a71f4ca4ca073f762cc45521f6b0826128f8f | Add extension method for null-forgiving operator | ZLima12/osu-framework,peppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework | osu.Framework/Extensions/ObjectExtensions/ObjectExtensions.cs | osu.Framework/Extensions/ObjectExtensions/ObjectExtensions.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.Diagnostics;
#nullable enable
namespace osu.Framework.Extensions.ObjectExtensions
{
/// <summary>
/// Extensions that apply to all objects.
///... | mit | C# | |
034703729e26d31521714fe9286f8232ce959bfe | Add EnumerableExtensions.ToPropertyDictionary for usage with anonymous types | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | source/Nuke.Common/Utilities/Collections/Object.ToPropertyDictionary.cs | source/Nuke.Common/Utilities/Collections/Object.ToPropertyDictionary.cs | // Copyright Matthias Koch, Sebastian Karasek 2018.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Nuke.Common.Utilities.Collections
{
partial class EnumerableExte... | mit | C# | |
ae076f069cf7f8fea03d892123f6d82b8acb6bc4 | Add Bulk extension method | fhelje/ElasticPlayground | ElasticPlayground.Indexing/EnumerableExtensions.cs | ElasticPlayground.Indexing/EnumerableExtensions.cs | using System.Collections.Generic;
using System.Linq;
namespace ElasticPlayground.Indexing
{
public static class EnumerableExtensions
{
public static IEnumerable<IEnumerable<TSource>> Batch<TSource>(
this IEnumerable<TSource> source, int size)
{
TSource[] bucket = null;
... | mit | C# | |
ee89412859010808f40d6c20d7842311f18f4263 | Switch MonitorRecord from ITimeStamped interface | ZocDoc/ZocMon,ZocDoc/ZocMon,modulexcite/ZocMon,modulexcite/ZocMon,modulexcite/ZocMon,ZocDoc/ZocMon | ZocMon/ZocMon/ZocMonLib/Framework/MonitorRecord.cs | ZocMon/ZocMon/ZocMonLib/Framework/MonitorRecord.cs | using System;
namespace ZocMonLib
{
/// <summary>
/// Record that captures the record of occurance of a given monitor info.
/// </summary>
/// <typeparam name="T">Data type that is being collected</typeparam>
public class MonitorRecord<T> : IComparable<MonitorRecord<T>>
{
public Monito... | using System;
namespace ZocMonLib
{
/// <summary>
/// Record that captures the record of occurance of a given monitor info.
/// </summary>
/// <typeparam name="T">Data type that is being collected</typeparam>
public class MonitorRecord<T> : IComparable<MonitorRecord<T>>, ITimeStamped
{
... | apache-2.0 | C# |
5f37ffec4fea7773120ad3c33644a034f996049c | Create SyncConflictPageViewModel.cs | scherke/windows-universal,altima/windows-universal,altima/windows-universal,DecaTec/windows-universal,TheScientist/windows-universal,altima/windows-universal,DecaTec/windows-universal,scherke/windows-universal,scherke85/windows-universal,SunboX/windows-universal,DecaTec/windows-universal,TheScientist/windows-universal,... | NextcloudApp/ViewModels/SyncConflictPageViewModel.cs | NextcloudApp/ViewModels/SyncConflictPageViewModel.cs | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Globalization;
using System.IO;
using System.Windows.Input;
using Windows.Networking.Connectivity;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media.Imaging;
using NextcloudApp.Converter;
... | mpl-2.0 | C# | |
b40b24cb75ad4f184d4c7784a1ba381019e3a39f | add missing file | EdneySilva/Venom | Venom.Lib/Util/ApplicationResource.pt-Br.Designer.cs | Venom.Lib/Util/ApplicationResource.pt-Br.Designer.cs | mit | C# | ||
73202eb8e6c13ad086ad68f7acb20f7160cb7639 | Add benchmark | ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework | osu.Framework.Benchmarks/BenchmarkColourInfo.cs | osu.Framework.Benchmarks/BenchmarkColourInfo.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 BenchmarkDotNet.Attributes;
using osu.Framework.Graphics.Colour;
using osuTK.Graphics;
namespace osu.Framework.Benchmarks
{
[MemoryDiagnoser]
public class ... | mit | C# | |
3090a976d58ae6f86e1851141ed8c9dd415aca73 | Revert "Pack nuget on build" | whir1/serilog-sinks-graylog | src/Serilog.Sinks.Graylog/Properties/AssemblyInfo.cs | src/Serilog.Sinks.Graylog/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Se... | mit | C# | |
fb6caf0f4e7a15bf3f0b900f2e5c86dd295e802e | Add missing file | segrived/Msiler | Msiler/HighlightSchemes/IListingHighlightingScheme.cs | Msiler/HighlightSchemes/IListingHighlightingScheme.cs | namespace Msiler.HighlightSchemes
{
public interface IListingHighlightingScheme
{
IListingHighlightingSchemeDef GetScheme();
}
}
| mit | C# | |
37a66603457e24b65942d7905a9afb59b7d47cdd | Add test for persisting cached value under different culture. | b0bi79/ClosedXML,igitur/ClosedXML,ClosedXML/ClosedXML | ClosedXML_Tests/Excel/Globalization/GlobalizationTests.cs | ClosedXML_Tests/Excel/Globalization/GlobalizationTests.cs | using ClosedXML.Excel;
using NUnit.Framework;
using System.IO;
using System.Threading;
namespace ClosedXML_Tests.Excel.Globalization
{
[TestFixture]
public class GlobalizationTests
{
[Test]
[TestCase("A1*10", "1230")]
[TestCase("A1/10", "12.3")]
[TestCase("A1&\" cells\"", "... | mit | C# | |
7b36799494d3a33f6ecea293f4ca656680f3ec02 | Create AltriaPendragonAlterSaber.cs | Keripo/fgo-data | webservice/src/Models/Data/Servants/AltriaPendragonAlterSaber.cs | webservice/src/Models/Data/Servants/AltriaPendragonAlterSaber.cs | using FGOData.Models.Serialization;
using System.Collections.Generic;
namespace FGOData.Models.Data
{
public class AltriaPendragonAlterSaber : Servant
{
public AltriaPendragonAlterSaber()
{
Id = 3;
Name_EN = "Altria Pendragon (Alter)";
Name_JP = "アルトリア・ペンドラゴン... | apache-2.0 | C# | |
b529ca49c0c2497c1c71935956b440db749e21b3 | Update token-generation-server.4.x.cs | TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snip... | video/users/token-generation-server/token-generation-server.4.x.cs | video/users/token-generation-server/token-generation-server.4.x.cs | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Twilio;
using Twilio.Auth;
using JWT;
using Faker;
namespace VideoQuickstart.Controllers
{
public class TokenController : Controller
{
// GET: /token
publ... | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Twilio;
using Twilio.Auth;
using JWT;
using Faker;
namespace VideoQuickstart.Controllers
{
public class TokenController : Controller
{
// GET: /token
publ... | mit | C# |
64a25c3aaef0c7b6077f496955878278c93a711c | rename Pxory to ProxyDescriptor | AspectCore/AspectCore-Framework,AspectCore/Abstractions,AspectCore/AspectCore-Framework,AspectCore/Lite | src/AspectCore.Lite.Abstractions/ProxyDescriptor.cs | src/AspectCore.Lite.Abstractions/ProxyDescriptor.cs | using System;
using System.Reflection;
namespace AspectCore.Lite.Abstractions
{
public sealed class ProxyDescriptor
{
public object ProxyInstance { get; }
public MethodInfo ProxyMethod { get; }
public Type ProxyType { get; set; }
public ProxyDescriptor(object proxyInstance, Me... | mit | C# | |
88578631a340e2d7773b4cacb702c184a96cd3cd | add skeleton of ReadonlyRepository | HighwayFramework/Highway.Data,ericburcham/Highway.Data | src/Highway.Data/Repositories/ReadonlyRepository.cs | src/Highway.Data/Repositories/ReadonlyRepository.cs | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Highway.Data
{
public class ReadonlyRepository : IReadonlyRepository
{
public IReadonlyDataContext Context { get; }
public T Find<T>(IScalar<T> scalar)
{
throw new NotImplementedExcepti... | mit | C# | |
38fc9347bec98496ff03a8b6f72fb0f5d18c17d0 | Add failing test coverage for beatmap skin disable | ppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipooo/osu,peppy/osu-new,peppy/osu,smoogipoo/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu | osu.Game.Tests/Skins/TestSceneBeatmapSkinLookupDisables.cs | osu.Game.Tests/Skins/TestSceneBeatmapSkinLookupDisables.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;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using ... | mit | C# | |
42749f4e3c4f1a10464b04583f2cd220b6d07492 | Create DeleteStatCommandHandler.cs | NinjaVault/NinjaHive,NinjaVault/NinjaHive | NinjaHive.BusinessLayer/CommandHandlers/DeleteStatCommandHandler.cs | NinjaHive.BusinessLayer/CommandHandlers/DeleteStatCommandHandler.cs | using NinjaHive.Contract.Commands;
using NinjaHive.Core;
using NinjaHive.Domain;
namespace NinjaHive.BusinessLayer.CommandHandlers
{
public class DeleteStatCommandHandler
: ICommandHandler<DeleteStatCommand>
{
private readonly IRepository<StatInfoEntity> statRepository;
public DeleteS... | apache-2.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.