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
1a2fbe62202c21bc1874ef729c079851c26ed118
Add F.Reduce
farity/farity
Farity/Reduce.cs
Farity/Reduce.cs
using System; using System.Collections.Generic; namespace Farity { public static partial class F { /// <summary> /// Returns a single item by iterating through the list, successively calling /// the iterator function and passing it an accumulator value and the current /// value...
mit
C#
52406e297c65785d147ba67f2d70ed57f63c6a8c
Add missing file
segrived/Msiler
Msiler/DialogPages/ExtensionGeneralOptions.cs
Msiler/DialogPages/ExtensionGeneralOptions.cs
using System.ComponentModel; namespace Msiler.DialogPages { public class ExtensionGeneralOptions : MsilerDialogPage { [Category("General")] [DisplayName("Update listing only if toolbox is visible")] [Description("Bytecode listing will be updated, only if Msiler toolbox visible on scre...
mit
C#
32b3de47b34b73980adb2180f284925ba8230f9b
add unit tests.
ouraspnet/HanLP.NET
test/HanLP.Net.Tests/Utility/GlobalObjectPoolTest.cs
test/HanLP.Net.Tests/Utility/GlobalObjectPoolTest.cs
using System; using System.Collections.Generic; using System.Text; using HanLP.Net.Utility; using Xunit; namespace HanLP.Net.Tests.Utility { public class GlobalObjectPoolTest { [Fact] public void AddObjectTest() { var obj = new object(); var addObj = GlobalObjectPool.A...
apache-2.0
C#
aea897cfe0540ec91738eb5c1727bd2227954d7f
Create Slots.cs
TeamLockheed/LockheedTheGame
Lockheed_Inventory/Slots/Slots.cs
Lockheed_Inventory/Slots/Slots.cs
using System; using Lockheed_Inventory.Slots.Interfaces; namespace Lockheed_Inventory { public abstract class Slot : ISlot { protected bool freeSlot = true; public abstract bool FreeSlot { get; set; } public abstract void Equip(Item item); public abstract void UnEquip(Item item)...
mit
C#
60b0dd165f8f84dca9df3e08c2a0f07abd4efc48
Update GetSkillByIdQuery.cs
NinjaVault/NinjaHive,NinjaVault/NinjaHive
NinjaHive.Contract/Queries/GetSkillByIdQuery.cs
NinjaHive.Contract/Queries/GetSkillByIdQuery.cs
using System; using NinjaHive.Contract.DTOs; using NinjaHive.Core; namespace NinjaHive.Contract.Queries { public class GetSkillByIdQuery : IQuery<Skill> { public Guid SkillId { get; set; } } }
apache-2.0
C#
b061435ca48609adb57a82476ee4c4f4d51aba7a
Create SearchRequest.cs
daniela1991/hack4europecontest
SearchRequest.cs
SearchRequest.cs
using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Cdiscount.OpenApi.ProxyClient.Contract.Search { public class SearchRequest { public string Keyword { get; set; } [JsonConverter(typeof(StringEnumConverter))] public SearchRequestSortBy SortBy { get; set; } publ...
mit
C#
d587034e61ea8beb31323455b88a9035bf98b6d6
Add a Squiggle Tagger for errors.
modulexcite/DartVS,modulexcite/DartVS,modulexcite/DartVS,DartVS/DartVS,DartVS/DartVS,DartVS/DartVS
DanTup.DartVS.Vsix/Taggers/ErrorSquiggleTagger.cs
DanTup.DartVS.Vsix/Taggers/ErrorSquiggleTagger.cs
using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.Linq; using System.Reactive.Linq; using System.Threading; using DanTup.DartAnalysis; using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Tagging; using Microsoft.VisualStudio.Utilities; namespace Dan...
mit
C#
e93bb4272e7593ab7e5a823787a3f7b2a29f0199
Add test for winforms converters.
eylvisaker/AgateLib
Tests/WinFormsTests/Converters.cs
Tests/WinFormsTests/Converters.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using AgateLib; using AgateLib.DisplayLib; using AgateLib.Geometry; using AgateLib.WinForms; namespace Tests.WinFormsTests { class Converters : AgateApplication, IAgateTest { public string Name { get { retur...
mit
C#
1448036f62d06bb47c9e831186d8da758152ce69
add dbtype convert
Ackara/Daterpillar
src/Daterpillar/Scripting/Translators/DbTypeConverter.cs
src/Daterpillar/Scripting/Translators/DbTypeConverter.cs
using System; using System.Data; namespace Acklann.Daterpillar.Scripting.Translators { public static class DbTypeConverter { public static DbType ToDbType(this object value) { switch (value) { case long: return DbType.Int64; case ulong: re...
mit
C#
f9d4add58019081dcc2a0a16f3ffb2e1009cf7fa
Create KnightDistance.cs
burnsba/scratch,burnsba/scratch,burnsba/scratch
KnightDistance.cs
KnightDistance.cs
public class Point { public int X { get; set; } public int Y { get; set; } public Point() { } public Point(int x, int y) { X = x; Y = y; } public static bool operator ==(Point p1, Point p2) { if (Object.ReferenceEquals(null, p1)) { re...
apache-2.0
C#
56fe0e8e13c118863de9b91e0175bd4ccbe304b4
Create RemoveMember.cs
GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples
iam/api/Access/RemoveMember.cs
iam/api/Access/RemoveMember.cs
// Copyright 2018 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
apache-2.0
C#
5a436530264de6dd5cb7e99c730870cd948e2eea
Add UsingCompletedTask.cs
devlights/try-csharp
TryCSharp.Samples/TaskParallelLibrary/UsingCompletedTask.cs
TryCSharp.Samples/TaskParallelLibrary/UsingCompletedTask.cs
using System; using System.Diagnostics; using System.Threading.Tasks; using TryCSharp.Common; namespace TryCSharp.Samples.TaskParallelLibrary { /// <summary> /// Task.CompletedTask プロパティについてのサンプルです。 /// </summary> /// <remarks> /// https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks...
mit
C#
095914587be309e578e69f5a8ad2509f128f0424
Add InstituteController
denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs
src/Diploms.WebUI/Controllers/InstitutesController.cs
src/Diploms.WebUI/Controllers/InstitutesController.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Diploms.Core; using Diploms.Dto; using Diploms.Dto.Institutes; using Diploms.Services.Institutes; namespace Diploms.WebUI.Controllers { [Route("api/[controller]")] public class...
mit
C#
fd55f7127cacd0d5f307324b8ca249e1a20c731b
Add generator test for REPEAT
steven-r/Oberon0Compiler
Oberon0.Generator.Msil.Tests/Statements/StatementTests.cs
Oberon0.Generator.Msil.Tests/Statements/StatementTests.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Oberon0.Generator.Msil.Tests.Statements { using System.IO; using NUnit.Framework; using Oberon0.Compiler; using Oberon0.Compiler.Definitions; [TestFixture] public cl...
mit
C#
3641d2fcc092fceb32550972264a898301998f95
Create a `HostConfig` struct
ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework
osu.Framework/HostConfig.cs
osu.Framework/HostConfig.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 { public struct HostConfig { public string GameName { get; set; } public bool BindIPC { get; set; } public bool Po...
mit
C#
cf6269da364dd2fd7993349b2dff101d81d72e75
Make base system
rds1983/Myra
src/Myra/Systems/BaseSystem.cs
src/Myra/Systems/BaseSystem.cs
using Myra.Graphics2D.UI; namespace Myra.Systems { public abstract class BaseSystem : ISystem { public Desktop Desktop { get; set; } public virtual void OnWidgetAddedToDesktop(Widget widget) { } public abstract void Update(); } }
mit
C#
78cf27b445b2d79724bc86dbdb3560d3b537d5b6
Fix Windows file format issues
lifebeyondfife/Decider
Csp/BaseTypes/MetaExpression.cs
Csp/BaseTypes/MetaExpression.cs
/* Copyright © Iain McDonald 2010-2019 This file is part of Decider. Unlike the Expression type which is wholly supported on its own, the MetaExpression relies on the values of other supporting variables. Thus, if those variables change, the bounds of the MetaExpression need to be re-evaluated. *...
mit
C#
f59c2d0e47fb7b76d1ae97e929da5f3840b59856
add enum of possible actions on websockets
PedDavid/qip,PedDavid/qip,PedDavid/qip
Server/API/WebSockets/Action.cs
Server/API/WebSockets/Action.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace API.WebSockets { public enum Action { PING, CREATE_IMAGE, DELETE_IMAGE, ALTER_IMAGE, CREATE_LINE, DELETE_LINE, ALTER_LINE } }
mit
C#
99ad8442da3e669a6d1ca89eb10289557f46b1cd
add Webhook_Tests
vinhch/BizwebSharp
test/BizwebSharp.Tests.xUnit/CustomCollection_Tests.cs
test/BizwebSharp.Tests.xUnit/CustomCollection_Tests.cs
using System; using System.Threading.Tasks; using BizwebSharp.Entities; using BizwebSharp.Infrastructure; using BizwebSharp.Services; using Xunit; using System.Linq; using System.Net; namespace BizwebSharp.Tests.xUnit { [Trait("Category", "CustomCollection")] public class CustomCollection_Tests : IClassFixtur...
mit
C#
c97ddc9556eed4ac55065294432f6f0f8047cabc
add command facade implementation for brand
wilcommerce/Wilcommerce.Catalog
src/Wilcommerce.Catalog/Commands/CatalogCommandsFacade.cs
src/Wilcommerce.Catalog/Commands/CatalogCommandsFacade.cs
using System; using System.Threading.Tasks; using Wilcommerce.Core.Common.Domain.Models; using Wilcommerce.Catalog.Commands.Brand; using Wilcommerce.Catalog.Commands.Brand.Handlers.Interfaces; namespace Wilcommerce.Catalog.Commands { public class CatalogCommandsFacade : ICatalogCommandsFacade { #regio...
mit
C#
9c6bb3587ebe3226406896ae9be874f1e3fa3c43
Create accordion.cshtml
go4web/Umbraco-Snippets
accordion.cshtml
accordion.cshtml
@{ var selection = Model.Content.Children().Where("Visible"); } @if(selection.Any()){ <div class="row"> <div class="large-8 columns"> <div class="accordion"> <ul> @foreach(var page in selection){ <li> <p class="title"> <a href='#' class="head">@Html.Raw(page.Get...
mit
C#
a9264aa457c6b20bfdd7b7502cc050cb07288d56
Make alerts dismissable in TheAdmin theme (#5587)
xkproject/Orchard2,OrchardCMS/Brochard,stevetayloruk/Orchard2,petedavis/Orchard2,xkproject/Orchard2,stevetayloruk/Orchard2,petedavis/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2,xkproject/Orchard2,xkproject/Orchard2,petedavis/Orchard2,stevetayloruk/Orchard2,xkproject/Orchard2,OrchardCMS/Brochard,OrchardCMS/Br...
src/OrchardCore.Themes/TheAdmin/Views/Message.cshtml
src/OrchardCore.Themes/TheAdmin/Views/Message.cshtml
<div class="alert alert-warning alert-dismissible fade show" role="alert"> @Model.Message <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">&times;</span> </button> </div>
bsd-3-clause
C#
8b2015ba3872b6db4a019de0c4544223ebfe4e7e
Fix ZeroMeasurementHelper for dry mode case, fixes #943
Ky7m/BenchmarkDotNet,PerfDotNet/BenchmarkDotNet,alinasmirnova/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,alinasmirnova/BenchmarkDotNet,Ky7m/BenchmarkDotNet,PerfDotNet/BenchmarkDotNet,adamsitnik/BenchmarkDotNet,alinasmirnova/BenchmarkDotNet,adamsitnik/BenchmarkDotNet,alinasmirnova/BenchmarkDotNet,ig-sinicyn/BenchmarkDot...
src/BenchmarkDotNet/Analysers/ZeroMeasurementHelper.cs
src/BenchmarkDotNet/Analysers/ZeroMeasurementHelper.cs
using BenchmarkDotNet.Mathematics.StatisticalTesting; namespace BenchmarkDotNet.Analysers { public static class ZeroMeasurementHelper { /// <summary> /// Checks distribution against Zero Measurement hypothesis in case of known threshold /// </summary> /// <returns>True if measur...
using BenchmarkDotNet.Mathematics.StatisticalTesting; namespace BenchmarkDotNet.Analysers { public static class ZeroMeasurementHelper { /// <summary> /// Checks distribution against Zero Measurement hypothesis in case of known threshold /// </summary> /// <returns>True if measur...
mit
C#
42c6408990207d4f47d1495bcb0e2b9b2fb7e89e
Add DoubleQuoteParser
StevenLiekens/TextFx,StevenLiekens/Txt
src/Txt.ABNF/Core/DQUOTE/DoubleQuoteParser.cs
src/Txt.ABNF/Core/DQUOTE/DoubleQuoteParser.cs
using Txt.Core; namespace Txt.ABNF.Core.DQUOTE { public class DoubleQuoteParser : Parser<DoubleQuote, char> { protected override char ParseImpl(DoubleQuote value) { return value.Text[0]; } } }
mit
C#
a776cbe1b544d83e4fa1a3cb80d5b7309b7b3b5b
Improve anti-Reflector
JPVenson/ConfuserEx,KKKas/ConfuserEx,modulexcite/ConfuserEx,yeaicc/ConfuserEx,farmaair/ConfuserEx,Desolath/Confuserex,Desolath/ConfuserEx3,JPVenson/ConfuserEx,jbeshir/ConfuserEx,mirbegtlax/ConfuserEx,apexrichard/ConfuserEx,Immortal-/ConfuserEx,AgileJoshua/ConfuserEx,manojdjoshi/ConfuserEx,arpitpanwar/ConfuserEx,timnboy...
Confuser.Renamer/RickRoller.cs
Confuser.Renamer/RickRoller.cs
using System; using System.Linq; using Confuser.Core; using Confuser.Core.Services; using dnlib.DotNet; using dnlib.DotNet.Emit; namespace Confuser.Renamer { // For my dearest Reflector devs, this is my Christmas present. public static class RickRoller { const string Injection = "\"onclick=\"return(false);\"style...
using System; using System.Linq; using Confuser.Core; using Confuser.Core.Services; using dnlib.DotNet; using dnlib.DotNet.Emit; namespace Confuser.Renamer { // For my dearest Reflector devs, this is my Christmas present. public static class RickRoller { const string Injection = "\"onclick=\"return(false);\"style...
mit
C#
773f8d6e8ec38b28b7d5aae5fc724ff329abb495
Add PidProcess class
lou1306/CIV,lou1306/CIV
CIV.Ccs/Processes/PidProcess.cs
CIV.Ccs/Processes/PidProcess.cs
using System; using System.Collections.Generic; using CIV.Interfaces; namespace CIV.Ccs { public class PidProcess : CcsProcess { public CcsProcess Inner { get; set; } public string Pid { get; set; } public override bool Equals(CcsProcess other) { var otherPid = oth...
mit
C#
c9fda09ea14871c85580e8a40551b247e50d27d0
Create LetterCombinations.cs
shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/hackerrank
interim/LetterCombinations.cs
interim/LetterCombinations.cs
/* Based on question at https://leetcode.com/problems/letter-combinations-of-a-phone-number/?tab=Description * high memory consumption to be fixed */ public class Solution { public List<string> LetterCombinations(string digits) { Dictionary<char, char[]> map = new Dictionary<char, char[]>(){ {'1',...
mit
C#
7712d0ee014eacb7d169a6900b7d1ffcdd4b3eff
Implement calculation of absolute position in the document text, given a line and column number.
tintoy/msbuild-project-tools-vscode,tintoy/msbuild-project-tools-vscode
src/LanguageServer.Engine/Utilities/TextPositions.cs
src/LanguageServer.Engine/Utilities/TextPositions.cs
using System; using MSBuildProjectTools.LanguageServer.XmlParser; namespace MSBuildProjectTools.LanguageServer.Utilities { /// <summary> /// A quick-and-dirty calculator for text positions. /// </summary> /// <remarks> /// This could easily be improved by also storing a character sub-total ...
mit
C#
576a2ae95f02b600003f13872bffe2e7485732f8
Add MemoryString
SaxxonPike/roton,SaxxonPike/roton
Roton/Emulation/MemoryString.cs
Roton/Emulation/MemoryString.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Roton.Emulation { sealed internal class MemoryString { public static implicit operator string(MemoryString source) { return source.ToString(); } public MemoryString(Memo...
isc
C#
ca17efbc29b2b317d518d28f39f79776901c8e9e
Add missing file
btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver
BTCPayServer/Hosting/HeadersOverrideMiddleware.cs
BTCPayServer/Hosting/HeadersOverrideMiddleware.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Configuration; using BTCPayServer.Configuration; namespace BTCPayServer.Hosting { public class HeadersOverrideMiddleware { RequestDelegate _Next;...
mit
C#
7cffabf7f931c367eb02ce8a0fc40342d5f6122d
Introduce PreviewTrackManager
smoogipoo/osu,2yangk23/osu,johnneijzen/osu,UselessToucan/osu,ppy/osu,2yangk23/osu,ZLima12/osu,smoogipooo/osu,EVAST9919/osu,ZLima12/osu,peppy/osu,ppy/osu,NeoAdonis/osu,naoey/osu,UselessToucan/osu,DrabWeb/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,ppy/osu,EVAST9919/osu,naoey/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,N...
osu.Game/Audio/PreviewTrackManager.cs
osu.Game/Audio/PreviewTrackManager.cs
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Allocation; using osu.Framework.Audio; using osu.Framework.Audio.Track; using osu.Framework.Configuration; using osu.Framework.IO.Stores; namespace...
mit
C#
5dc3906ac2e442a5744b6f4e1f7a51579b6b0846
Add ongoing new MIDI Access API which is similar to Web MIDI API.
atsushieno/managed-midi
lib/base/MidiAccessManager.cs
lib/base/MidiAccessManager.cs
using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Commons.Music.Midi { public abstract class MidiAccessManager { static MidiAccessManager () { Default = new EmptyMidiAccess (); /* try { Default = new RtMidiAccess (); } catch (Exception) { Default = new Po...
mit
C#
538382dadf1dd2c5a5cb95ba8145379cebbc9886
Create RouteDetail.cs
MingLu8/Nancy.WebApi.HelpPages
src/Nancy.WebApi.HelpPages.Demo/HelpPage/RouteDetail.cs
src/Nancy.WebApi.HelpPages.Demo/HelpPage/RouteDetail.cs
using System; using System.Collections.Generic; using System.Linq; using Nancy.WebApi.Help; using Newtonsoft.Json; using WebApplication1.Areas.HelpPage; using WebApplication1.Areas.HelpPage.ModelDescriptions; namespace Nancy.WebApi.Demo { public class RouteDetail { private readonly RouteInfo _routeInfo...
mit
C#
6b0f3674c320f345caaff0068f6c00bfebdafb22
implement `LegacySongProgress`
peppy/osu,ppy/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu
osu.Game/Skinning/LegacySongProgress.cs
osu.Game/Skinning/LegacySongProgress.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using System; using System.Linq; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; using osu.Framework.Graph...
mit
C#
543d11c204b4cf9b23b15660135945be947ff3fe
Add route graph example
jchannon/Botwin
samples/CarterSample/Features/Graph/GraphModule.cs
samples/CarterSample/Features/Graph/GraphModule.cs
namespace CarterSample.Features.Graph { using System.IO; using Carter; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; using Microsoft.AspNetCore.Routing.Internal; public class GraphModule : CarterModule { private readonly DfaGraphWriter graphWriter; pr...
mit
C#
cbb7eda706580117d5603a01546cc4c8d7d76fa0
Copy CompositeAlphaModel.cs
StefanoRaggi/Lean,kaffeebrauer/Lean,Jay-Jay-D/LeanSTP,QuantConnect/Lean,Jay-Jay-D/LeanSTP,StefanoRaggi/Lean,StefanoRaggi/Lean,QuantConnect/Lean,jameschch/Lean,jameschch/Lean,AlexCatarino/Lean,JKarathiya/Lean,Jay-Jay-D/LeanSTP,JKarathiya/Lean,Jay-Jay-D/LeanSTP,AlexCatarino/Lean,kaffeebrauer/Lean,kaffeebrauer/Lean,JKarat...
Algorithm.Framework/Risk/CompositeRIskModel.cs
Algorithm.Framework/Risk/CompositeRIskModel.cs
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of...
apache-2.0
C#
adcef19ab25953f003bc150654798f82e739a7d4
Add coverage for operation tracker with failing tests
UselessToucan/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,smoogipooo/osu,ppy/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,peppy/osu-new,smoogipoo/osu,smoogipoo/osu
osu.Game.Tests/NonVisual/OngoingOperationTrackerTest.cs
osu.Game.Tests/NonVisual/OngoingOperationTrackerTest.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.Bindables; using osu.Framework.Testing; using osu.Game.Screens.OnlinePlay; using osu.Game.Tests.Visual; namespac...
mit
C#
b3694f590b27f8f0cade28df4f8d2179c80784df
Create ConnectionListenerTest
unosquare/swan
test/Unosquare.Swan.Test/ConnectionListenerTest.cs
test/Unosquare.Swan.Test/ConnectionListenerTest.cs
using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Threading.Tasks; using Unosquare.Swan.Networking; namespace Unosquare.Swan.Test { [TestFixture] public class ConnectionListenerTest { private Connectio...
mit
C#
8115d965ee1f148bc04d91ca0b42f9623de93c9a
add a edit.cs file
pyufftj/codes
unity/edit.cs
unity/edit.cs
/** * *在Unity3D中,我们经常会需要在本地或者服务器上读取游戏数据,这几篇blog记录下目前知道的两种读取数据表的方式。一种是在Resource目录下通过TextAsset读取,一种是通过文件流的方式读取。Resource 下的数据是不能修改的,比如单机游戏的装备,NPC数据等;而文件流的方式是存和取数据,比如保存游戏进度等。 写这个code snippet时,我一开始用resources文件夹下面的内容更新文本,结果发现永远不会成功,这是因为unity打包时,将这个文件一起打包成一个总的文件,所以不能更新它,只能读取它,要样实现更新,只能将该文件放在resources目录外的位置,如streamingAsse...
mit
C#
e2bb92eeec7982f9d9eb7abfa4b0cbcccfb8e1b8
Revert "Start on v0.6"
BurningEnlightenment/libsodium-net,deckar01/libsodium-net,bitbeans/libsodium-net,fraga/libsodium-net,bitbeans/libsodium-net,adamcaudill/libsodium-net,tabrath/libsodium-core,fraga/libsodium-net,deckar01/libsodium-net,BurningEnlightenment/libsodium-net,adamcaudill/libsodium-net
libsodium-net/Properties/AssemblyInfo.cs
libsodium-net/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("li...
using System.Reflection; 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("libsodium-net")] [assembly: AssemblyDescr...
mit
C#
3c5008f94c20a968e6248dd0e5dcad74c649722d
Add test
peppy/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,johnneijzen/osu,smoogipoo/osu,ppy/osu,peppy/osu-new,2yangk23/osu,UselessToucan/osu,johnneijzen/osu,ppy/osu,NeoAdonis/osu,peppy/osu,EVAST9919/osu,EVAST9919/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,2yangk23/osu,smoogipoo/osu,UselessToucan/osu
osu.Game.Tests/Visual/Online/TestSceneFavouriteButton.cs
osu.Game.Tests/Visual/Online/TestSceneFavouriteButton.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.Testing; using osu.Game.Beatmaps; using osu.Game.Overlays.BeatmapSet.Buttons; namespace osu.Game.Tests.Visual.Online { pub...
mit
C#
c2e62cd7fab18304700407d7e228aa8c74c656c5
Add Missing File
Cybermaxs/Redists
src/Redists/Core/DynamicRecordParser.cs
src/Redists/Core/DynamicRecordParser.cs
using System; using System.Linq; namespace Redists.Core { internal class DynamicRecordParser : IRecordParser { #region publics public Record[] ParseRawString(string raw) { return ParseDynamic(raw); } public Record Deserialize(string rawRecord) { ...
mit
C#
9244a3954ce259749fdfe7e05505f0b7eb4defac
Add Q173
txchen/localleet
csharp/Q173_BinarySearchTreeIterator.cs
csharp/Q173_BinarySearchTreeIterator.cs
using System; using System.Collections.Generic; using System.Linq; using Xunit; // Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. // // Calling next() will return the next smallest number in the BST. // // Note: next() and hasNext() should run in a...
mit
C#
ffe6f547734ff252e64c7b0469c759b756f0d0ed
Add missing file
Ninputer/VBF
src/Compilers/Compilers.Parsers/DefaultValueContainer.cs
src/Compilers/Compilers.Parsers/DefaultValueContainer.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using VBF.Compilers.Scanners; namespace VBF.Compilers.Parsers { class DefaultValueContainer<T> { static DefaultValueContainer() { if (typeof(T) == typeof(Lexeme)) ...
apache-2.0
C#
9c7d66d4e36f55655a865a38af96f297f05aab36
move upload to authenticated API
0xFireball/PenguinUpload,0xFireball/PenguinUpload,0xFireball/PenguinUpload,0xFireball/PenguinUpload
PenguinUpload/src/PenguinUpload/PenguinUploadBootstrapper.cs
PenguinUpload/src/PenguinUpload/PenguinUploadBootstrapper.cs
$HEADER$namespace $NAMESPACE$ { public class $CLASS$ {$END$} }
apache-2.0
C#
e9e861f6fb2c412bc70b9a5fafbfebf8dcde114a
Add stress test
justcoding121/Titanium-Web-Proxy
tests/Titanium.Web.Proxy.IntegrationTests/StressTests.cs
tests/Titanium.Web.Proxy.IntegrationTests/StressTests.cs
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.VisualStudio.TestTools.UnitTesting; using Titanium.Web.Proxy.Models; namespace Titanium.Web.Proxy.Integra...
mit
C#
7e9fa4d18177396e3c4a2d0c3a47f5f157c73963
add untracked files
PFC-acl-amg/GamaPFC,PFC-acl-amg/GamaPFC,PFC-acl-amg/GamaPFC
GamaPFC/Gama.Atenciones.Wpf/Eventos/PersonaCreadaEvent.cs
GamaPFC/Gama.Atenciones.Wpf/Eventos/PersonaCreadaEvent.cs
using Prism.Events; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Gama.Atenciones.Wpf.Eventos { public class PersonaCreadaEvent : PubSubEvent<int> { } }
mit
C#
8fbb7bc9b4f75cc2f2cdf4d217726f23bfc4b795
Enable editor factory test
AlexanderSher/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,MikhailArkhipo...
src/Package/Test/Package/RPackageTest.cs
src/Package/Test/Package/RPackageTest.cs
using System; using System.Diagnostics.CodeAnalysis; using Microsoft.Languages.Core.Test.Utility; using Microsoft.Languages.Editor.Shell; using Microsoft.Languages.Editor.Tests.Shell; using Microsoft.VisualStudio.R.Package.Test.Utility; using Microsoft.VisualStudio.R.Packages.R; using Microsoft.VisualStudio.TestTools....
using System; using System.Diagnostics.CodeAnalysis; using Microsoft.Languages.Core.Test.Utility; using Microsoft.Languages.Editor.Shell; using Microsoft.Languages.Editor.Tests.Shell; using Microsoft.VisualStudio.R.Package.Test.Utility; using Microsoft.VisualStudio.R.Packages.R; using Microsoft.VisualStudio.TestTools....
mit
C#
252f2a079aee9b69097f28c50594484a2a65b0ef
Update XML code comments slightly.
jamiegaines/NEventStore,chris-evans/NEventStore,paritoshmmmec/NEventStore,D3-LucaPiombino/NEventStore,adamfur/NEventStore,NEventStore/NEventStore,AGiorgetti/NEventStore,gael-ltd/NEventStore,marcoaoteixeira/NEventStore,deltatre-webplu/NEventStore,nerdamigo/NEventStore
src/proj/EventStore.Core/Persistence/CommitTracker.cs
src/proj/EventStore.Core/Persistence/CommitTracker.cs
namespace EventStore.Persistence { using System; using System.Collections.Generic; /// <summary> /// Tracks the commits for a set of streams to determine if a particular commit has already /// been committed thus relaxing the requirements upon the persistence engine as well as /// reducing latency by avoiding ne...
namespace EventStore.Persistence { using System; using System.Collections.Generic; /// <summary> /// Tracks the commits for a set of streams to determine if a particular commit has already /// been committed thus relaxing the requirements upon the persistence engine as well as /// lowering latency by avoiding ne...
mit
C#
8d9e0b0d44b0fc9926f34396060e730775780098
Add FrameTimingMonitor: dumps average frame timings to console
virtuallynaked/virtually-naked,virtuallynaked/virtually-naked
Viewer/src/viewer/FrameTimingMonitor.cs
Viewer/src/viewer/FrameTimingMonitor.cs
using System; using System.Collections.Generic; using Valve.VR; public class FrameTimingMonitor { private const int ReportRate = 50; private const int QueueCapacity = 1000; private int frameCount = 0; private readonly Queue<float> timingsQueue = new Queue<float>(QueueCapacity); private double totalInQueue = 0; ...
mit
C#
12e8107492530dd3829a64b728c43b514173ba92
Add example
github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql
csharp/ql/src/experimental/ServiceStack/XSS/XSS.cs
csharp/ql/src/experimental/ServiceStack/XSS/XSS.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using ServiceStack; using ServiceStack.Web; using SqlServer.ServiceModel; namespace SqlServer.ServiceInterface { public class MyServices : Service { // public object Any(Hello request) // { // retur...
mit
C#
1010ca6be6ba3f73e4a616e3eb1165d67819448f
add test runner
BigBabay/AsyncConverter,BigBabay/AsyncConverter
AsyncConverter.Tests/QuickFixes/AsyncWaitQuickFixTests.cs
AsyncConverter.Tests/QuickFixes/AsyncWaitQuickFixTests.cs
using AsyncConverter.QuickFixes; namespace AsyncConverter.Tests.QuickFixes { public class AsyncWaitQuickFixTests : QuickFixBaseTests<AsyncWaitQuickFix> { protected override string Folder => @"AsyncWait"; } }
mit
C#
791ebeb63393dcd0be93c336c936c43ba7335d5b
Add static file options startup sample
sergeysolovev/webpack-aspnetcore,sergeysolovev/webpack-aspnetcore,sergeysolovev/webpack-aspnetcore
samples/WebApp/StartupWithStaticFileOptions.cs
samples/WebApp/StartupWithStaticFileOptions.cs
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.StaticFiles; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace WebApp { /// <summary> /// Startup configuration example with use...
mit
C#
1d986015d1f3f98db586c5edb796a3af5c0ef626
Add AssemblyInfo file
difi/sikker-digital-post-klient-dotnet
Difi.SikkerDigitalPost.Klient.Docs/Properties/AssemblyInfo.cs
Difi.SikkerDigitalPost.Klient.Docs/Properties/AssemblyInfo.cs
using System.Reflection; [assembly: AssemblyTitle("Difi.SikkerDigitalPost.Klient.Docs")]
apache-2.0
C#
0a8e533d8af7b7c2c6ab295ce0b3cb6efbfd23be
Create SaveSentMailToSentFolder.cs
jstedfast/MailKit,jamie-dainton/MailKit
SaveSentMailToSentFolder.cs
SaveSentMailToSentFolder.cs
//Thanks to jstedfast public static void SaveSentMailToSentFloder(MimeMessage msg) { ImapClient client = new ImapClient(); client.Connect(Server, ReceivePort,SecureSocketOptions.None); client.AuthenticationMechanisms.Remove("XOAUTH2"); ...
mit
C#
aca2e7426757613bfd5d39604f634c18ba53c037
move DataAuditLogAttribute to Serenity.Net.Data
volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity
src/Serenity.Net.Data/Mapping/DataAuditLogAttribute.cs
src/Serenity.Net.Data/Mapping/DataAuditLogAttribute.cs
using System; namespace Serenity.Data { /// <summary> /// Indicates that the entity should be audit logged. /// This feature is only available in premium app. /// </summary> /// <seealso cref="System.Attribute" /> public class DataAuditLogAttribute : Attribute { /// <sum...
mit
C#
ea52aa0c7c38bebe704b97c4609e9eb06af15064
Introduce a LabelProjections struct to bundle StepLabel-mappings.
ExRam/ExRam.Gremlinq
src/ExRam.Gremlinq.Core/Queries/LabelProjections.cs
src/ExRam.Gremlinq.Core/Queries/LabelProjections.cs
using ExRam.Gremlinq.Core.Projections; namespace ExRam.Gremlinq.Core { public readonly struct LabelProjections { public LabelProjections(Projection? stepLabelProjection, Projection? sideEffectLabelProjection) { StepLabelProjection = stepLabelProjection; SideEffectLabelP...
mit
C#
1676b9e10e9061e03074f925c3d448a07fce4568
Update link to SharpaDoc on github
SiliconStudio/SharpDoc,xoofx/SharpDoc,SiliconStudio/SharpDoc,SiliconStudio/SharpDoc,Robmaister/SharpDoc,xoofx/SharpDoc,xoofx/SharpDoc,Robmaister/SharpDoc,Robmaister/SharpDoc
src/SharpDoc/Styles/Standard/html/PageFooter.cshtml
src/SharpDoc/Styles/Standard/html/PageFooter.cshtml
@* // Copyright (c) 2010-2013 SharpDoc - Alexandre Mutel // // 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, ...
@* // Copyright (c) 2010-2013 SharpDoc - Alexandre Mutel // // 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, ...
mit
C#
ca86b2677f3daa47686347d6a8115d05bf883ea6
Create TestPlayerClass.cs
Minesweeper-6-Team-Project-Telerik/Minesweeper-6
src2/Minesweeper.Test/Models/TestPlayerClass.cs
src2/Minesweeper.Test/Models/TestPlayerClass.cs
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Minesweeper.Test.Models { using Minesweeper.Models; using Minesweeper.Models.Exceptions; [TestClass] class TestPlayerClass { [TestMethod] [ExpectedException(typeof(ArgumentNullException))] public vo...
mit
C#
b15a3893069f0b5d77cca94063ef3e9407c080eb
remove unused field
segrived/VSE-FormatDocumentOnSave,Elders/VSE-FormatDocumentOnSave
src/NMSD.VSE-FormatDocumentOnSave/FormatDocumentOnSave.cs
src/NMSD.VSE-FormatDocumentOnSave/FormatDocumentOnSave.cs
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Linq; using EnvDTE; namespace NMSD.VSE_FormatDocumentOnSave { internal class FormatDocumentOnSave { private static bool shouldRegisterFormatDocumentOnSave = true; priv...
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Linq; using EnvDTE; namespace NMSD.VSE_FormatDocumentOnSave { internal class FormatDocumentOnSave { private CommandEvents commandEvents; private static bool shouldRe...
apache-2.0
C#
92e2940d2d15a7d80861abfe75416185ea93955a
Make sure async API tests are testing what we think they’re testing
mjedrzejek/nunit,appel1/nunit,mikkelbu/nunit,NikolayPianikov/nunit,JustinRChou/nunit,JustinRChou/nunit,nunit/nunit,OmicronPersei/nunit,mjedrzejek/nunit,NikolayPianikov/nunit,nunit/nunit,appel1/nunit,OmicronPersei/nunit,mikkelbu/nunit
src/NUnitFramework/tests/AsyncExecutionApiAdapterTests.cs
src/NUnitFramework/tests/AsyncExecutionApiAdapterTests.cs
// *********************************************************************** // Copyright (c) 2018 Charlie Poole, Rob Prouse // // 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 restri...
mit
C#
0dab3cb5d38a2788f6b1a7101e4fcfe23eb5f317
add Kernel1AOfUInt32Test
takuya-takeuchi/DlibDotNet,takuya-takeuchi/DlibDotNet,takuya-takeuchi/DlibDotNet,takuya-takeuchi/DlibDotNet
test/DlibDotNet.Tests/Queue/Kernel1AOfUInt32Test.cs
test/DlibDotNet.Tests/Queue/Kernel1AOfUInt32Test.cs
using Microsoft.VisualStudio.TestTools.UnitTesting; namespace DlibDotNet.Tests.Queue { [TestClass] public class Kernel1AOfUInt32Test : TestBase { [TestMethod] public void Create() { var queue = new Queue<uint>.Kernel1A(); this.DisposeAndCheckDisposedState(...
mit
C#
cccf9b3b5426f207b41e59d3807a77aa7d5ee3c1
Add ignored request provider
Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,Glimpse/Glimpse.Pro...
src/Glimpse.Agent.Web/Options/IIgnoredRequestProvider.cs
src/Glimpse.Agent.Web/Options/IIgnoredRequestProvider.cs
using System.Collections.Generic; namespace Glimpse.Agent.Web.Options { public interface IIgnoredRequestProvider { IEnumerable<IIgnoredRequestPolicy> Policies { get; } } }
mit
C#
644855c50ab9a1b7223769078d27f52eedb7715e
Create 21.cs
rikkus/adventofcode2016,rikkus/adventofcode2016
21.cs
21.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AoC2016_21 { public static class EnumerableExtensions { public static IEnumerable<IEnumerable<T>> Batch<T>(this IEnumerable<T> source, int batchSize) { if (source == null) ...
mit
C#
0caf0551d8c6ec53f4ed9a63ac9157de9a8452e7
Update to Lock 7.9
Amialc/auth0-aspnet-owin,Amialc/auth0-aspnet-owin,auth0/auth0-aspnet-owin,auth0/auth0-aspnet-owin,Amialc/auth0-aspnet-owin,jerriep/auth0-aspnet-owin,jerriep/auth0-aspnet-owin,jerriep/auth0-aspnet-owin,auth0/auth0-aspnet-owin
examples/basic-mvc-sample/BasicMvcSample/Views/Account/Login.cshtml
examples/basic-mvc-sample/BasicMvcSample/Views/Account/Login.cshtml
@using System.Configuration; @{ ViewBag.Title = "Login"; } <div id="root" style="width: 280px; margin: 40px auto;"> </div> @Html.AntiForgeryToken() <script src="https://cdn.auth0.com/js/lock-7.9.min.js"></script> <script> if (!window.location.origin) { window.location.origin = window.location.protocol...
@using System.Configuration; @{ ViewBag.Title = "Login"; } <div id="root" style="width: 280px; margin: 40px auto;"> </div> @Html.AntiForgeryToken() <script src="https://cdn.auth0.com/js/lock-7.0.min.js"></script> <script> if (!window.location.origin) { window.location.origin = window.location.protocol...
mit
C#
dff20579be2cbeb423e78943f001ab3b9e03d46d
Sort colors
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
LeetCode/remote/sort_colors.cs
LeetCode/remote/sort_colors.cs
// https://leetcode.com/problems/sort-colors/ // // Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, // with the colors in the order red, white and blue. // // Here, we will use the integers 0, 1, and 2 to represent the color red, white, and blue...
mit
C#
4c388da050675f773b8749fe7e348f88b4455283
Implement utlity for httprequest as string
Zalodu/Schedutalk,Zalodu/Schedutalk
Schedutalk/Schedutalk/Schedutalk/Logic/HttpRequestor.cs
Schedutalk/Schedutalk/Schedutalk/Logic/HttpRequestor.cs
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace Schedutalk.Logic { class HttpRequestor { public async Task<string> getHttpRequestAsString(Func<string, HttpRequestMessage> requestTask, string input) ...
mit
C#
3dab63306f6c37d117a35ce52d46597bd3b4bebe
Create Resources.Designer.cs
nkesic/multivalue-lab,RocketSoftware/multivalue-lab,codedecay/multivalue-lab,nkesic/multivalue-lab,nkesic/multivalue-lab,nkesic/multivalue-lab,codedecay/multivalue-lab,RocketSoftware/multivalue-lab,codedecay/multivalue-lab,nkesic/multivalue-lab,codedecay/multivalue-lab,codedecay/multivalue-lab,RocketSoftware/multivalue...
U2-Toolkit/DataAdapter/Properties/Resources.Designer.cs
U2-Toolkit/DataAdapter/Properties/Resources.Designer.cs
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18052 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---...
mit
C#
7387c44416cc06f3810306f1c3ab4507267fffa7
Fix footer
Branimir123/FMI-IoT-Teamwork,Branimir123/FMI-IoT-Teamwork
SmartHive/SmartHive.Web/Views/Shared/_Layout.cshtml
SmartHive/SmartHive.Web/Views/Shared/_Layout.cshtml
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>@ViewBag.Title - SmartHive</title> @Styles.Render("~/Content/css") @Scripts.Render("~/bundles/modernizr") </head> <body> <div class="navbar navbar-inverse navbar...
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>@ViewBag.Title - SmartHive</title> @Styles.Render("~/Content/css") @Scripts.Render("~/bundles/modernizr") </head> <body> <div class="navbar navbar-inverse navbar...
mit
C#
6fe28df6742878165561a1581143e367ffaf4aae
Create KamalFarmer.cs
planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell
src/Firehose.Web/Authors/KamalFarmer.cs
src/Firehose.Web/Authors/KamalFarmer.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 KamalFarmer : IAmACommunityMember { public string FirstName => "Kamal"; public string Last...
mit
C#
78687a1931ca61cf8e54cdcd063ebaa3bf29c6d6
disable parallelization in integration tests
leotsarev/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net
src/JoinRpg.IntegrationTests/Globals.cs
src/JoinRpg.IntegrationTests/Globals.cs
using Xunit; [assembly: CollectionBehavior(DisableTestParallelization = true)]
mit
C#
754ed1ba3d0990309a2f00824d452028403d41d8
Add a public Environ interface
horia141/nvalidate,horia141/nvalidate
src/Environ.cs
src/Environ.cs
namespace NValidate { public interface Environ { Environ Add(object entity); T Get<T>(); } }
mit
C#
a1c85d2fcdc0e15360ac0d4d2b4708262a0b0c4a
Add ProtocolType enum
rockyx/dntdiag
DNT/Diag/ProtocolType.cs
DNT/Diag/ProtocolType.cs
using System; namespace DNT.Diag { public enum ProtocolType { J1850VPW, // J1805PWM, // ISO9141_2, // ISO14230, // ISO15765, // ALDL160, // ALDL8192, // KWP1281, // MikuniECU200, // MikuniECU300, // BesturnKWP // } }
apache-2.0
C#
84c5248d788eb756e2fd4116a59caca0a7a5ce53
Mark SimpleJobAttribute with AllowMultiple
alinasmirnova/BenchmarkDotNet,adamsitnik/BenchmarkDotNet,Ky7m/BenchmarkDotNet,Ky7m/BenchmarkDotNet,alinasmirnova/BenchmarkDotNet,Ky7m/BenchmarkDotNet,PerfDotNet/BenchmarkDotNet,Teknikaali/BenchmarkDotNet,PerfDotNet/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,adamsitn...
src/BenchmarkDotNet.Core/Attributes/Jobs/SimpleJobAttribute.cs
src/BenchmarkDotNet.Core/Attributes/Jobs/SimpleJobAttribute.cs
using System; using BenchmarkDotNet.Engines; using BenchmarkDotNet.Environments; using BenchmarkDotNet.Jobs; using JetBrains.Annotations; namespace BenchmarkDotNet.Attributes.Jobs { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Assembly, AllowMultiple = true)] public class SimpleJobAttribute : Job...
using BenchmarkDotNet.Characteristics; using BenchmarkDotNet.Engines; using BenchmarkDotNet.Environments; using BenchmarkDotNet.Jobs; using JetBrains.Annotations; namespace BenchmarkDotNet.Attributes.Jobs { public class SimpleJobAttribute : JobConfigBaseAttribute { private const int DefaultValue = -1;...
mit
C#
46d6cea686c615528ec7861d6b9a3587c6a2080f
Add empty Startup configuration service implementation
geeklearningio/Testavior
src/GeekLearning.Test.Integration/Environment/EmptyStartupConfigurationService.cs
src/GeekLearning.Test.Integration/Environment/EmptyStartupConfigurationService.cs
namespace GeekLearning.Test.Integration.Environment { using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using System; public class StartupConf...
mit
C#
77f3e5f63745d69603bcfcd941ff1f1a36dad78b
Create console-oef-6165.cs
Tjoosten/School,Tjoosten/School
Programmatuur/csharp/console-oef-6165.cs
Programmatuur/csharp/console-oef-6165.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace console_oef6._1._6._5 { class Program { static void Main(string[] args) { StreamReader lezer = new StreamReader("oef6165.txt"); ...
apache-2.0
C#
3edae26f2f6ab234814d3e84eff4fd72ef12c3c1
Add speciality service
denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs
src/Diploms.Services/Specialities/SpecialitiesService.cs
src/Diploms.Services/Specialities/SpecialitiesService.cs
using System; using System.Threading.Tasks; using AutoMapper; using Diploms.Core; using Diploms.Dto; using Diploms.Dto.Specialities; namespace Diploms.Services.Specialities { public class SpecialitiesService : CrudService<Speciality, SpecialityEditDto, SpecialityEditDto, SpecialityEditDto> { public Spe...
mit
C#
462fc4136bd3b69869861e580b5824786a6a672a
Add ignored request policy
zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,zanetdev/Glimpse.Pr...
src/Glimpse.Agent.Web/Framework/IIgnoredRequestPolicy.cs
src/Glimpse.Agent.Web/Framework/IIgnoredRequestPolicy.cs
using System; namespace Glimpse.Agent.Web { public class IIgnoredRequestPolicy { } }
mit
C#
bca280d9747f929437fb6b0581a0d3f1ff08776c
Add serviceable attribute to projects.
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
src/Microsoft.AspNet.Routing/Properties/AssemblyInfo.cs
src/Microsoft.AspNet.Routing/Properties/AssemblyInfo.cs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Reflection; [assembly: AssemblyMetadata("Serviceable", "True")]
apache-2.0
C#
6634880dba7e1ace623c6192e0de067986f2e572
Create RouteSummary.cs
MingLu8/Nancy.WebApi.HelpPages
src/Nancy.WebApi.HelpPages.Demo/HelpPage/RouteSummary.cs
src/Nancy.WebApi.HelpPages.Demo/HelpPage/RouteSummary.cs
namespace Nancy.WebApi.Demo { public class RouteSummary { private readonly string _helpModulePath; public HttpMethod HttpMethod { get; set; } public RouteSummary(RouteInfo routeInfo, string helpModulePath) { _helpModulePath = RouteInfo.CleanPath(helpModulePath)...
mit
C#
8b5e2e6179c0174d6f478d1f575f7455fbacc8e2
Add missing WrappedQuery.cs
Loupi/Frontenac
Blueprints/blueprints-core/Util/Wrappers/WrappedQuery.cs
Blueprints/blueprints-core/Util/Wrappers/WrappedQuery.cs
using System; using System.Collections.Generic; using System.Diagnostics.Contracts; namespace Frontenac.Blueprints.Util.Wrappers { public class WrappedQuery : IQuery { protected Func<IQuery, IEnumerable<IEdge>> EdgesSelector; protected IQuery Query; protected Func<IQuery, IEnumerable<I...
mit
C#
e1fcb431cf8c9514f9da8bf59306f5e2e4fd4131
Create HelpApi.cs
MingLu8/Nancy.WebApi.HelpPages
src/Nancy.WebApi.HelpPages.Demo/HelpPage/HelpApi.cs
src/Nancy.WebApi.HelpPages.Demo/HelpPage/HelpApi.cs
using System; using System.Collections.Generic; using System.Configuration; using System.IO; using System.Linq; using Nancy.Helpers; using Nancy.WebApi.Help; using WebApplication1.Areas.HelpPage.ModelDescriptions; namespace Nancy.WebApi.Demo { public class HelpApi : NancyModule { private IApiExplorer _...
mit
C#
bb9ffa73c1b93e407911a9a402e7f8ed65bad20d
Support meta-data to define config relationship between classes
zyborg/Zyborg.Vault,zyborg/Zyborg.Vault
client/src/Zyborg.Vault.Server/Util/ConfiguredByAttribute.cs
client/src/Zyborg.Vault.Server/Util/ConfiguredByAttribute.cs
using System; namespace Zyborg.Vault.Server.Util { /// <summary> /// This attribute allows you to specify what type is used to configure /// the behavior of another type instance, such as a service provider. /// </summary> [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = tr...
mit
C#
0f558ba5125c190fe645b3e154d399a3bed13db2
fix failed
whoisj/corefxlab,Vedin/corefxlab,stephentoub/corefxlab,Vedin/corefxlab,joshfree/corefxlab,KrzysztofCwalina/corefxlab,joshfree/corefxlab,whoisj/corefxlab,stephentoub/corefxlab,Vedin/corefxlab,hanblee/corefxlab,ericstj/corefxlab,tarekgh/corefxlab,benaadams/corefxlab,benaadams/corefxlab,ericstj/corefxlab,ericstj/corefxlab...
System.IO.Compression.Tests/BrotliPerfomanceTests.cs
System.IO.Compression.Tests/BrotliPerfomanceTests.cs
using System; using System.Collections.Generic; using System.Text; namespace System.IO.Compression.Tests { class BrotliPerfomanceTests { } }
mit
C#
eefbfdb3129bc1758b36f3af3ac4783be60c96d4
add test to show that mapped paths work
IdentityServer/IdentityServer4,IdentityServer/IdentityServer4,MienDev/IdentityServer4,MienDev/IdentityServer4,MienDev/IdentityServer4,chrisowhite/IdentityServer4,MienDev/IdentityServer4,IdentityServer/IdentityServer4,chrisowhite/IdentityServer4,IdentityServer/IdentityServer4,chrisowhite/IdentityServer4
test/IdentityServer.IntegrationTests/Pipeline/SubpathHosting.cs
test/IdentityServer.IntegrationTests/Pipeline/SubpathHosting.cs
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using System.Threading.Tasks; using Xunit; using FluentAssertions; using System.Net; using System.Collections.Generic; using IdentityServer4....
apache-2.0
C#
1f7ed621163aec8807a6f7352dc4569d1ce68bd3
Create RequestMoveObject.cs
sghaida/ADWS
ADWS/Models/RequestMoveObject.cs
ADWS/Models/RequestMoveObject.cs
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Web; namespace ADWS.Models { [DataContract] public class RequestMoveObject { [DataMember] public string ObjectName { get; set; } [DataMember] public string Ne...
apache-2.0
C#
d538295ad5712af0d7124ac4131e383219845459
Add `TestSceneOsuModRandom`
peppy/osu,ppy/osu,peppy/osu,peppy/osu,ppy/osu,ppy/osu
osu.Game.Rulesets.Osu.Tests/Mods/TestSceneOsuModRandom.cs
osu.Game.Rulesets.Osu.Tests/Mods/TestSceneOsuModRandom.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using NUnit.Framework; using osu.Game.Beatmaps; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Rulesets.Osu.Beatmaps; using osu.G...
mit
C#
75cb3fe6f4791544b9241378dee18a17a1c1df87
fix DEXP-573432
JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity
resharper/resharper-unity/src/Feature/Internal/ZoneMarker.cs
resharper/resharper-unity/src/Feature/Internal/ZoneMarker.cs
using JetBrains.Application.BuildScript.Application.Zones; namespace JetBrains.ReSharper.Plugins.Unity.Feature.Internal { [ZoneMarker] public class ZoneMarker : IRequire<IInternalVisibilityZone> { } }
apache-2.0
C#
b860c44176e3338c1e5a01eba0c67e2d03379e0a
Add Precondition
Nanabell/NoAdsHere
NoAdsHere/Common/Preconditions/RequirePermissionAttribute.cs
NoAdsHere/Common/Preconditions/RequirePermissionAttribute.cs
using System; using System.Linq; using System.Threading.Tasks; using Discord; using Discord.Commands; using Microsoft.Extensions.DependencyInjection; using MongoDB.Driver; using NoAdsHere.Database; using NoAdsHere.Database.Models.Settings; namespace NoAdsHere.Common.Preconditions { public class RequirePermissionA...
mit
C#
1b78de331b976c5eaaebba9b4b88de2a20b3945f
Add ImageValueConverter.
cube-soft/Cube.Net,cube-soft/Cube.Net,cube-soft/Cube.Net
Applications/Rss/Reader/Xui/Converters/ImageValueConverter.cs
Applications/Rss/Reader/Xui/Converters/ImageValueConverter.cs
/* ------------------------------------------------------------------------- */ // // Copyright (c) 2010 CubeSoft, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www...
apache-2.0
C#
e01ffa234c5e91a861828bf40229e513b353c8d3
Add yield return practice.
AxeDotNet/AxePractice.CSharpViaTest
src/CSharpViaTest.Collections/20_YieldReturnWillCreateStateMachine.cs
src/CSharpViaTest.Collections/20_YieldReturnWillCreateStateMachine.cs
using System; using System.Collections.Generic; using Xunit; namespace CSharpViaTest.Collections { public class YieldReturnWillCreateStateMachine { #region Please modifies the code to pass the test public IEnumerable<string> GetStringTriangle(char character, int count) { ...
mit
C#
37a5d2a21582a819abb6d7e2a6139a96ef7fa054
add test for update that returns _source and fields
RossLieberman/NEST,CSGOpenSource/elasticsearch-net,elastic/elasticsearch-net,azubanov/elasticsearch-net,UdiBen/elasticsearch-net,UdiBen/elasticsearch-net,azubanov/elasticsearch-net,RossLieberman/NEST,RossLieberman/NEST,adam-mccoy/elasticsearch-net,cstlaurent/elasticsearch-net,TheFireCookie/elasticsearch-net,TheFireCook...
src/Tests/Document/Single/Update/UpdateWithSourceApiTests.cs
src/Tests/Document/Single/Update/UpdateWithSourceApiTests.cs
using System; using System.Collections.Generic; using Elasticsearch.Net; using Nest; using Tests.Framework; using Tests.Framework.Integration; using Tests.Framework.MockData; using Xunit; using static Nest.Infer; using System.Threading.Tasks; using FluentAssertions; using System.Linq; namespace Tests.Document.Single....
apache-2.0
C#
0302ea68ff69b74de9443a802d9d46100d5107fe
Create Issue178Tests.cs
wojtpl2/ExtendedXmlSerializer,wojtpl2/ExtendedXmlSerializer,Mike-EEE/ExtendedXmlSerializer,Mike-EEE/ExtendedXmlSerializer
test/ExtendedXmlSerializer.Tests/ReportedIssues/Issue178Tests.cs
test/ExtendedXmlSerializer.Tests/ReportedIssues/Issue178Tests.cs
using System; using System.Collections; using System.Collections.Generic; using System.Xml.Linq; using ExtendedXmlSerializer.Configuration; using ExtendedXmlSerializer.ExtensionModel.Xml; using Xunit; namespace ExtendedXmlSerializer.Tests.ReportedIssues { public class Issue178Tests { [Fact] public void Verify() ...
mit
C#
e82999336198281c5224e3844eec2ad790867c02
Add LatestMavenVersionAttribute
nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke
source/Nuke.Common/Tooling/LatestMavenVersionAttribute.cs
source/Nuke.Common/Tooling/LatestMavenVersionAttribute.cs
// Copyright 2021 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE using System; using System.Linq; using System.Reflection; using JetBrains.Annotations; using Nuke.Common.IO; using Nuke.Common.Utilities; using Nuke.Common.ValueInjection; namespace ...
mit
C#
8a2884ce9aa95fdb1a38093b2ebf880d3cd1a82f
Add some tests for `AmbientObserver`
ocoanet/moq4,Moq/moq4
tests/Moq.Tests/AmbientObserverFixture.cs
tests/Moq.Tests/AmbientObserverFixture.cs
// Copyright (c) 2007, Clarius Consulting, Manas Technology Solutions, InSTEDD. // All rights reserved. Licensed under the BSD 3-Clause License; see License.txt. using System.Reflection; using System.Runtime.CompilerServices; using Xunit; namespace Moq.Tests { public class AmbientObserverFixture { [Fact] publi...
bsd-3-clause
C#
71e8355de71d274e612768e263a46fcd028cab43
Add sample of an HTTP function integration test
GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples
functions/helloworld/HelloWorld.Tests/FunctionIntegrationTest.cs
functions/helloworld/HelloWorld.Tests/FunctionIntegrationTest.cs
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
apache-2.0
C#
b2b3592dd4311379e55318da21f4105473928691
add variables/release
lvermeulen/BuildMaster.Net
src/BuildMaster.Net/Variables/Release/BuildMasterClient.cs
src/BuildMaster.Net/Variables/Release/BuildMasterClient.cs
using System.Collections.Generic; using System.Threading.Tasks; using BuildMaster.Net.Common.Models; using Flurl.Http; // ReSharper disable CheckNamespace namespace BuildMaster.Net { public partial class BuildMasterClient { public async Task<IEnumerable<Variable>> GetAllReleaseConfigurationVariables(...
mit
C#
8dd2e0a5eece5d87f8d79e7828f55c76f21a8ed7
Add mono/C# snippet
EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts
collatz/mono.cs
collatz/mono.cs
using System; namespace c { class Collatz { public static void Main (string[] args) { Console.WriteLine ("Basic collatz fun - Recursive mono/C# function"); r (15); } private static int r(int n) { Console.WriteLine (n); if (n <= 1) return n; if ((n & 1) == 1) return r (n * 3 + 1); ...
mit
C#
d3ee2a0b8ec8286d080b5ecc08b23061a82d2c72
Add test scene for visually adjusting mania `BarLine`s
ppy/osu,peppy/osu,ppy/osu,peppy/osu,peppy/osu,ppy/osu
osu.Game.Rulesets.Mania.Tests/Skinning/TestSceneBarLine.cs
osu.Game.Rulesets.Mania.Tests/Skinning/TestSceneBarLine.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using NUnit.Framework; using osu.Framework.Graphics; using osu.Game.Rulesets.Mania.Beatmaps; using osu.Game.Rulesets.Mania...
mit
C#
07d82f3ab2d90d078e43fef3c9e499a03109f031
Add assembly info.
grendizerufo/nvidia-texture-tools,fynv/nvidia-texture-tools,joechenq/nvidia-texture-tools,y2jinc/nvidia-texture-tools,joechenq/nvidia-texture-tools,dmsovetov/nvidia-texture-tools,sarbian/nvidia-texture-tools,neoragex2015/nvidia-texture-tools,sarbian/nvidia-texture-tools,neoragex2015/nvidia-texture-tools,y2jinc/nvidia-t...
project/vc8/Nvidia.TextureTools/Properties/AssemblyInfo.cs
project/vc8/Nvidia.TextureTools/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: AssemblyTi...
mit
C#