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
f538ad3138450fc42bfce27b59535b6139388872
rewrite ParsecStateStreamEnumerator
acple/ParsecSharp
ParsecSharp/Data/Internal/ParsecStateStreamEnumerator.cs
ParsecSharp/Data/Internal/ParsecStateStreamEnumerator.cs
using System; using System.Collections; using System.Collections.Generic; namespace ParsecSharp.Internal { public sealed class ParsecStateStreamEnumerator<TToken> : IEnumerator<TToken> { private readonly IParsecStateStream<TToken> _source; private IParsecStateStream<TToken> current; p...
using System; using System.Collections; using System.Collections.Generic; namespace ParsecSharp.Internal { public sealed class ParsecStateStreamEnumerator<TToken> : IEnumerator<TToken> { private IParsecStateStream<TToken> stream; public TToken Current { get; private set; } object IEnu...
mit
C#
06e6e632f3ff1c6432d282c551c388d2e8c233cf
Make AllTypesHelper public
modulexcite/dnlib,0xd4d/dnlib,yck1509/dnlib,Arthur2e5/dnlib,picrap/dnlib,ZixiangBoy/dnlib,jorik041/dnlib,kiootic/dnlib,ilkerhalil/dnlib
src/DotNet/AllTypesHelper.cs
src/DotNet/AllTypesHelper.cs
using System.Collections.Generic; namespace dot10.DotNet { /// <summary> /// Returns types without getting stuck in an infinite loop /// </summary> public struct AllTypesHelper { Dictionary<TypeDef, bool> visited; RecursionCounter recursionCounter; /// <summary> /// Gets a list of all types and nested ty...
using System.Collections.Generic; namespace dot10.DotNet { struct AllTypesHelper { Dictionary<TypeDef, bool> visited; RecursionCounter recursionCounter; /// <summary> /// Gets a list of all types and nested types /// </summary> /// <param name="types">A list of types</param> public static IEnumerable<...
mit
C#
970ef6d602acd228c45ffb97a7ba2629612cf0bb
Update AssemblyInfo.cs
Jarlotee/xCache
src/xCache.Aop.Unity/Properties/AssemblyInfo.cs
src/xCache.Aop.Unity/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("xC...
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("xC...
mit
C#
603b7bc512706e60c5a4d1a3ca5a341896d97767
Apply migrations at startup
fujiy/FujiyBlog,fujiy/FujiyBlog,fujiy/FujiyBlog
src/FujiyBlog.Web/Program.cs
src/FujiyBlog.Web/Program.cs
using FujiyBlog.Core.EntityFramework; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; namespace FujiyBlog.Web { public class Program { public static void Main(string[] args) { var w...
using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; namespace FujiyBlog.Web { public class Program { public static void Main(string[] args) { BuildWebHost(args).Run(); } public static IWebHost BuildWebHost(string[] args) => WebHost.CreateDef...
mit
C#
3ce735eef404b30c0814c28757f05ae07220fab2
Resolve field.
Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex
backend/src/Squidex.Domain.Apps.Entities/Contents/GraphQL/Middlewares.cs
backend/src/Squidex.Domain.Apps.Entities/Contents/GraphQL/Middlewares.cs
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ===========================...
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ===========================...
mit
C#
61f7b7d00e433f5660be9e015f7e5660f3545714
Remove unused code
DataGenSoftware/DataGen.Validation
DataGen.Validation.UnitTests/ValidationRuleTests.cs
DataGen.Validation.UnitTests/ValidationRuleTests.cs
using NSubstitute; using NUnit.Framework; using System.Collections.Generic; using System.Linq; using Validation.Contracts; using Validation.Model; using Validation.Providers; namespace DataGen.Validation.UnitTests { [TestFixture] public class ValidationRuleTests { [Test] public void Valuda...
using NSubstitute; using NUnit.Framework; using System.Collections.Generic; using System.Linq; using Validation.Contracts; using Validation.Model; using Validation.Providers; namespace DataGen.Validation.UnitTests { [TestFixture] public class ValidationRuleTests { [Test] public void Valuda...
mit
C#
58fc0a2622b52277fc333cecef99ac4fe2b0b19c
Make TabControl test label more clear
DrabWeb/osu,ppy/osu,ZLima12/osu,peppy/osu-new,nyaamara/osu,UselessToucan/osu,peppy/osu,EVAST9919/osu,ppy/osu,naoey/osu,ppy/osu,ZLima12/osu,Damnae/osu,smoogipoo/osu,Drezi126/osu,peppy/osu,NeoAdonis/osu,osu-RP/osu-RP,DrabWeb/osu,smoogipoo/osu,johnneijzen/osu,peppy/osu,Nabile-Rahmani/osu,NeoAdonis/osu,naoey/osu,2yangk23/o...
osu.Desktop.VisualTests/Tests/TestCaseTabControl.cs
osu.Desktop.VisualTests/Tests/TestCaseTabControl.cs
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using OpenTK; using osu.Framework.Graphics.Primitives; using osu.Framework.Screens.Testing; using osu.Game.Graphics.Sprites; using osu.Game.Graphics.UserInterfac...
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Diagnostics; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Primitives; using osu.Framework.Scr...
mit
C#
5c02c4b027231eb863799a15fc76a3a927d61aa6
Add artificial wait to fix tests
JosephWoodward/GlobalExceptionHandlerDotNet,JosephWoodward/GlobalExceptionHandlerDotNet
src/GlobalExceptionHandler.Tests/WebApi/LoggerTests/LogExceptionTests.cs
src/GlobalExceptionHandler.Tests/WebApi/LoggerTests/LogExceptionTests.cs
using System; using System.Net.Http; using System.Threading.Tasks; using GlobalExceptionHandler.Tests.WebApi.Fixtures; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.TestHost; using Shouldly; using Xunit; namespace GlobalExceptionHand...
using System; using System.Net.Http; using System.Threading.Tasks; using GlobalExceptionHandler.Tests.WebApi.Fixtures; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.TestHost; using Shouldly; using Xunit; namespace GlobalExceptionHand...
mit
C#
e8de7c58fccc0406e192e9cfe38158cc8ff21aa1
Expand interface to meet requests at http://forum.botengine.de/t/new-fighters/85/29 and http://forum.botengine.de/t/new-fighters/85/31 and http://forum.botengine.de/t/new-fighters/85/36
bozoweed/Sanderling,Arcitectus/Sanderling,exodus444/Sanderling
src/Sanderling.Interface/Sanderling.Interface/MemoryStruct/SquadronUI.cs
src/Sanderling.Interface/Sanderling.Interface/MemoryStruct/SquadronUI.cs
using System; using System.Collections.Generic; namespace Sanderling.Interface.MemoryStruct { public interface ISquadronsUI { IEnumerable<ISquadronUI> SetSquadron { get; } IUIElement LaunchAllButton { get; } IUIElement OpenBayButton { get; } IUIElement RecallAllButton { get; } } public interface ISqua...
using System; using System.Collections.Generic; namespace Sanderling.Interface.MemoryStruct { public interface ISquadronsUI { IEnumerable<ISquadronUI> SetSquadron { get; } IUIElement LaunchAllButton { get; } IUIElement OpenBayButton { get; } IUIElement RecallAllButton { get; } } public interface ISqua...
apache-2.0
C#
c93dcd003d5157511eaf1884064f0e8a0f18ab55
Fix content headers
DBCG/Dataphor,DBCG/Dataphor,DBCG/Dataphor,DBCG/Dataphor,DBCG/Dataphor,DBCG/Dataphor
Dataphoria/Dataphoria.Web.FHIR/Models/FhirMediaType.cs
Dataphoria/Dataphoria.Web.FHIR/Models/FhirMediaType.cs
using Hl7.Fhir.Model; using Hl7.Fhir.Rest; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Web; namespace Alphora.Dataphor.Dataphoria.Web.FHIR.Models { public static class FhirMediaType { // API: This class ca...
using Hl7.Fhir.Model; using Hl7.Fhir.Rest; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Web; namespace Alphora.Dataphor.Dataphoria.Web.FHIR.Models { public static class FhirMediaType { // API: This class ca...
bsd-3-clause
C#
9ca4bbfdc7b0792d18c6eb00c1536ae7d49f69eb
refactor index display and counter
hatelove/MyMvcHomework,hatelove/MyMvcHomework,hatelove/MyMvcHomework
MyMoney/MyMoney/Views/Accounting/ShowHistory.cshtml
MyMoney/MyMoney/Views/Accounting/ShowHistory.cshtml
@model IEnumerable<MyMoney.Models.ViewModels.AccountingViewModel> <table class="table table-bordered table-hover"> <tr> <th>#</th> <th> @Html.DisplayNameFor(model => model.Type) </th> <th> @Html.DisplayNameFor(model => model.Amount) </th> <th...
@model IEnumerable<MyMoney.Models.ViewModels.AccountingViewModel> <table class="table table-bordered table-hover"> <tr> <th>#</th> <th> @Html.DisplayNameFor(model => model.Type) </th> <th> @Html.DisplayNameFor(model => model.Amount) </th> <th...
mit
C#
f189b7078710c62d543e70aa5228421c892a2650
Implement of PSCredential
WimObiwan/Pash,sillvan/Pash,Jaykul/Pash,mrward/Pash,ForNeVeR/Pash,sillvan/Pash,sillvan/Pash,sillvan/Pash,ForNeVeR/Pash,Jaykul/Pash,ForNeVeR/Pash,sburnicki/Pash,WimObiwan/Pash,WimObiwan/Pash,mrward/Pash,sburnicki/Pash,sburnicki/Pash,WimObiwan/Pash,Jaykul/Pash,ForNeVeR/Pash,sburnicki/Pash,mrward/Pash,mrward/Pash,Jaykul/P...
Source/System.Management/Automation/PSCredential.cs
Source/System.Management/Automation/PSCredential.cs
// Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ using System; using System.Net; using System.Security; namespace System.Management.Automation { public sealed class PSCredential { string username; SecureString password; public string UserName { get ...
// Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ using System; using System.Collections.Generic; using System.Text; namespace System.Management.Automation { public sealed class PSCredential { /* public PSCredential(string userName, SecureString pa...
bsd-3-clause
C#
33453e70b77f77ed98fd4913ba3c994ae6c3c4e3
Allow retrieving DependencyProperty's through WpfControl aspect.
Whathecode/Framework-Class-Library-Extension,Whathecode/Framework-Class-Library-Extension
Whathecode.PresentationFramework.Aspects/Windows/DependencyPropertyFactory/Aspects/WpfControlAspect.cs
Whathecode.PresentationFramework.Aspects/Windows/DependencyPropertyFactory/Aspects/WpfControlAspect.cs
using System; using System.Collections.Generic; using System.Reflection; using System.Windows; using PostSharp.Aspects; using PostSharp.Aspects.Advices; using Whathecode.System.Reflection.Extensions; using Whathecode.System.Windows.DependencyPropertyFactory.Attributes; using Visibility = PostSharp.Reflection.Visibilit...
using System; using System.Collections.Generic; using System.Reflection; using PostSharp.Aspects; using PostSharp.Aspects.Advices; using PostSharp.Reflection; using Whathecode.System.Reflection.Extensions; using Whathecode.System.Windows.DependencyPropertyFactory.Attributes; namespace Whathecode.System.Windows.Depen...
mit
C#
5a7f7c205e0d974ab6de6738eb93d465e0661701
Update ConvertChartToPdf.cs
maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/As...
Examples/CSharp/Files/Utility/ConvertChartToPdf.cs
Examples/CSharp/Files/Utility/ConvertChartToPdf.cs
using System; using Aspose.Cells; using Aspose.Cells.Charts; namespace Aspose.Cells.Examples.Files.Utility { class ConvertChartToPdf { //ExStart:1 static void Main() { string dataDir = Aspose.Cells.Examples.Utils.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringT...
using System; using Aspose.Cells; using Aspose.Cells.Charts; namespace Aspose.Cells.Examples.Files.Utility { class ConvertChartToPdf { static void Main() { string dataDir = Aspose.Cells.Examples.Utils.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); st...
mit
C#
cbb5cb59d5f19611a76549472e3975d3ec83bb5f
Increase logging to Verbose for examples
Livit/CefSharp,Livit/CefSharp,windygu/CefSharp,twxstar/CefSharp,windygu/CefSharp,windygu/CefSharp,zhangjingpu/CefSharp,rlmcneary2/CefSharp,zhangjingpu/CefSharp,ruisebastiao/CefSharp,illfang/CefSharp,twxstar/CefSharp,jamespearce2006/CefSharp,Haraguroicha/CefSharp,ITGlobal/CefSharp,rover886/CefSharp,wangzheng888520/CefSh...
CefSharp.Example/CefExample.cs
CefSharp.Example/CefExample.cs
using System; using System.Linq; namespace CefSharp.Example { public static class CefExample { public const string DefaultUrl = "custom://cefsharp/home"; // Use when debugging the actual SubProcess, to make breakpoints etc. inside that project work. private const bool debuggingSubProc...
using System; using System.Linq; namespace CefSharp.Example { public static class CefExample { public const string DefaultUrl = "custom://cefsharp/home"; // Use when debugging the actual SubProcess, to make breakpoints etc. inside that project work. private const bool debuggingSubProc...
bsd-3-clause
C#
f9369553687a3417aec1e4231b8a21b33dc62017
Rewrite markup for password reminder form
peterblazejewicz/aspnet-5-bootstrap-4,peterblazejewicz/aspnet-5-bootstrap-4
WebApplication/Views/Account/ForgotPassword.cshtml
WebApplication/Views/Account/ForgotPassword.cshtml
@model ForgotPasswordViewModel @{ ViewData["Title"] = "Forgot your password?"; } <h2>@ViewData["Title"].</h2> <p> For more information on how to enable reset password please see this <a href="http://go.microsoft.com/fwlink/?LinkID=532713">article</a>. </p> @* <form asp-controller="Account" asp-action...
@model ForgotPasswordViewModel @{ ViewData["Title"] = "Forgot your password?"; } <h2>@ViewData["Title"].</h2> <p> For more information on how to enable reset password please see this <a href="http://go.microsoft.com/fwlink/?LinkID=532713">article</a>. </p> @*<form asp-controller="Account" asp-action...
mit
C#
58810a299eb20b23ee4f66013d94accd62d84d21
Add a and x ions
XRSHEERAN/MetaMorpheus,lonelu/MetaMorpheus,hoffmann4/MetaMorpheus,rmillikin/MetaMorpheus,smith-chem-wisc/MetaMorpheus,zrolfs/MetaMorpheus,lschaffer2/MetaMorpheus
EngineLayer/Proteomics/ProductTypeToTerminusType.cs
EngineLayer/Proteomics/ProductTypeToTerminusType.cs
using System.Collections.Generic; namespace EngineLayer { static class ProductTypeToTerminusType { public static TerminusType IdentifyTerminusType(List<ProductType> lp) { if ((lp.Contains(ProductType.B) || lp.Contains(ProductType.BnoB1ions) || lp.Contains(ProductType.C) || lp.Conta...
using System.Collections.Generic; namespace EngineLayer { static class ProductTypeToTerminusType { public static TerminusType IdentifyTerminusType(List<ProductType> lp) { if ((lp.Contains(ProductType.B) || lp.Contains(ProductType.BnoB1ions) || lp.Contains(ProductType.C)) && (lp.Con...
mit
C#
cfc6c8f99cb41559f8ba3ff27da8a55f96c7db0e
send some more parameters to client as a test
kreuzhofer/SignalR.ConnectionManager,kreuzhofer/SignalR.ConnectionManager
SignalR.ConnectionManager/HubTest.WebApp/Hubs/MyHub.cs
SignalR.ConnectionManager/HubTest.WebApp/Hubs/MyHub.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Microsoft.AspNet.SignalR; namespace HubTest.WebApp.Hubs { public class MyHub : Hub { public void Hello() { Clients.All.hello("This is the message", "second parameter", 100, true, DateTime.Utc...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Microsoft.AspNet.SignalR; namespace HubTest.WebApp.Hubs { public class MyHub : Hub { public void Hello() { Clients.All.hello(); } } }
mit
C#
48934ea11a3e83f24335b48fc2e7a4c0b0be5b4b
Add another test for unrecognized characters.
pvasys/PillarRomanNumeralKata
VasysRomanNumeralsKataTest/FromRomanNumeralsTest.cs
VasysRomanNumeralsKataTest/FromRomanNumeralsTest.cs
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Text; using VasysRomanNumeralsKata; namespace VasysRomanNumeralsKataTest { [TestClass] public class FromRomanNumeralsTest { [TestMethod] public void WhenStringExtensionIsPassedX...
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Text; using VasysRomanNumeralsKata; namespace VasysRomanNumeralsKataTest { [TestClass] public class FromRomanNumeralsTest { [TestMethod] public void WhenStringExtensionIsPassedX...
mit
C#
04685194078c98b2181aa37be0b86cacb12c430a
Add comma between HttpMethod and Path
kobake/AspNetCore.RouteAnalyzer,kobake/AspNetCore.RouteAnalyzer,kobake/AspNetCore.RouteAnalyzer
AspNetCore.RouteAnalyzer/RouteInformation.cs
AspNetCore.RouteAnalyzer/RouteInformation.cs
namespace AspNetCore.RouteAnalyzer { public class RouteInformation { public string HttpMethod { get; set; } = "GET"; public string Area { get; set; } = ""; public string Path { get; set; } = ""; public string Invocation { get; set; } = ""; public override string ToString...
namespace AspNetCore.RouteAnalyzer { public class RouteInformation { public string HttpMethod { get; set; } = "GET"; public string Area { get; set; } = ""; public string Path { get; set; } = ""; public string Invocation { get; set; } = ""; public override string ToString...
mit
C#
1b285060a4a62e055b2a1e961b155d31612ae35f
Use ViewComponent in index.cshtml
bigfont/StackOverflow,bigfont/StackOverflow,bigfont/StackOverflow,bigfont/StackOverflow
AspNetCorePlayground/Views/Home/Index.cshtml
AspNetCorePlayground/Views/Home/Index.cshtml
@{ ViewData["Title"] = "Home Page"; } <h1 class="page-header">TagHelper</h1> <h2>TagHelper Structure</h2> <!-- Index.cshtml --> <my-first my-string-property="My Property Value" my-date-time-property="new DateTime()"> This is the original Inner HTML from the *.cshtml file. </my-first> <vc:my-first> ...
@{ ViewData["Title"] = "Home Page"; } <h1 class="page-header">TagHelper</h1> <h2>TagHelper Structure</h2> <my-first my-string-property="My Property Value" my-date-time-property="new DateTime()"> This is the original Inner HTML from the *.cshtml file. </my-first>
mit
C#
79d01d02e6b4c33258071c34d1dc0ff05c02f5f8
Bump assembly version to 1.0
alexshtf/autodiff
AutoDiff/AutoDiff/Properties/AssemblyInfo.cs
AutoDiff/AutoDiff/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...
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#
e1e4754fac69a5df223fa361ee064b2b09dbde7e
Add guid attribute
arvydas/BlinkStickInterop,arvydas/BlinkStickInterop,arvydas/BlinkStickInterop,arvydas/BlinkStickInterop
BlinkStickInterop/Properties/AssemblyInfo.cs
BlinkStickInterop/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle ("BlinkStickDotNet.Interop")] [assembly: AssemblyDes...
using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle ("BlinkStickDotNet.Interop")] [assembly: AssemblyDescription ("")] [assembly: AssemblyConf...
mit
C#
8bdc4149c91e9b43843390e8b0814599c6b7e7c6
Fix pattern: Create Disposable in OnOpen
nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet
WalletWasabi.Gui/ViewModels/TextResourceViewModelBase.cs
WalletWasabi.Gui/ViewModels/TextResourceViewModelBase.cs
using Avalonia; using Avalonia.Platform; using ReactiveUI; using System; using System.Collections.Generic; using System.IO; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Reactive.Threading.Tasks; using System.Text; using System.Threading.Tasks; namespace WalletWasabi.Gui.ViewModels { pub...
using Avalonia; using Avalonia.Platform; using ReactiveUI; using System; using System.Collections.Generic; using System.IO; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Reactive.Threading.Tasks; using System.Text; using System.Threading.Tasks; namespace WalletWasabi.Gui.ViewModels { pub...
mit
C#
2c6583884da70e626ae9f8a3e7177efdac6d1030
Increase news version.
Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex
backend/src/Squidex/Areas/Api/Controllers/News/Service/FeaturesService.cs
backend/src/Squidex/Areas/Api/Controllers/News/Service/FeaturesService.cs
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ===========================...
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ===========================...
mit
C#
ddd52f1230f1a8f2806b2ea9b5e25402cecb065b
Increase feature version.
Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex
backend/src/Squidex/Areas/Api/Controllers/News/Service/FeaturesService.cs
backend/src/Squidex/Areas/Api/Controllers/News/Service/FeaturesService.cs
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ===========================...
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ===========================...
mit
C#
0dece10552783e228b046a7f5a7cc9da162dfc48
fix nancy tests by using different metric name
huoxudong125/Metrics.NET,etishor/Metrics.NET,ntent-ad/Metrics.NET,cvent/Metrics.NET,Recognos/Metrics.NET,DeonHeyns/Metrics.NET,Liwoj/Metrics.NET,alhardy/Metrics.NET,etishor/Metrics.NET,Recognos/Metrics.NET,mnadel/Metrics.NET,mnadel/Metrics.NET,ntent-ad/Metrics.NET,DeonHeyns/Metrics.NET,huoxudong125/Metrics.NET,MetaG8/M...
Src/Metrics.Tests/NancyAdapter/NancyAdapterTests.cs
Src/Metrics.Tests/NancyAdapter/NancyAdapterTests.cs
 using FluentAssertions; using Nancy; using Nancy.Metrics; using Nancy.Testing; using Xunit; namespace Metrics.Tests.NancyAdapter { public class NancyAdapterTests { public class TestModule : NancyModule { public TestModule() : base("test") { ...
 using FluentAssertions; using Nancy; using Nancy.Metrics; using Nancy.Testing; using Xunit; namespace Metrics.Tests.NancyAdapter { public class NancyAdapterTests { public class TestModule : NancyModule { public TestModule() : base("test") { ...
apache-2.0
C#
11c2b9ea9f846e984700b6009d433f7c47dae7ef
Update Index.cshtml
joakimskoog/AnApiOfIceAndFire,joakimskoog/AnApiOfIceAndFire
AnApiOfIceAndFire/Views/Documentation/Index.cshtml
AnApiOfIceAndFire/Views/Documentation/Index.cshtml
@using AnApiOfIceAndFire.Infrastructure.Html @{ ViewBag.Title = "Documentation"; } <h2>Documentation</h2> <div class="row"> <div class="col-sm-3 col-md-3"> <h5>Overview</h5> <div class="list-group"> <a href="#intro" class="list-group-item">Introduction</a> <a href="#cu...
@using AnApiOfIceAndFire.Infrastructure.Html @{ ViewBag.Title = "Documentation"; } <h2>Documentation</h2> <div class="row"> <div class="col-sm-3 col-md-3"> <h5>Overview</h5> <div class="list-group"> <a href="#intro" class="list-group-item">Introduction</a> <a href="#cu...
bsd-3-clause
C#
881157bd68446793cfc2f5a45ad25f94db10d914
Debug license removed.
Scandit/barcodescanner-sdk-xamarin-samples,Scandit/barcodescanner-sdk-xamarin-samples
Native/ExtendedSample/ExtendedSample/PickerView.cs
Native/ExtendedSample/ExtendedSample/PickerView.cs
using System; using Xamarin.Forms; namespace ExtendedSample { public class PickerView : View { public event EventHandler StartScanningRequested; public event EventHandler PauseScanningRequested; public IScannerDelegate Delegate { get; set; } public Settings Settings { get; set; } public stati...
using System; using Xamarin.Forms; namespace ExtendedSample { public class PickerView : View { public event EventHandler StartScanningRequested; public event EventHandler PauseScanningRequested; public IScannerDelegate Delegate { get; set; } public Settings Settings { get; set; } public stati...
apache-2.0
C#
491db0650033bc7ba7ef5e2db205ffd603441f8a
Implement FactExceptOnUnix (working?)
PKRoma/git-tfs,pmiossec/git-tfs,vzabavnov/git-tfs,andyrooger/git-tfs,git-tfs/git-tfs
GitTfsTest/FactExceptOnUnix.cs
GitTfsTest/FactExceptOnUnix.cs
using System; using System.Collections.Generic; using Xunit; using Xunit.Sdk; namespace Sep.Git.Tfs.Test { public class FactExceptOnUnixAttribute : FactAttribute { public override string Skip { get { if (IsUnix()) return "Skipped becau...
using System; using System.Collections.Generic; using Xunit; using Xunit.Sdk; namespace Sep.Git.Tfs.Test { public class FactExceptOnUnixAttribute : FactAttribute { protected override IEnumerable<ITestCommand> EnumerateTestCommands(IMethodInfo method) { yield return new FactExceptOnU...
apache-2.0
C#
e5956e9c5b4b44f674ab7befbbe8f33632a73270
Fix typo in XML comment (#4054)
ElanHasson/orleans,ibondy/orleans,SoftWar1923/orleans,waynemunro/orleans,ashkan-saeedi-mazdeh/orleans,waynemunro/orleans,pherbel/orleans,ElanHasson/orleans,dVakulen/orleans,hoopsomuah/orleans,dVakulen/orleans,dVakulen/orleans,sergeybykov/orleans,jokin/orleans,ashkan-saeedi-mazdeh/orleans,MikeHardman/orleans,MikeHardman...
src/Orleans.Core/Lifecycle/ServiceLifecycleStage.cs
src/Orleans.Core/Lifecycle/ServiceLifecycleStage.cs
namespace Orleans { /// <summary> /// Lifecycle stages of an orlean service. Cluster Client, or Silo /// </summary> public static class ServiceLifecycleStage { /// <summary> /// First stage in service's lifecycle /// </summary> public const int First = int.MinValue;...
namespace Orleans { /// <summary> /// Lifecycle stages of an orlean service. Cluster Client, or Silo /// </summary> public static class ServiceLifecycleStage { /// <summary> /// First stage in service's lifecycle /// </summary> public const int First = int.MinValue;...
mit
C#
9cfb8792a54bb1463cefd8863a6aea12032f71f8
Update obsoletion warning for ISiloBuilderConfigurator (#6461)
ibondy/orleans,jason-bragg/orleans,yevhen/orleans,yevhen/orleans,waynemunro/orleans,galvesribeiro/orleans,amccool/orleans,ibondy/orleans,ElanHasson/orleans,hoopsomuah/orleans,ReubenBond/orleans,dotnet/orleans,benjaminpetit/orleans,ElanHasson/orleans,amccool/orleans,hoopsomuah/orleans,dotnet/orleans,amccool/orleans,galv...
src/Orleans.TestingHost/ISiloBuilderConfigurator.cs
src/Orleans.TestingHost/ISiloBuilderConfigurator.cs
using System; using Orleans.Hosting; namespace Orleans.TestingHost { /// <summary> /// Allows implementations to configure the host builder when starting up each silo in the test cluster. /// </summary> [Obsolete("Implement " + nameof(ISiloConfigurator) + " and " + nameof(IHostConfigurator) + " instead...
using System; using Orleans.Hosting; namespace Orleans.TestingHost { /// <summary> /// Allows implementations to configure the host builder when starting up each silo in the test cluster. /// </summary> [Obsolete("Use " + nameof(ISiloConfigurator) + " instead")] public interface ISiloBuilderConfigu...
mit
C#
f0a8839c6b96d0846d975b0e4e649d95a58bc587
Remove unneeded setting of SqlParameter.Offset
NServiceBusSqlPersistence/NServiceBus.SqlPersistence
src/SqlPersistence/Config/SqlDialect_MsSqlServer.cs
src/SqlPersistence/Config/SqlDialect_MsSqlServer.cs
namespace NServiceBus { using System; using System.Data.Common; public abstract partial class SqlDialect { /// <summary> /// Microsoft SQL Server /// </summary> public partial class MsSqlServer : SqlDialect { /// <summary> /// Microsoft SQ...
namespace NServiceBus { using System; using System.Data.Common; using System.Data.SqlClient; public abstract partial class SqlDialect { /// <summary> /// Microsoft SQL Server /// </summary> public partial class MsSqlServer : SqlDialect { /// <summ...
mit
C#
9168121327db386fff46b38fb12a04ad12206738
Change Course.cs
codinghouselondon/ContosoUniversity,codinghouselondon/ContosoUniversity
CotosoUniveristy/CotosoUniversity/Models/Course.cs
CotosoUniveristy/CotosoUniversity/Models/Course.cs
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; namespace CotosoUniversity.Models { public class Course { [DatabaseGenerated(DatabaseGeneratedOption.None)] public int CourseID { get; set; } public ...
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; namespace CotosoUniversity.Models { public class Course { [DatabaseGenerated(DatabaseGeneratedOption.None)] public int CourseID { get; set; } public ...
mit
C#
220306b188e782e14974642fb7087e9790668938
add modifyCard command
pashchuk/Hospital-MVVM-
Hospital/DesktopApp/ViewModel/FullCardViewModel.cs
Hospital/DesktopApp/ViewModel/FullCardViewModel.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DesktopApp.Commands; using DesktopApp.Model; namespace DesktopApp.ViewModel { public class FullCardViewModel : ViewModelBase { private Card _card; private bool _state = false; public stri...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DesktopApp.Model; namespace DesktopApp.ViewModel { class FullCardViewModel : ViewModelBase { private Card _card; public string DoctorName { get { return _card.OwnerDoctor.FirstName + _...
mit
C#
cc35071617d8bcbedd0551772a7eb1b6a0ae0f6c
update expected number of lines in file loading tests
pauldambra/ModulusChecker,pauldambra/ModulusChecker
ModulusCheckingTests/Loaders/ModulusWeightTests.cs
ModulusCheckingTests/Loaders/ModulusWeightTests.cs
using System.Linq; using ModulusChecking.Loaders; using ModulusChecking.Models; using NUnit.Framework; namespace ModulusCheckingTests.Loaders { public class ModulusWeightTests { [Test] public void CanReadWeightFileResource() { var weightFile = ModulusChecking.Properties.Reso...
using System.Linq; using ModulusChecking.Loaders; using ModulusChecking.Models; using NUnit.Framework; namespace ModulusCheckingTests.Loaders { public class ModulusWeightTests { [Test] public void CanReadWeightFileResource() { var weightFile = ModulusChecking.Properties.Reso...
mit
C#
6695f206d55cd97a5ee661c764c750b0965be3ec
Use Enum.Parse overload available in PCL
cureos/Evil-DICOM,SuneBuur/Evil-DICOM
EvilDICOM.Core/EvilDICOM.Core/Helpers/EnumHelper.cs
EvilDICOM.Core/EvilDICOM.Core/Helpers/EnumHelper.cs
using System; namespace EvilDICOM.Core.Helpers { public class EnumHelper { public static T StringToEnum<T>(string name) { return (T) Enum.Parse(typeof (T), name, false); } } }
using System; namespace EvilDICOM.Core.Helpers { public class EnumHelper { public static T StringToEnum<T>(string name) { return (T) Enum.Parse(typeof (T), name); } } }
mit
C#
a659d0a22f8efbadb30f081f2aae47d47eb6e294
Fix RealmInvalidObjectException parent
realm/realm-dotnet,Shaddix/realm-dotnet,Shaddix/realm-dotnet,Shaddix/realm-dotnet,realm/realm-dotnet,Shaddix/realm-dotnet,realm/realm-dotnet
Realm.Shared/exceptions/RealmInvalidObjectException.cs
Realm.Shared/exceptions/RealmInvalidObjectException.cs
//////////////////////////////////////////////////////////////////////////// // // Copyright 2016 Realm 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/l...
//////////////////////////////////////////////////////////////////////////// // // Copyright 2016 Realm 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/l...
apache-2.0
C#
f5bcaa176814d7db1c1ebe668ad687b29d4fabbb
return error
ferreirix/restratp
Controllers/HealthStatus.cs
Controllers/HealthStatus.cs
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace restratp.Controllers { [Route("/")] public class HealthStatusController : Controller { /// <summary> /// Endpoint to check the service availability. /// </summary> /// <remarks> //...
using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace restratp.Controllers { [Route("/")] public class HealthStatusController : Controller { /// <summary> /// Endpoint to check the service availability. /// </summary> /// <remarks> /// </remarks> ...
mit
C#
d1af1429b3dd8d79ba36bc5d41ac02a75ad86bac
Fix inspection
UselessToucan/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,UselessToucan/osu,peppy/osu,ppy/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,peppy/osu-new
osu.Game/Tests/Visual/RateAdjustedBeatmapTestScene.cs
osu.Game/Tests/Visual/RateAdjustedBeatmapTestScene.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; namespace osu.Game.Tests.Visual { /// <summary> /// Test case which adjusts the beatmap's rate to match any speed adjustments in visual...
// 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; using osu.Framework.Extensions.ObjectExtensions; namespace osu.Game.Tests.Visual { /// <summary> /// Test case which adjusts the beatma...
mit
C#
e9de3acbc7b5da9dafe783af74f73f5e4d7fdfd4
Update unit test pertaining to #2018 to have PG min version as 10
ericgreenmix/marten,ericgreenmix/marten,ericgreenmix/marten,ericgreenmix/marten
src/DocumentDbTests/Bugs/Bug_2018_fts_string_list.cs
src/DocumentDbTests/Bugs/Bug_2018_fts_string_list.cs
using System; using System.Collections.Generic; using Marten.Testing.Harness; using Xunit; namespace DocumentDbTests.Bugs { public class Bug_2018_fts_string_list: BugIntegrationContext { public sealed class BugFullTextSearchFields { public Guid Id { get; set; } public st...
using System; using System.Collections.Generic; using Marten.Testing.Harness; using Xunit; namespace DocumentDbTests.Bugs { public class Bug_2018_fts_string_list: BugIntegrationContext { public sealed class BugFullTextSearchFields { public Guid Id { get; set; } public st...
mit
C#
74ec643e4d75a7282d87a2d60a91e874356d78f7
Include non-public fields of the enum class when adding EnumItemDetail
edvineshagh/bitdiffer,grennis/bitdiffer
Source/BitDiffer.Common/Detail/EnumDetail.cs
Source/BitDiffer.Common/Detail/EnumDetail.cs
using System; using System.Collections.Generic; using System.Text; using System.Reflection; using BitDiffer.Common.Utility; using BitDiffer.Common.Misc; using BitDiffer.Common.Configuration; namespace BitDiffer.Common.Model { [Serializable] public class EnumDetail : TypeDetail { public EnumDetail() { } pu...
using System; using System.Collections.Generic; using System.Text; using System.Reflection; using BitDiffer.Common.Utility; using BitDiffer.Common.Misc; using BitDiffer.Common.Configuration; namespace BitDiffer.Common.Model { [Serializable] public class EnumDetail : TypeDetail { public EnumDetail() { } pu...
mit
C#
74ee6ef6ee795099f9530ce04bd36e872667489c
Mark RainbowFolder.Name as obsolete
PhannGor/unity3d-rainbow-folders
Assets/RainbowFoldersAsset/RainbowFolders/Editor/Settings/RainbowFolder.cs
Assets/RainbowFoldersAsset/RainbowFolders/Editor/Settings/RainbowFolder.cs
/* * 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 writing, software * distrib...
/* * 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 writing, software * distrib...
apache-2.0
C#
7b1c1b376df52d8e0f55c5e8802f8450ee838b33
fix unit tests
makmu/outlook-matters,maxlmo/outlook-matters,maxlmo/outlook-matters,makmu/outlook-matters
OutlookMatters.Test/MailItemContextMenuEntryTest.cs
OutlookMatters.Test/MailItemContextMenuEntryTest.cs
using FluentAssertions; using Microsoft.Office.Core; using Moq; using NUnit.Framework; using OutlookMatters.ContextMenu; using OutlookMatters.Mail; using OutlookMatters.Mattermost; using OutlookMatters.Settings; namespace OutlookMatters.Test { [TestFixture] public class MailItemContextMenuEntryTest { ...
using FluentAssertions; using Microsoft.Office.Core; using Moq; using NUnit.Framework; using OutlookMatters.ContextMenu; using OutlookMatters.Mail; using OutlookMatters.Mattermost; using OutlookMatters.Settings; namespace OutlookMatters.Test { [TestFixture] public class MailItemContextMenuEntryTest { ...
mit
C#
7f96d07e0d732351eaf1ac04486c0ff8fe45781f
improve the error message when a location isn't given correctly.
LHCAtlas/AtlasSSH
PSAtlasDatasetCommands/ValidateLocationAttribute.cs
PSAtlasDatasetCommands/ValidateLocationAttribute.cs
using AtlasWorkFlows; using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation; using System.Text; using System.Threading.Tasks; namespace PSAtlasDatasetCommands { /// <summary> /// Add for a location argument, makes sure that only the available location...
using AtlasWorkFlows; using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation; using System.Text; using System.Threading.Tasks; namespace PSAtlasDatasetCommands { /// <summary> /// Add for a location argument, makes sure that only the available location...
mit
C#
ab3c6a913f0c97f464e9d6a0ee5734f8ef4fca29
Fix compilation error - new requirement for IMenuAction
NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework
Test/AdventureWorksLegacy.AppLib/menu/MenuAction.cs
Test/AdventureWorksLegacy.AppLib/menu/MenuAction.cs
 namespace AdventureWorksLegacy.AppLib; public class MenuAction : IMenuAction { public MenuAction(string methodName, string displayName = null) { Name = methodName.ToLower().StartsWith("action") ? methodName : "Action" + methodName; DisplayName = displayName; } public string Name { ge...
 namespace AdventureWorksLegacy.AppLib; public class MenuAction : IMenuAction { public MenuAction(string name) => Name = name.ToLower().StartsWith("action") ? name : "Action" + name; public string Name { get; init; } }
apache-2.0
C#
d3cb1f56683776cadf9fa872ed12757e74bb935d
Add [Authorize] to ExecuteCommand action
bdb-opensource/whitelist-executer,bdb-opensource/whitelist-executer,bdb-opensource/whitelist-executer
WhitelistExecuter.Web/Controllers/HomeController.cs
WhitelistExecuter.Web/Controllers/HomeController.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using WhitelistExecuter.Lib; using WhitelistExecuter.Web.Filters; using WhitelistExecuter.Web.Models; namespace WhitelistExecuter.Web.Controllers { public class HomeController : Controller { ...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using WhitelistExecuter.Lib; using WhitelistExecuter.Web.Models; namespace WhitelistExecuter.Web.Controllers { public class HomeController : Controller { public ActionResult Index() ...
mit
C#
50e6a2910676684649a475902b35b74464545869
Fix for a crash that can occur while exporting from the level editor - falling back to the global scene manager if we can't find a scene manager attached to the dom node tree
xlgames-inc/XLE,xlgames-inc/XLE,xlgames-inc/XLE,xlgames-inc/XLE,xlgames-inc/XLE,xlgames-inc/XLE,xlgames-inc/XLE,xlgames-inc/XLE
Foreign/SonyLE/LevelEditorXLE/Services/Extensions.cs
Foreign/SonyLE/LevelEditorXLE/Services/Extensions.cs
// Copyright 2015 XLGAMES Inc. // // Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) using System; using Sce.Atf.Adaptation; namespace LevelEditorXLE.Extensions { internal static class ExtensionsClass { intern...
// Copyright 2015 XLGAMES Inc. // // Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) using System; using Sce.Atf.Adaptation; namespace LevelEditorXLE.Extensions { internal static class ExtensionsClass { intern...
mit
C#
3849f24839c0a8c2d0c7dd9077cc2af437a1f8ec
fix failing test - use Fake Metrics initializer
gigya/microdot
tests/Gigya.Microdot.Orleans.Hosting.UnitTests/Microservice/CalculatorService/CalculatorServiceHost.cs
tests/Gigya.Microdot.Orleans.Hosting.UnitTests/Microservice/CalculatorService/CalculatorServiceHost.cs
#region Copyright // Copyright 2017 Gigya Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // THIS...
#region Copyright // Copyright 2017 Gigya Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // THIS...
apache-2.0
C#
a564839bb639bfa301cf2c19394a323adb1b2737
Replace dashes with underlines
RSuter/NJsonSchema,NJsonSchema/NJsonSchema
src/NJsonSchema.CodeGeneration/DefaultEnumNameGenerator.cs
src/NJsonSchema.CodeGeneration/DefaultEnumNameGenerator.cs
//----------------------------------------------------------------------- // <copyright file="DefaultEnumNameGenerator.cs" company="NJsonSchema"> // Copyright (c) Rico Suter. All rights reserved. // </copyright> // <license>https://github.com/rsuter/NJsonSchema/blob/master/LICENSE.md</license> // <author>Rico ...
//----------------------------------------------------------------------- // <copyright file="DefaultEnumNameGenerator.cs" company="NJsonSchema"> // Copyright (c) Rico Suter. All rights reserved. // </copyright> // <license>https://github.com/rsuter/NJsonSchema/blob/master/LICENSE.md</license> // <author>Rico ...
mit
C#
0bd03727e4d87ad83a805917ef105c7e22310018
Update ConvertorHex.cs
smad2005/ConvertorHexString
HexToString/ConvertorHex.cs
HexToString/ConvertorHex.cs
using System; using System.Globalization; using System.Linq; using System.Text; namespace HexToString { public static class ConvertorHex { public static string BytesToHex(Byte [] bytes) { return string.Concat(bytes.Select(y => y.ToString("x2")).ToArray()); } public sta...
using System; using System.Globalization; using System.Linq; using System.Text; namespace HexToString { public class ConvertorHex { public string StringToHex(string text, Encoding encoding) { return String.Join(String.Empty, encoding.GetBytes(text).Select(y => y.ToString("x"))); ...
mit
C#
6cb7ea2e7568ae5350ac50b0a36d735378f46603
optimize XMLserializer
23S163PR/system-programming
Novak.Andriy/parallel-extension-demo/XMLSerilizer.cs
Novak.Andriy/parallel-extension-demo/XMLSerilizer.cs
using System; using System.IO; using System.Runtime.Serialization; using System.Xml.Serialization; namespace parallel_extension_demo { public static class XSerializer<T> { private static readonly XmlSerializer XmlSerializer; static XSerializer() { XmlSerializer = new XmlSer...
using System; using System.IO; using System.Runtime.Serialization; using System.Xml.Serialization; namespace parallel_extension_demo { public static class XSerializer { public static void XSerilizer<T>(T obj, string fileName) { try { if (obj == null) ret...
cc0-1.0
C#
18c45a6b0ba58b548f24aa378a775e110595b571
Add digits
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
LeetCode/remote/add_digits.cs
LeetCode/remote/add_digits.cs
using System; using System.Linq; static class Program { static int DigitalRoot(this int x) { while (x.ToString().Length != 1) { x = x.ToString().Select(a => a - '0').Sum(); } return x; } static int AddDigits(this int x) { if (x == 0) return 0; if (x % 9...
using System; using System.Linq; static class Program { static int DigitalRoot(this int x) { while (x.ToString().Length != 1) { x = x.ToString().Select(a => a - '0').Sum(); } return x; } static int AddDigits(this int x) { if (x == 0) return 0; if (x % 9...
mit
C#
2ca5f3b6874b97ec171bf406e2dd9c3b85119091
Reduce number of items
henrikfroehling/RangeIt
Source/Tests/Iterator.Performance.Tests/Constants.cs
Source/Tests/Iterator.Performance.Tests/Constants.cs
namespace Iterator.Performance.Tests { public static class Constants { public const int MAX_ITEMS = 1000; } }
namespace Iterator.Performance.Tests { public static class Constants { public const int MAX_ITEMS = 10000; } }
mit
C#
1e18359ad3172dd8d6f36e2b70b6a153d8edcfda
clean up
british-proverbs/british-proverbs-mvc-6,british-proverbs/british-proverbs-mvc-6
src/BritishProverbs.Web/Controllers/HomeController.cs
src/BritishProverbs.Web/Controllers/HomeController.cs
using System.Threading.Tasks; using BritishProverbs.Domain; using BritishProverbs.Web.Models; using Microsoft.AspNet.Mvc; namespace BritishProverbs.Web.Controllers { public class HomeController : Controller { private readonly IBritishProverbsContext _context; public HomeController(IBritishPro...
using System; using System.Threading.Tasks; using BritishProverbs.Domain; using BritishProverbs.Web.Models; using Microsoft.AspNet.Mvc; namespace BritishProverbs.Web.Controllers { public class HomeController : Controller { private readonly IBritishProverbsContext _context; public HomeControll...
mit
C#
ea81d615bfbeec73cafd8d513b53cff33e015207
remove unneeded dbset for mapping table
collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists
src/FilterLists.Data/Contexts/FilterListsDbContext.cs
src/FilterLists.Data/Contexts/FilterListsDbContext.cs
using FilterLists.Data.Entities; using FilterLists.Data.EntityTypeConfigurations; using Microsoft.EntityFrameworkCore; namespace FilterLists.Data.Contexts { public class FilterListsDbContext : DbContext, IFilterListsDbContext { public FilterListsDbContext(DbContextOptions options) : base(o...
using FilterLists.Data.Entities; using FilterLists.Data.EntityTypeConfigurations; using Microsoft.EntityFrameworkCore; namespace FilterLists.Data.Contexts { public class FilterListsDbContext : DbContext, IFilterListsDbContext { public FilterListsDbContext(DbContextOptions options) : base(o...
mit
C#
fbceb413151d91c7b035dbfd56efb45ff3f2aadd
fix #289 errors in multisearch
starckgates/elasticsearch-net,RossLieberman/NEST,UdiBen/elasticsearch-net,azubanov/elasticsearch-net,alanprot/elasticsearch-net,TheFireCookie/elasticsearch-net,LeoYao/elasticsearch-net,Grastveit/NEST,NickCraver/NEST,KodrAus/elasticsearch-net,gayancc/elasticsearch-net,NickCraver/NEST,wawrzyn/elasticsearch-net,jonyadamit...
src/Nest/Resolvers/Converters/MultiSearchConverter.cs
src/Nest/Resolvers/Converters/MultiSearchConverter.cs
using System; using System.Collections.Generic; using System.Linq; using Nest.Domain; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System.Reflection; namespace Nest.Resolvers.Converters { public class MultiSearchConverter : JsonConverter { private class MultiHitTuple { public JToken Hit { get; s...
using System; using System.Collections.Generic; using System.Linq; using Nest.Domain; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System.Reflection; namespace Nest.Resolvers.Converters { public class MultiSearchConverter : JsonConverter { private class MultiHitTuple { public JToken Hit { get; s...
apache-2.0
C#
4471bf434b32a704513cbe8eb7f15dd2d449abfb
Refactor CacheMiss test
vanashimko/MPP.Mapper
MapperTests/DtoMapperTests.cs
MapperTests/DtoMapperTests.cs
using System; using Xunit; using Mapper; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Moq; namespace Mapper.Tests { public class DtoMapperTests { [Fact] public void Map_NullPassed_ExceptionThrown() { IMapper map...
using System; using Xunit; using Mapper; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Moq; namespace Mapper.Tests { public class DtoMapperTests { [Fact] public void Map_NullPassed_ExceptionThrown() { IMapper map...
mit
C#
c9e1a10426c08c8bdda0f4b0e42521266e0a815e
Add warning about item source
kamsar/Unicorn,kamsar/Unicorn
src/Unicorn/PowerShell/NewUnicornItemSourceCommand.cs
src/Unicorn/PowerShell/NewUnicornItemSourceCommand.cs
using System.Collections.Generic; using System.Linq; using System.Management.Automation; using Cognifide.PowerShell.Commandlets.Packages; using Sitecore.Configuration; using Sitecore.Data; using Sitecore.Data.Items; using Sitecore.Globalization; using Sitecore.Install; using Sitecore.Install.Configuration; using Sitec...
using System.Collections.Generic; using System.Linq; using System.Management.Automation; using Cognifide.PowerShell.Commandlets.Packages; using Sitecore.Configuration; using Sitecore.Data; using Sitecore.Data.Items; using Sitecore.Globalization; using Sitecore.Install; using Sitecore.Install.Configuration; using Sitec...
mit
C#
f2a75cc5f404610ec07163e1b647eb0e0f1ac214
bump version
alecgorge/adzerk-dot-net
Adzerk.Api/Properties/AssemblyInfo.cs
Adzerk.Api/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("Ad...
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("Ad...
mit
C#
ef8bbca8cd61cdf8c038296e2b69e5b12ba0904f
Bump assembly version to 3.0.0
ericburcham/Reflections
Source/AssemblyVersionInfo.cs
Source/AssemblyVersionInfo.cs
using System.Reflection; // Version information for an assembly consists of the following four values: // // We use Semantic Versioning: http://semver.org/ // Given a version number MAJOR.MINOR.PATCH.REVISION, increment the: // // MAJOR Version - When you make incompatible API changes, // MINOR Version - ...
using System.Reflection; // Version information for an assembly consists of the following four values: // // We use Semantic Versioning: http://semver.org/ // Given a version number MAJOR.MINOR.PATCH.REVISION, increment the: // // MAJOR Version - When you make incompatible API changes, // MINOR Version - ...
mit
C#
12b1a8620ef03fc271d4760ef8c5db5c490891fd
Update price source
mplacona/BargainHunter
BargainHunter/Helpers/AmazonHelper.cs
BargainHunter/Helpers/AmazonHelper.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using NKCraddock.AmazonItemLookup.Client; namespace BargainHunter.Helpers { public class AmazonHelper { private static readonly String AwsAccessKey = Environment.GetEnvironmentVariable("AWS_ACCESS_KEY"); priva...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using NKCraddock.AmazonItemLookup.Client; namespace BargainHunter.Helpers { public class AmazonHelper { private static readonly String AwsAccessKey = Environment.GetEnvironmentVariable("AWS_ACCESS_KEY"); priva...
mit
C#
b9bc40aee1a65390e942200691cbb738f7c2d52d
Fix compilation issue
another-guy/CSharpToTypeScript,another-guy/CSharpToTypeScript
CSharpToTypeScript.Tests/TestFiles.cs
CSharpToTypeScript.Tests/TestFiles.cs
using System; using System.IO; using System.Reflection; using CSharpToTypeScript.Tests.Integration; namespace CSharpToTypeScript.Tests { public sealed class TestFiles { public string GetSampleFile(string fileName) { return new FileInfo(GetAssemblyLocation()) .Direct...
using System; using System.IO; using System.Reflection; namespace CSharpToTypeScript.Tests { public sealed class TestFiles { public string GetSampleFile(string fileName) { return new FileInfo(GetAssemblyLocation()) .Directory .Parent ...
mit
C#
4fdf578fee97c8e79e5e96b23f7e52444aa9d642
Add integration tests for links and forms
mattgwagner/CertiPay.Common
CertiPay.PDF.Tests/PDFServiceTests.cs
CertiPay.PDF.Tests/PDFServiceTests.cs
using NUnit.Framework; using System.IO; namespace CertiPay.PDF.Tests { public class PDFServiceTests { [Test] public void ShouldGenerateMultiPagePDF() { IPDFService svc = new PDFService(); byte[] output = svc.CreatePdf(new PDFService.Settings { ...
using NUnit.Framework; using System.IO; namespace CertiPay.PDF.Tests { public class PDFServiceTests { [Test] public void ShouldGenerateMultiPagePDF() { IPDFService svc = new PDFService(); byte[] output = svc.CreatePdf(new PDFService.Settings { ...
mit
C#
d37e5a6429686e6f2b7544081e514e7b1c9bf52f
Fix for #621.
ryancyq/aspnetboilerplate,MDSNet2016/aspnetboilerplate,zquans/aspnetboilerplate,4nonym0us/aspnetboilerplate,zclmoon/aspnetboilerplate,ryancyq/aspnetboilerplate,oceanho/aspnetboilerplate,berdankoca/aspnetboilerplate,luchaoshuai/aspnetboilerplate,MDSNet2016/aspnetboilerplate,jaq316/aspnetboilerplate,lemestrez/aspnetboile...
src/Abp.RedisCache/RedisCache/AbpRedisCache.cs
src/Abp.RedisCache/RedisCache/AbpRedisCache.cs
using Abp.Runtime.Caching; using StackExchange.Redis; using System; using Abp.RedisCache.Configuration; using Abp.RedisCache.RedisImpl; namespace Abp.RedisCache { public class AbpRedisCache : CacheBase { private readonly ConnectionMultiplexer _connectionMultiplexer; private readonly AbpRedisC...
using Abp.Runtime.Caching; using StackExchange.Redis; using System; using Abp.RedisCache.Configuration; using Abp.RedisCache.RedisImpl; namespace Abp.RedisCache { public class AbpRedisCache : CacheBase { private readonly ConnectionMultiplexer _connectionMultiplexer; private readonly AbpRedisC...
mit
C#
45c91ddfb8914cfb821174635e616cc8195cb5f7
update AssemblyProduct
AspectCore/Lite,AspectCore/AspectCore-Framework,AspectCore/AspectCore-Framework,AspectCore/Abstractions
src/AspectCore.Lite/Properties/AssemblyInfo.cs
src/AspectCore.Lite/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: AssemblyConfigurat...
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: AssemblyConfigurat...
mit
C#
f71d6b64c1085a6b0d1aaaf221e1c56248eaf1dc
add new Path measurement API on IGeometryImpl.cs
jkoritzinsky/Avalonia,Perspex/Perspex,jkoritzinsky/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Perspex,wieslawsoltes/Perspex,SuperJMN/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,wieslawsoltes/Perspex,grokys/Perspex,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,Av...
src/Avalonia.Visuals/Platform/IGeometryImpl.cs
src/Avalonia.Visuals/Platform/IGeometryImpl.cs
using Avalonia.Media; namespace Avalonia.Platform { /// <summary> /// Defines the platform-specific interface for a <see cref="Geometry"/>. /// </summary> public interface IGeometryImpl { /// <summary> /// Gets the geometry's bounding rectangle. /// </summary> Rect B...
using Avalonia.Media; namespace Avalonia.Platform { /// <summary> /// Defines the platform-specific interface for a <see cref="Geometry"/>. /// </summary> public interface IGeometryImpl { /// <summary> /// Gets the geometry's bounding rectangle. /// </summary> Rect B...
mit
C#
dc25f6e303bb158026d26409f59eb4a20f78db15
Update BehaviorOfT.cs
XamlBehaviors/XamlBehaviors,wieslawsoltes/AvaloniaBehaviors,wieslawsoltes/AvaloniaBehaviors,XamlBehaviors/XamlBehaviors
src/Avalonia.Xaml.Interactivity/BehaviorOfT.cs
src/Avalonia.Xaml.Interactivity/BehaviorOfT.cs
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.ComponentModel; namespace Avalonia.Xaml.Interactivity { /// <summary> /// A base class for behaviors making them code compatib...
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; namespace Avalonia.Xaml.Interactivity { /// <summary> /// A base class for behaviors making them code compatible with older frameworks, ...
mit
C#
0998c46a85d69aa1088fce794be17343721fdc4d
Add missing StructLayout attribute
vbfox/pinvoke,AArnott/pinvoke,jmelosegui/pinvoke
src/BCrypt/BCrypt+BCRYPT_PKCS1_PADDING_INFO.cs
src/BCrypt/BCrypt+BCRYPT_PKCS1_PADDING_INFO.cs
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. namespace PInvoke { using System.Runtime.InteropServices; /// <content> /// Conta...
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. namespace PInvoke { /// <content> /// Contains the <see cref="BCRYPT_PKCS1_PADDING_INF...
mit
C#
25aea091d9d8aaf7fbdc8ce777fa11ae9b5c752b
add comment
zyouyowa/Unity_cs
lockOnScripts/PlayerLockOn.cs
lockOnScripts/PlayerLockOn.cs
using UnityEngine; using System.Collections; /* * これは使用例 * こんな感じに使う */ public class PlayerLockOn : MonoBehaviour { private bool flag_down, flag, flag_up; private LockOnManager lockOnManager; private GameObject target; private bool lookOn; void Start () { flag_down = flag = flag_up = false; lockOnManager =...
using UnityEngine; using System.Collections; /* * これは使用例 * こんな感じに使う */ public class PlayerLockOn : MonoBehaviour { private bool flag_down, flag, flag_up; private LockOnManager lockOnManager; private GameObject target; private bool lookOn; void Start () { flag_down = flag = flag_up = false; lockOnManager =...
mit
C#
5654353e0e670148bab719bb3d11fb6134d4f37d
Use NonGeneric entry point for MessagePack-CSharp serializer
inter8ection/Obvs,megakid/Obvs.Serialization,inter8ection/Obvs.Serialization
Obvs.Serialization.MessagePack-CSharp/MessagePackCSharpMessageSerializer.cs
Obvs.Serialization.MessagePack-CSharp/MessagePackCSharpMessageSerializer.cs
using System.IO; using MessagePack; using MessagePack.Resolvers; namespace Obvs.Serialization.MessagePack { public class MessagePackCSharpMessageSerializer : IMessageSerializer { private readonly IFormatterResolver _resolver; public MessagePackCSharpMessageSerializer() : this(null...
using System.IO; using MessagePack; using MessagePack.Resolvers; namespace Obvs.Serialization.MessagePack { public class MessagePackCSharpMessageSerializer : IMessageSerializer { private readonly IFormatterResolver _resolver; public MessagePackCSharpMessageSerializer() : this(null...
mit
C#
9684db07cbbe3ef208c15b035b2c4299235ae431
Update grammar in RethrowExceptionAnalyzer.cs #839
carloscds/code-cracker,code-cracker/code-cracker,giggio/code-cracker,code-cracker/code-cracker,carloscds/code-cracker,eriawan/code-cracker,jwooley/code-cracker
src/CSharp/CodeCracker/Usage/RethrowExceptionAnalyzer.cs
src/CSharp/CodeCracker/Usage/RethrowExceptionAnalyzer.cs
using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Diagnostics; using System.Collections.Immutable; using System.Linq; namespace CodeCracker.CSharp.Usage { [DiagnosticAnalyzer(LanguageNames.CSharp)] public class RethrowExc...
using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Diagnostics; using System.Collections.Immutable; using System.Linq; namespace CodeCracker.CSharp.Usage { [DiagnosticAnalyzer(LanguageNames.CSharp)] public class RethrowExc...
apache-2.0
C#
c1b8f3abf39a4856e5f48a20a59ecc14580947a0
Fix doc comment
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
src/Microsoft.AspNetCore.Identity/IQueryableUserStore.cs
src/Microsoft.AspNetCore.Identity/IQueryableUserStore.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.Linq; namespace Microsoft.AspNetCore.Identity { /// <summary> /// Provides an abstraction for querying users in a User store. ...
// 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.Linq; namespace Microsoft.AspNetCore.Identity { /// <summary> /// Provides an abstraction for querying roles in a User store. ...
apache-2.0
C#
d8bc967dd9895d2a2e2ad9ba7e0ed54bc1410941
Remove inheritance chain for ChargeShippingOptions
stripe/stripe-dotnet
src/Stripe.net/Services/Charges/ChargeShippingOptions.cs
src/Stripe.net/Services/Charges/ChargeShippingOptions.cs
namespace Stripe { using Newtonsoft.Json; public class ChargeShippingOptions : INestedOptions { /// <summary> /// Shipping address. /// </summary> [JsonProperty("address")] public AddressOptions Address { get; set; } /// <summary> /// The delivery se...
namespace Stripe { using Newtonsoft.Json; public class ChargeShippingOptions : ShippingOptions { [JsonProperty("carrier")] public string Carrier { get; set; } [JsonProperty("tracking_number")] public string TrackingNumber { get; set; } } }
apache-2.0
C#
effd342f3afc9e6a2e98f0166a766d63366ee2af
Handle pixels that supposed to obscure sprite parts
k-t/SharpHaven
MonoHaven.Client/Graphics/Sprites/SpriteSheet.cs
MonoHaven.Client/Graphics/Sprites/SpriteSheet.cs
using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using MonoHaven.Resources; namespace MonoHaven.Graphics.Sprites { public class SpriteSheet : IEnumerable<SpritePart>, IDisposable { private Texture tex; private readonly List<SpritePart> parts; public Sp...
using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using MonoHaven.Resources; namespace MonoHaven.Graphics.Sprites { public class SpriteSheet : IEnumerable<SpritePart>, IDisposable { private Texture tex; private readonly List<SpritePart> parts; public Sp...
mit
C#
d995d027d10a4740982ff17459f56c1518e2cc16
Convert EncryptedString to String explicitly
detunized/lastpass-sharp,rottenorange/lastpass-sharp,detunized/lastpass-sharp
example/Program.cs
example/Program.cs
using System; using System.IO; using LastPass; namespace Example { class Program { static void Main(string[] args) { // Read LastPass credentials from a file // The file should contain 2 lines: username and password. // See credentials.txt.example for an exam...
using System; using System.IO; using LastPass; namespace Example { class Program { static void Main(string[] args) { // Read LastPass credentials from a file // The file should contain 2 lines: username and password. // See credentials.txt.example for an exam...
mit
C#
b9c7f662b7464340c3e427d99448c81e25d0107e
Revert "Revert "Revert "疑问"""
wangzheng888520/CefSharp,wangzheng888520/CefSharp,wangzheng888520/CefSharp,wangzheng888520/CefSharp
CefSharp.WinForms.Example/Program.cs
CefSharp.WinForms.Example/Program.cs
// Copyright © 2010-2015 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; using System.Windows.Forms; using CefSharp.Example; using CefSharp.WinForms.Example.Minimal; namespace CefSharp.WinForms.Example { ...
// Copyright © 2010-2015 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; using System.Windows.Forms; using CefSharp.Example; using CefSharp.WinForms.Example.Minimal; namespace CefSharp.WinForms.Example { ...
bsd-3-clause
C#
5dcac9cf89ca1d328f47eb4e49fbc96bbd14c3a8
Use static factory method for constructing Notification class
pawotter/mastodon-api-cs
Mastodon.API/Entities/Notification.cs
Mastodon.API/Entities/Notification.cs
using System; using Newtonsoft.Json; namespace Mastodon.API { /// <summary> /// Notification. /// https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#notification /// </summary> public class Notification { [JsonProperty(PropertyName = "id")] public strin...
using System; using Newtonsoft.Json; namespace Mastodon.API { /// <summary> /// Notification. /// https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#notification /// </summary> public class Notification { [JsonProperty(PropertyName = "id")] public strin...
mit
C#
8721cc1988a1f62f816be62e9e23625b2bed9ee5
Change starting search from 1 billion because none before
fredatgithub/UsefulFunctions
ConsoleAppPrimesByHundred/Program.cs
ConsoleAppPrimesByHundred/Program.cs
using System; using FonctionsUtiles.Fred.Csharp; namespace ConsoleAppPrimesByHundred { internal class Program { private static void Main() { Action<string> display = Console.WriteLine; display("Prime numbers by hundred:"); foreach (var kvp in FunctionsPrimes.NumberOfPrimesByHundred(1000...
using System; using FonctionsUtiles.Fred.Csharp; namespace ConsoleAppPrimesByHundred { internal class Program { private static void Main() { Action<string> display = Console.WriteLine; display("Prime numbers by hundred:"); foreach (var kvp in FunctionsPrimes.NumberOfPrimesByHundred(1000...
mit
C#
6100e33dfb05e0400d68330a6d33a5e6d2447f40
Remove unused code
kiyoaki/bitflyer-api-dotnet-client
test/BitFlyer.Apis.Test/Properties/AssemblyInfo.cs
test/BitFlyer.Apis.Test/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("BitFlyer.Apis.Test")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("BitFlyer.Apis.Test")] [assembly: AssemblyCopyright("Copyright © K...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 // アセンブリに関連付けられている情報を変更するには、 // これらの属性値を変更してください。 [assembly: AssemblyTitle("BitFlyer.Apis.Test")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration(""...
mit
C#
2219a4b0d31589351d47285d89276ac16a4046e2
Add serializable attribute
MHeasell/Mappy,MHeasell/Mappy
Mappy/Maybe/MaybeWasNoneException.cs
Mappy/Maybe/MaybeWasNoneException.cs
namespace Mappy.Maybe { using System; [Serializable] public class MaybeWasNoneException : Exception { } }
namespace Mappy.Maybe { using System; public class MaybeWasNoneException : Exception { } }
mit
C#
1808c0f789eba410c0c6178422fef9d8d17f9b42
Increment assembly version.
feliperomero3/MVVMSandbox
MicroMvvm/Properties/AssemblyInfo.cs
MicroMvvm/Properties/AssemblyInfo.cs
using System.Resources; 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. [ass...
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("Mi...
mit
C#
1214ba241cefb67bf3fc60fd56861a088ec15e3b
Fix default values when instatntiating a UniqueRowsXml
Seddryck/NBi,Seddryck/NBi
NBi.Xml/Constraints/UniqueRowsXml.cs
NBi.Xml/Constraints/UniqueRowsXml.cs
using NBi.Core.ResultSet; using NBi.Xml.Items.ResultSet; using System.Collections.Generic; using System.ComponentModel; using System.Xml.Serialization; namespace NBi.Xml.Constraints { public class UniqueRowsXml : AbstractConstraintXml { public UniqueRowsXml() { KeysSet = S...
using NBi.Core.ResultSet; using NBi.Xml.Items.ResultSet; using System.Collections.Generic; using System.ComponentModel; using System.Xml.Serialization; namespace NBi.Xml.Constraints { public class UniqueRowsXml : AbstractConstraintXml { public UniqueRowsXml() { } [Xml...
apache-2.0
C#
c75e945e329be442d2236133178575199500025c
Bump version to 2.0.0-alpha2
HangfireIO/Hangfire.Dashboard.Authorization
Hangfire.Dashboard.Authorization/Properties/AssemblyInfo.cs
Hangfire.Dashboard.Authorization/Properties/AssemblyInfo.cs
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("Hangfire.Dashboard.Authorization")] [asse...
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("Hangfire.Dashboard.Authorization")] [asse...
mit
C#
8480e77d73d349244f8b72fd4a578703883c8133
Speed up razor
NitorInc/NitoriWare,Barleytree/NitoriWare,Barleytree/NitoriWare,NitorInc/NitoriWare
Assets/Microgames/KagerouCut/Scripts/RazorController.cs
Assets/Microgames/KagerouCut/Scripts/RazorController.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; public class RazorController : MonoBehaviour { private float speed = 120f; private bool has_moved = false; // Use this for initialization void Start () { } // Update is called once per frame void Upd...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class RazorController : MonoBehaviour { private float speed = 100f; private bool has_moved = false; // Use this for initialization void Start () { } // Update is called once per frame void Upd...
mit
C#
f6b249350dde9e69b9651e0a068b3cd51ae0c571
Update 06-DeleteTable.cs
awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,a...
.dotnet/example_code/DynamoDB/TryDax/06-DeleteTable.cs
.dotnet/example_code/DynamoDB/TryDax/06-DeleteTable.cs
// snippet-sourcedescription:[ ] // snippet-service:[dynamodb] // snippet-keyword:[dotNET] // snippet-keyword:[Amazon DynamoDB] // snippet-keyword:[Code Sample] // snippet-keyword:[ ] // snippet-sourcetype:[full-example] // snippet-sourcedate:[ ] // snippet-sourceauthor:[AWS] // snippet-start:[dynamodb.dotNET.trydax.06...
// snippet-sourcedescription:[ ] // snippet-service:[dynamodb] // snippet-keyword:[dotNET] // snippet-keyword:[Amazon DynamoDB] // snippet-keyword:[Code Sample] // snippet-keyword:[ ] // snippet-sourcetype:[full-example] // snippet-sourcedate:[ ] // snippet-sourceauthor:[AWS] // snippet-start:[dynamodb.dotNET.trydax.06...
apache-2.0
C#
91b5be7ed1f8de33ab62d745e387428b53176d3c
select EventArgs
nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet
WalletWasabi.Fluent/Behaviors/FocusOnEnableBehavior.cs
WalletWasabi.Fluent/Behaviors/FocusOnEnableBehavior.cs
using Avalonia; using Avalonia.Controls; using Avalonia.Xaml.Interactivity; using System; using System.Reactive.Linq; namespace WalletWasabi.Fluent.Behaviors { public class FocusOnEnableBehavior : Behavior<Control> { protected override void OnAttached() { base.OnAttached(); Observable. FromEventPatter...
using Avalonia; using Avalonia.Controls; using Avalonia.Xaml.Interactivity; using System; using System.Reactive.Linq; namespace WalletWasabi.Fluent.Behaviors { public class FocusOnEnableBehavior : Behavior<Control> { protected override void OnAttached() { base.OnAttached(); Observable. FromEventPatter...
mit
C#
a37c644838720a68fd66c62691d3b16b003a36ae
Optimize wind collision
TheNextGuy32/blindfold
Assets/Scripts/WindManager.cs
Assets/Scripts/WindManager.cs
using UnityEngine; using System.Collections.Generic; public class WindManager : MonoBehaviour { public List<GameObject> wind = new List<GameObject>(); public float maxWindDistance; public float maxWindForce; // Update is called once per frame void Update() { for (int w = 0; w < wind....
using UnityEngine; using System.Collections.Generic; public class WindManager : MonoBehaviour { public List<GameObject> wind = new List<GameObject>(); public float maxWindDistance; public float maxWindForce; // Update is called once per frame void Update() { for (int w = 0; w < wind....
mit
C#
144f039ffe9e6eb723fccc578c1ace99ad2123a7
fix build error
andyfmiller/LtiLibrary
test/LtiLibrary.NetCore.Tests/SecureClientShould.cs
test/LtiLibrary.NetCore.Tests/SecureClientShould.cs
using System; using System.Collections.Generic; using System.Net.Http; using LtiLibrary.NetCore.Clients; using LtiLibrary.NetCore.Common; using LtiLibrary.NetCore.Extensions; using LtiLibrary.NetCore.Lis.v1; using LtiLibrary.NetCore.Lti.v1; using LtiLibrary.NetCore.OAuth; using LtiLibrary.NetCore.Tests.TestHelpers; us...
using System; using System.Collections.Generic; using System.Net.Http; using LtiLibrary.NetCore.Clients; using LtiLibrary.NetCore.Common; using LtiLibrary.NetCore.Extensions; using LtiLibrary.NetCore.Lis.v1; using LtiLibrary.NetCore.Lti.v1; using LtiLibrary.NetCore.OAuth; using LtiLibrary.NetCore.Tests.TestHelpers; us...
apache-2.0
C#
f4a38437314b00f99122c2b36d14a016c26a8c52
Fix unit test
AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia
tests/Avalonia.Controls.UnitTests/TextBlockTests.cs
tests/Avalonia.Controls.UnitTests/TextBlockTests.cs
using System; using Avalonia.Controls.Documents; using Avalonia.Data; using Avalonia.Media; using Avalonia.Rendering; using Avalonia.UnitTests; using Moq; using Xunit; namespace Avalonia.Controls.UnitTests { public class TextBlockTests { [Fact] public void DefaultBindingMode_Should_Be_OneWay() ...
using System; using Avalonia.Controls.Documents; using Avalonia.Data; using Avalonia.Media; using Avalonia.Rendering; using Avalonia.UnitTests; using Moq; using Xunit; namespace Avalonia.Controls.UnitTests { public class TextBlockTests { [Fact] public void DefaultBindingMode_Should_Be_OneWay() ...
mit
C#
6e87725f067fe229c9ade6f8a3c8c6f41bc56c71
Increment the version to 1.1.2.0
ladimolnar/BitcoinBlockchain
Sources/BitcoinBlockchain/Properties/AssemblyInfo.cs
Sources/BitcoinBlockchain/Properties/AssemblyInfo.cs
//----------------------------------------------------------------------- // <copyright file="AssemblyInfo.cs"> // Copyright © Ladislau Molnar. All rights reserved. // </copyright> //----------------------------------------------------------------------- using System; using System.Reflection; using System.Runtime.Int...
//----------------------------------------------------------------------- // <copyright file="AssemblyInfo.cs"> // Copyright © Ladislau Molnar. All rights reserved. // </copyright> //----------------------------------------------------------------------- using System; using System.Reflection; using System.Runtime.Int...
apache-2.0
C#
1a160a63cf015db7687575da3995411997ae4892
Fix user name detection for some regions
Gl0/CasualMeter
Tera.Core/Game/Messages/Server/LoginServerMessage.cs
Tera.Core/Game/Messages/Server/LoginServerMessage.cs
// Copyright (c) Gothos // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Tera.Game.Messages { public class LoginServerMessage : ParsedMessage { public EntityId Id { get; private set; } public uint PlayerId { get; private set; } ...
// Copyright (c) Gothos // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Tera.Game.Messages { public class LoginServerMessage : ParsedMessage { public EntityId Id { get; private set; } public uint PlayerId { get; private set; } ...
mit
C#
20bd8e54042eb20925d46f38f62ed7f0e6dabc4e
Fix event action "Select Widget" cancel still applying
danielchalmers/DesktopWidgets
DesktopWidgets/Windows/EventActionPairEditor.xaml.cs
DesktopWidgets/Windows/EventActionPairEditor.xaml.cs
using System.Windows; using DesktopWidgets.Actions; using DesktopWidgets.Classes; using DesktopWidgets.Events; using DesktopWidgets.Helpers; namespace DesktopWidgets.Windows { /// <summary> /// Interaction logic for EventActionPairEditor.xaml /// </summary> public partial class EventActionPairEdit...
using System.Windows; using DesktopWidgets.Actions; using DesktopWidgets.Classes; using DesktopWidgets.Events; using DesktopWidgets.Helpers; namespace DesktopWidgets.Windows { /// <summary> /// Interaction logic for EventActionPairEditor.xaml /// </summary> public partial class EventActionPairEdit...
apache-2.0
C#
b06caa2c546ae1cbb6e204b064404e44eb25f348
Change the SendReceiveAsync() implementation to support commands that do not have responses
tparviainen/oscilloscope
LAN/LANInterface.cs
LAN/LANInterface.cs
using PluginContracts; using System; using System.IO; using System.Net; using System.Net.Sockets; using System.Threading.Tasks; namespace LAN { public class LANInterface : IPluginV1 { public string Name { get; } = "LAN"; public string Description { get; } = "LAN communication interface for os...
using PluginContracts; using System; using System.Threading.Tasks; using System.Net; using System.Net.Sockets; using System.Text; using System.IO; namespace LAN { public class LANInterface : IPluginV1 { public string Name { get; } = "LAN"; public string Description { get; } = "LAN communicati...
mit
C#
5926596ad9f63bb0daf6f8c9dec3b1839ab40bdf
Edit accounts of 'all' page.
grae22/BoozeHoundCloud,grae22/BoozeHoundCloud,grae22/BoozeHoundCloud
BoozeHoundCloud/Areas/Core/Views/Account/Index.cshtml
BoozeHoundCloud/Areas/Core/Views/Account/Index.cshtml
@Html.Partial("_AccountTypeLinks") <h2>All Accounts</h2> <table id="accountsTable" class="table table-bordered table-hover"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Balance</th> </tr> </thead> </table> @section scripts { <script> $(document).ready(function() { $('#acco...
@Html.Partial("_AccountTypeLinks") <h2>All Accounts</h2> <table id="accountsTable" class="table table-bordered table-hover"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Balance</th> </tr> </thead> </table> @section scripts { <script> $(document).ready(function() { $('#acco...
mit
C#
c6bc6be1280dfff8db52757ab51ab8aa9111b28b
Fix toolbox expand being interrupted by gaps between groups
peppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu
osu.Game/Rulesets/Edit/ExpandingToolboxContainer.cs
osu.Game/Rulesets/Edit/ExpandingToolboxContainer.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.Input.Events; using osu.Game.Graphics.Containers; using osuTK; namespace osu.Game.Rulesets.Edit { public class Expa...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Linq; using osu.Framework.Graphics; using osu.Framework.Input.Events; using osu.Game.Graphics.Containers; using osuTK; namespace osu.Game.Rulesets.Edit { ...
mit
C#
9a64ba55b066304056ecf86a0a46c6e1bac71724
Add some xml doc and properties for retired, disqualified and classified
Krusen/ErgastApi.Net
src/ErgastiApi/Responses/Models/RaceInfo/RaceResult.cs
src/ErgastiApi/Responses/Models/RaceInfo/RaceResult.cs
using System; using ErgastApi.Ids; using ErgastApi.Serialization; using ErgastApi.Serialization.Converters; using Newtonsoft.Json; namespace ErgastApi.Responses.Models.RaceInfo { public class RaceResult : ResultBase { /// <summary> /// Finishing position. /// R = Retired, D = Disqualifi...
using System; using ErgastApi.Ids; using ErgastApi.Serialization; using ErgastApi.Serialization.Converters; using Newtonsoft.Json; namespace ErgastApi.Responses.Models.RaceInfo { public class RaceResult : ResultBase { // TODO: Docu: equals Position or "R" retired, "D" disqualified, "E" excluded, "W" wi...
unlicense
C#
9604c1a705be65f526b5c3b612416b84fabda425
Add support for `type` when listing Products
richardlawley/stripe.net,stripe/stripe-dotnet
src/Stripe.net/Services/Products/ProductListOptions.cs
src/Stripe.net/Services/Products/ProductListOptions.cs
namespace Stripe { using Newtonsoft.Json; public class ProductListOptions : ListOptionsWithCreated { [JsonProperty("active")] public bool? Active { get; set; } [JsonProperty("ids")] public string[] Ids { get; set; } [JsonProperty("shippable")] public bool? ...
namespace Stripe { using Newtonsoft.Json; public class ProductListOptions : ListOptionsWithCreated { [JsonProperty("active")] public bool? Active { get; set; } [JsonProperty("ids")] public string[] Ids { get; set; } [JsonProperty("shippable")] public bool? ...
apache-2.0
C#
cd10c8b3e1c58c19eb7c76590f6ed97205d1ab63
Update StringExtensions.cs
BenjaminAbt/snippets
CSharp/StringExtensions.cs
CSharp/StringExtensions.cs
using System; namespace SchwabenCode.StringExtensions { public static class StringExtensions { /// <summary> /// Cuts a string with the given max length /// </summary> public static string WithMaxLength(this string value, int maxLength) { ...
public static class StringExtensions { /// <summary> /// Cuts a string with the given max length /// </summary> public static string WithMaxLength(this string value, int maxLength) { return value?.Substring(0, Math.Min(value.Length, maxLength)); } }
mit
C#
47b681e1b849eb1e4ab827c782a73c8f10d95ecd
Add content type for downloads
claudiospizzi/DSCPullServerWeb
Sources/DSCPullServerWeb/Helpers/FileActionResult.cs
Sources/DSCPullServerWeb/Helpers/FileActionResult.cs
using System.IO; using System.Net.Http; using System.Net.Http.Headers; using System.Threading; using System.Threading.Tasks; using System.Web.Http; namespace DSCPullServerWeb.Helpers { public class FileActionResult : IHttpActionResult { private FileInfo _file; public FileActionResult(FileInfo...
using System.IO; using System.Net.Http; using System.Net.Http.Headers; using System.Threading; using System.Threading.Tasks; using System.Web.Http; namespace DSCPullServerWeb.Helpers { public class FileActionResult : IHttpActionResult { private FileInfo _file; public FileActionResult(FileInfo...
mit
C#