commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
37e3a47e4fa896f4ada4a7be7b4f87cc07f7fd90
FuzzyCore/CommandClasses/GetFile.cs
FuzzyCore/CommandClasses/GetFile.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Sockets; using System.Text; using System.Threading; using System.Threading.Tasks; using FuzzyCore.Server; namespace FuzzyCore.Commands { public class GetFile { ConsoleMessage Message = new ConsoleMessa...
using FuzzyCore.Data; using FuzzyCore.Server; using System; using System.IO; namespace FuzzyCore.Commands { public class GetFile { ConsoleMessage Message = new ConsoleMessage(); private String FilePath; private String FileName; private JsonCommand mCommand; public GetFi...
Delete sender and edit constructor functions
Delete sender and edit constructor functions
C#
mit
muhammedikinci/FuzzyCore
df8da304379bafeb89edf9a65ff174a3b75eb07e
EchoClient/Program.cs
EchoClient/Program.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; namespace EchoClient { class Program { static void Main(string[] args) { Task main = MainAsync(args); main.Wait(); } static async Task MainAsy...
using System; using System.IO; using System.Net.Sockets; using System.Threading.Tasks; namespace EchoClient { class Program { const int MAX_WRITE_RETRY = 3; const int WRITE_RETRY_DELAY_SECONDS = 3; static void Main(string[] args) { Task main = MainAsync(args); main.Wait(); } static async Task Ma...
Add write retry mechanism into the client.
Add write retry mechanism into the client.
C#
mit
darkriszty/NetworkCardsGame
2f898b912c34b9e20e06c7c919ca1e01f0c9c38c
Assets/Alensia/Core/Input/BindingKey.cs
Assets/Alensia/Core/Input/BindingKey.cs
using Alensia.Core.Input.Generic; using UnityEngine.Assertions; namespace Alensia.Core.Input { public class BindingKey<T> : IBindingKey<T> where T : IInput { public string Id { get; } public BindingKey(string id) { Assert.IsNotNull(id, "id != null"); Id = id; ...
using Alensia.Core.Input.Generic; using UnityEngine.Assertions; namespace Alensia.Core.Input { public class BindingKey<T> : IBindingKey<T> where T : IInput { public string Id { get; } public BindingKey(string id) { Assert.IsNotNull(id, "id != null"); Id = id; ...
Use expression bodied methods for compact code
Use expression bodied methods for compact code
C#
apache-2.0
mysticfall/Alensia
65b1ff23c9213bbb1b3fcc2fd23578f0f7b59f8a
test/Microsoft.Framework.CodeGeneration.EntityFramework.Test/TestModels/TestModel.cs
test/Microsoft.Framework.CodeGeneration.EntityFramework.Test/TestModels/TestModel.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 Microsoft.Data.Entity; using Microsoft.Data.Entity.Metadata; using Microsoft.Data.Entity.Metadata.ModelConventions; namespace Microsoft.Framework...
// 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 Microsoft.Data.Entity; using Microsoft.Data.Entity.Metadata; using Microsoft.Data.Entity.Metadata.Conventions.Internal; namespace Microsoft.Frame...
Fix build: react to EF namespace change
Fix build: react to EF namespace change
C#
mit
OmniSharp/omnisharp-scaffolding,OmniSharp/omnisharp-scaffolding
1591f4cafd693121545424055748720a48f41f03
SharedAssemblyInfo.cs
SharedAssemblyInfo.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...
Update copyright year in assembly info
Update copyright year in assembly info
C#
mit
Heufneutje/HeufyAudioRecorder,Heufneutje/AudioSharp
2a231695d005fc84a5d0ebd79c8afc4543d3707f
DotNetRu.Utils/Config/AppConfig.cs
DotNetRu.Utils/Config/AppConfig.cs
using System.Text; using DotNetRu.Utils.Helpers; using Newtonsoft.Json; namespace DotNetRu.Clients.UI { public class AppConfig { public string AppCenterAndroidKey { get; set; } public string AppCenteriOSKey { get; set; } public string PushNotificationsChannel { get; set; }...
using System.Text; using DotNetRu.Utils.Helpers; using Newtonsoft.Json; namespace DotNetRu.Clients.UI { public class AppConfig { public string AppCenterAndroidKey { get; set; } public string AppCenteriOSKey { get; set; } public string PushNotificationsChannel { get; set; }...
Update link to Update function
Update link to Update function
C#
mit
DotNetRu/App,DotNetRu/App
7af2e04a49944e7b12849a2af609bbeec1ef2438
src/Test/XamExample/MyPage.xaml.cs
src/Test/XamExample/MyPage.xaml.cs
using System; using System.Collections.Generic; using Xamarin.Forms; namespace XamExample { public partial class MyPage : ContentPage { public MyPage() { InitializeComponent(); var c = 0; XamEffects.TouchEffect.SetColor(plus, Color.White); XamEffects.Comm...
using System; using System.Collections.Generic; using Xamarin.Forms; namespace XamExample { public partial class MyPage : ContentPage { public MyPage() { InitializeComponent(); var c = 0; XamEffects.TouchEffect.SetColor(plus, Color.White); XamEffects.Comm...
Update example, add long tap
Update example, add long tap
C#
mit
mrxten/XamEffects
a2116bdf5dc0458cc275369870f779117124caba
XwtPlus.TextEditor/TextEditorOptions.cs
XwtPlus.TextEditor/TextEditorOptions.cs
using Mono.TextEditor.Highlighting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xwt.Drawing; namespace XwtPlus.TextEditor { public class TextEditorOptions { public Font EditorFont = Font.FromName("Consolas 13"); publ...
using Mono.TextEditor.Highlighting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xwt.Drawing; namespace XwtPlus.TextEditor { public class TextEditorOptions { public Font EditorFont = Font.SystemMonospaceFont; public I...
Set Default Font to something that should be on all systems
Set Default Font to something that should be on all systems
C#
mit
luiscubal/XwtPlus.TextEditor,cra0zy/XwtPlus.TextEditor
8e8fdc7643afa27ffec62094b2d9f5ae6696b453
Sources/VersionInfo.cs
Sources/VersionInfo.cs
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="VersionInfo.cs" company="Dani Michel"> // Dani Michel 2013 // </copyright> // -----------------------------------------------------------------------------------------------...
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="VersionInfo.cs" company="Dani Michel"> // Dani Michel 2013 // </copyright> // -----------------------------------------------------------------------------------------------...
Build number removed from the version string, as this creates problems with NuGet dependencies.
Build number removed from the version string, as this creates problems with NuGet dependencies.
C#
mit
thedmi/MayBee,thedmi/Equ,thedmi/Finalist,thedmi/Equ,thedmi/Finalist,thedmi/MiniGuard
b4369ea97cb410519bc6cc651d711e91a5403279
Scripts/Messages/BaseAckMessage.cs
Scripts/Messages/BaseAckMessage.cs
using System.Collections; using System.Collections.Generic; using LiteNetLib.Utils; namespace LiteNetLibManager { public abstract class BaseAckMessage : ILiteNetLibMessage { public uint ackId; public AckResponseCode responseCode; public void Deserialize(NetDataReader reader) {...
using System.Collections; using System.Collections.Generic; using LiteNetLib.Utils; namespace LiteNetLibManager { public class BaseAckMessage : ILiteNetLibMessage { public uint ackId; public AckResponseCode responseCode; public void Deserialize(NetDataReader reader) { ...
Make base ack message not abstract
Make base ack message not abstract
C#
mit
insthync/LiteNetLibManager,insthync/LiteNetLibManager
a537c1d0f95aa6836933e563bdf201dfe861373a
LtiLibrary.AspNet.Tests/LineItemsControllerUnitTests.cs
LtiLibrary.AspNet.Tests/LineItemsControllerUnitTests.cs
using System; using System.Net; using LtiLibrary.Core.Outcomes.v2; using Newtonsoft.Json; using Xunit; namespace LtiLibrary.AspNet.Tests { public class LineItemsControllerUnitTests { [Fact] public void GetLineItemBeforePostReturnsNotFound() { var controller = new LineItemsC...
using System; using System.Net; using LtiLibrary.Core.Outcomes.v2; using Newtonsoft.Json; using Xunit; namespace LtiLibrary.AspNet.Tests { public class LineItemsControllerUnitTests { [Fact] public void GetLineItemBeforePostReturnsNotFound() { var controller = new LineItemsC...
Add Async suffix to async methods
Add Async suffix to async methods
C#
apache-2.0
andyfmiller/LtiLibrary
4a0613672488e4bdcc5d931f7a1b4eebbe0edcf0
Source/Slinqy.Test.Functional/Utilities/Polling/Poll.cs
Source/Slinqy.Test.Functional/Utilities/Polling/Poll.cs
namespace Slinqy.Test.Functional.Utilities.Polling { using System; using System.Diagnostics; using System.Threading; /// <summary> /// Provides common polling functionality. /// </summary> internal static class Poll { /// <summary> /// Polls the specified function until...
namespace Slinqy.Test.Functional.Utilities.Polling { using System; using System.Diagnostics; using System.Threading; /// <summary> /// Provides common polling functionality. /// </summary> internal static class Poll { /// <summary> /// Polls the specified function until...
Fix bug in polling logic.
Fix bug in polling logic.
C#
mit
rakutensf-malex/slinqy,rakutensf-malex/slinqy
40f7858e5fa1a1c84be32ae002daeb837a086eb2
NLogger/NLogger/CustomLogFactory.cs
NLogger/NLogger/CustomLogFactory.cs
using System.Collections.Generic; using System.Configuration; using System.Linq; namespace NLogger { public class CustomLogFactory<T> where T : NLoggerSection { private readonly List<ILogWriterRegistration<T>> _logWriterTypes; public CustomLogFactory() { _logWriterTypes= n...
using System.Collections.Generic; using System.Configuration; using System.Linq; namespace NLogger { public class CustomLogFactory<T> where T : NLoggerSection { private readonly List<ILogWriterRegistration<T>> _logWriterTypes; public CustomLogFactory() { _logWriterTypes= n...
Support config from alternative source
Support config from alternative source
C#
mit
Lethrir/NLogger
80e1d55909210da8fc1a748289805ac5dda76c51
JustEnoughVi/ViMode.cs
JustEnoughVi/ViMode.cs
using System; using MonoDevelop.Ide.Editor; using MonoDevelop.Ide.Editor.Extension; namespace JustEnoughVi { public abstract class ViMode { protected TextEditor Editor { get; set; } public Mode RequestedMode { get; internal set; } protected ViMode(TextEditor editor) { ...
using System; using MonoDevelop.Ide.Editor; using MonoDevelop.Ide.Editor.Extension; namespace JustEnoughVi { public abstract class ViMode { protected TextEditor Editor { get; set; } public Mode RequestedMode { get; internal set; } protected ViMode(TextEditor editor) { ...
Handle overflows in line selection
Handle overflows in line selection
C#
mit
fadookie/monodevelop-justenoughvi,hifi/monodevelop-justenoughvi
c5afcf1c9c394c156e791cb7b6d03ea37ac571f3
src/Umbraco.Core/IO/SystemFiles.cs
src/Umbraco.Core/IO/SystemFiles.cs
using System.IO; using Umbraco.Core.Configuration; namespace Umbraco.Core.IO { public class SystemFiles { public static string TinyMceConfig => SystemDirectories.Config + "/tinyMceConfig.config"; public static string TelemetricsIdentifier => SystemDirectories.Umbraco + "/telemetrics-id.umb"; ...
using System.IO; using Umbraco.Core.Configuration; namespace Umbraco.Core.IO { public class SystemFiles { public static string TinyMceConfig => SystemDirectories.Config + "/tinyMceConfig.config"; public static string TelemetricsIdentifier => SystemDirectories.Data + "/telemetrics-id.umb"; ...
Move marker file into App_Data a folder that can never be served
Move marker file into App_Data a folder that can never be served
C#
mit
mattbrailsford/Umbraco-CMS,madsoulswe/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,KevinJump/Umbraco-CMS,mattbrailsford/Umbraco-CMS,abjerner/Umbraco-CMS,dawoe/Umbraco-CMS,KevinJump/Umbraco-CMS,robertjf/Umbraco-CMS,marcemarc/Umbraco-CMS,leekelleher/Umbraco-CMS,robertjf/Umbraco-CMS,abryukhov/Umbraco-CMS,umbraco/Umbraco-CMS,...
63ea463f5d40a6bd244bb5b47cf2328a8f53e0d7
Mono.Nat/SemaphoreSlimExtensions.cs
Mono.Nat/SemaphoreSlimExtensions.cs
using System; using System.Threading; using System.Threading.Tasks; namespace Mono.Nat { public static class SemaphoreSlimExtensions { class SemaphoreSlimDisposable : IDisposable { SemaphoreSlim Semaphore; public SemaphoreSlimDisposable (SemaphoreSlim semaphore) { Semaphore = semaphore; } p...
using System; using System.Threading; using System.Threading.Tasks; namespace Mono.Nat { static class SemaphoreSlimExtensions { class SemaphoreSlimDisposable : IDisposable { SemaphoreSlim Semaphore; public SemaphoreSlimDisposable (SemaphoreSlim semaphore) { Semaphore = semaphore; } public v...
Make this internal. It's not supposed to be part of the API
Make this internal. It's not supposed to be part of the API
C#
mit
mono/Mono.Nat
50ae9d782204f3c9a7eee93785203d96308e16c4
NuPack.Dialog/GlobalSuppressions.cs
NuPack.Dialog/GlobalSuppressions.cs
// This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. Project-level // suppressions either have no target or are given a specific target // and scoped to a namespace, type, member, etc. // // To add a suppression to this file, right-click the message in t...
// This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. Project-level // suppressions either have no target or are given a specific target // and scoped to a namespace, type, member, etc. // // To add a suppression to this file, right-click the message in t...
Add supression for generated xaml class
Add supression for generated xaml class --HG-- extra : rebase_source : 4c3bb4f12c4e333546b0eca536616e3bf8c33b7b
C#
apache-2.0
oliver-feng/nuget,rikoe/nuget,rikoe/nuget,mono/nuget,jholovacs/NuGet,dolkensp/node.net,mrward/NuGet.V2,mrward/NuGet.V2,themotleyfool/NuGet,mrward/NuGet.V2,anurse/NuGet,indsoft/NuGet2,chester89/nugetApi,GearedToWar/NuGet2,oliver-feng/nuget,jholovacs/NuGet,pratikkagda/nuget,zskullz/nuget,atheken/nuget,jholovacs/NuGet,cho...
ca86524c922012b32e7a1420c54b49d96a6df3d6
osu.Game/Online/RealtimeMultiplayer/MultiplayerRoom.cs
osu.Game/Online/RealtimeMultiplayer/MultiplayerRoom.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; namespace osu.Game.Online.RealtimeMultiplayer { [Serializable] public class MultiplayerRoom { private...
// 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; namespace osu.Game.Online.RealtimeMultiplayer { [Serializable] public class MultiplayerRoom { private...
Add locking on join/leave operations
Add locking on join/leave operations
C#
mit
peppy/osu-new,smoogipoo/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu,smoogipoo/osu,ppy/osu,ppy/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu
469ac7f48d4b432b83136887cc322e63252ed600
src/MitternachtBot/Modules/Forum/Services/ForumService.cs
src/MitternachtBot/Modules/Forum/Services/ForumService.cs
using System; using System.Threading.Tasks; using Mitternacht.Services; using NLog; namespace Mitternacht.Modules.Forum.Services { public class ForumService : IMService { private readonly IBotCredentials _creds; private readonly Logger _log; public GommeHDnetForumAPI.Forum Forum { get; private set; } public...
using System; using System.Threading.Tasks; using Mitternacht.Services; using NLog; namespace Mitternacht.Modules.Forum.Services { public class ForumService : IMService { private readonly IBotCredentials _creds; private readonly Logger _log; public GommeHDnetForumAPI.Forum Forum { get; private set; } public...
Print information about the exception when the bot fails to log in to the forum.
Print information about the exception when the bot fails to log in to the forum.
C#
mit
Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW
04cc8f883a26b35a4d26ee90994dd5d73096cf5c
csharp/Hello/HelloClient/Program.cs
csharp/Hello/HelloClient/Program.cs
using System; using Grpc.Core; using Hello; namespace HelloClient { class Program { public static void Main(string[] args) { Channel channel = new Channel("127.0.0.1:50051", ChannelCredentials.Insecure); var client = new HelloService.HelloServiceClient(channel); String user = "Euler"; var reply = ...
using System; using Grpc.Core; using Hello; namespace HelloClient { class Program { public static void Main(string[] args) { Channel channel = new Channel("127.0.0.1:50051", ChannelCredentials.Insecure); var client = new HelloService.HelloServiceClient(channel); // ideally you should check for errors ...
Add error handling for the client
Add error handling for the client
C#
mit
avinassh/grpc-errors,avinassh/grpc-errors,avinassh/grpc-errors,avinassh/grpc-errors,avinassh/grpc-errors,avinassh/grpc-errors,avinassh/grpc-errors,avinassh/grpc-errors
9e1578624d13a59b0e4ffb780ba9c856021ec68b
src/content/CloudBoilerplateNet/Views/Home/Index.cshtml
src/content/CloudBoilerplateNet/Views/Home/Index.cshtml
@model IEnumerable<Article> @{ ViewData["Title"] = "Home Page"; } <div class="header clearfix"> <nav> <ul class="nav nav-pills pull-right"> <li role="presentation" class="active"><a href="/">Home</a></li> <li role="presentation"><a href="https://kenticocloud.com/" target="_blank...
@model IEnumerable<Article> @{ ViewData["Title"] = "Home Page"; } <div class="header clearfix"> <nav> <ul class="nav nav-pills pull-right"> <li role="presentation" class="active"><a href="/">Home</a></li> <li role="presentation"><a href="https://kenticocloud.com/" target="_blank...
Correct copy on the home page
Correct copy on the home page The last sentence in the jumbotron on home page is missing a verb.
C#
mit
Kentico/cloud-boilerplate-net,Kentico/cloud-boilerplate-net,Kentico/cloud-boilerplate-net
f55b3faa6e0c4cbebe04e92c28c171b8f897ecab
Manatee.Json/Serialization/Internal/AutoRegistration/StackSerializationDelegateProvider.cs
Manatee.Json/Serialization/Internal/AutoRegistration/StackSerializationDelegateProvider.cs
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace Manatee.Json.Serialization.Internal.AutoRegistration { internal class StackSerializationDelegateProvider : SerializationDelegateProviderBase { public override bool CanHandle(Type type) { return typ...
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace Manatee.Json.Serialization.Internal.AutoRegistration { internal class StackSerializationDelegateProvider : SerializationDelegateProviderBase { public override bool CanHandle(Type type) { return typ...
Decrease allocations in stack serializer
Decrease allocations in stack serializer
C#
mit
gregsdennis/Manatee.Json,gregsdennis/Manatee.Json
07c9cf2a4b9133a218323a4817a6e0d6b69e15f1
HeadRaceTiming-Site/Models/Crew.cs
HeadRaceTiming-Site/Models/Crew.cs
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; namespace HeadRaceTimingSite.Models { public class Crew { public int CrewId { get; set; } public string Name { get; set; } public int Sta...
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; namespace HeadRaceTimingSite.Models { public class Crew { public int CrewId { get; set; } public string Name { get; set; } public int Sta...
Add method to calculate time
Add method to calculate time
C#
mit
MelHarbour/HeadRaceTiming-Site,MelHarbour/HeadRaceTiming-Site,MelHarbour/HeadRaceTiming-Site
d7057af49f2e136b2a5f8246cc32e56d6ebc28e7
Source/HelixToolkit.SharpDX.SharedModel/Element3D/PostEffects/PostEffectMeshBorderHighlight.cs
Source/HelixToolkit.SharpDX.SharedModel/Element3D/PostEffects/PostEffectMeshBorderHighlight.cs
#if NETFX_CORE namespace HelixToolkit.UWP #else namespace HelixToolkit.Wpf.SharpDX #endif { using Model.Scene; /// <summary> /// Highlight the border of meshes /// </summary> public class PostEffectMeshBorderHighlight : PostEffectMeshOutlineBlur { protected override SceneNode OnCreateSc...
#if NETFX_CORE namespace HelixToolkit.UWP #else namespace HelixToolkit.Wpf.SharpDX #endif { using Model.Scene; /// <summary> /// Highlight the border of meshes /// </summary> public class PostEffectMeshBorderHighlight : PostEffectMeshOutlineBlur { protected override SceneNode OnCreateSc...
Fix border highlight effects gets the wrong effect node
Fix border highlight effects gets the wrong effect node
C#
mit
JeremyAnsel/helix-toolkit,holance/helix-toolkit,chrkon/helix-toolkit,helix-toolkit/helix-toolkit
ccbf34725d6148682d7d29bf2b6a3c295d231f2b
Source/Core/Pipeline/080_NotifySignalRAction.cs
Source/Core/Pipeline/080_NotifySignalRAction.cs
#region Copyright 2014 Exceptionless // This program is free software: you can redistribute it and/or modify it // under the terms of the GNU Affero General Public License as published // by the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // http://w...
#region Copyright 2014 Exceptionless // This program is free software: you can redistribute it and/or modify it // under the terms of the GNU Affero General Public License as published // by the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // http://w...
Increase the message notification delay slightly.
Increase the message notification delay slightly.
C#
apache-2.0
adamzolotarev/Exceptionless,exceptionless/Exceptionless,exceptionless/Exceptionless,exceptionless/Exceptionless,adamzolotarev/Exceptionless,adamzolotarev/Exceptionless,exceptionless/Exceptionless
1e5efe755937a65d71be0ad625eca98a995882d2
Battlezeppelins/Controllers/GameController.cs
Battlezeppelins/Controllers/GameController.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Battlezeppelins.Models; namespace Battlezeppelins.Controllers { public class GameController : BaseController { public ActionResult Metadata() { Game game = ...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Battlezeppelins.Models; namespace Battlezeppelins.Controllers { public class GameController : BaseController { public ActionResult Metadata() { Game game = ...
Send game state to client.
Send game state to client.
C#
apache-2.0
Mikuz/Battlezeppelins,Mikuz/Battlezeppelins
57e936e6bda2a9f9f60cc9329ab5ad559679a2bc
Ductus.FluentDocker/Model/HostEvents/Event.cs
Ductus.FluentDocker/Model/HostEvents/Event.cs
namespace Ductus.FluentDocker.Model.HostEvents { /// <summary> /// Base evnet emitte by the docker dameon using e.g. docker events. /// </summary> /// <remarks> /// See docker documentation https://docs.docker.com/engine/reference/commandline/events/ /// </remarks> public class Event { ...
namespace Ductus.FluentDocker.Model.HostEvents { /// <summary> /// Base evnet emitte by the docker dameon using e.g. docker events. /// </summary> /// <remarks> /// See docker documentation https://docs.docker.com/engine/reference/commandline/events/ /// </remarks> public class Event { /// <summary>...
Fix formatting in events so it will build
Fix formatting in events so it will build
C#
apache-2.0
mariotoffia/FluentDocker,mariotoffia/FluentDocker,mariotoffia/FluentDocker,mariotoffia/FluentDocker
3f2f8eaf535de487c7ac4fc7032ecf0011b4b771
src/FakeItEasy/Core/StrictFakeRule.cs
src/FakeItEasy/Core/StrictFakeRule.cs
namespace FakeItEasy.Core { using System; using static FakeItEasy.ObjectMembers; internal class StrictFakeRule : IFakeObjectCallRule { private readonly StrictFakeOptions options; public StrictFakeRule(StrictFakeOptions options) { this.options = options; ...
namespace FakeItEasy.Core { using System; using static FakeItEasy.ObjectMembers; internal class StrictFakeRule : IFakeObjectCallRule { private readonly StrictFakeOptions options; public StrictFakeRule(StrictFakeOptions options) { this.options = options; ...
Allow strict Fake to permit access to overridden Object methods
Allow strict Fake to permit access to overridden Object methods
C#
mit
thomaslevesque/FakeItEasy,blairconrad/FakeItEasy,blairconrad/FakeItEasy,FakeItEasy/FakeItEasy,FakeItEasy/FakeItEasy,thomaslevesque/FakeItEasy
f561243f495be0452151dcc0b155b6e5cdbd3b4a
OpenKh.Tools.LayoutViewer/Properties/Settings.Designer.cs
OpenKh.Tools.LayoutViewer/Properties/Settings.Designer.cs
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
Set default value to BackgroundColor
Set default value to BackgroundColor
C#
mit
Xeeynamo/KingdomHearts
d0fa35e851f13fb00b4789d0151f3a6c8c378e26
Espera/Espera.Core/SoundCloudSong.cs
Espera/Espera.Core/SoundCloudSong.cs
using Espera.Network; using Newtonsoft.Json; using System; namespace Espera.Core { public class SoundCloudSong : Song { public SoundCloudSong() : base(String.Empty, TimeSpan.Zero) { } [JsonProperty("artwork_url")] public Uri ArtworkUrl { get; set; } public ...
using Espera.Network; using Newtonsoft.Json; using System; namespace Espera.Core { public class SoundCloudSong : Song { private User user; public SoundCloudSong() : base(String.Empty, TimeSpan.Zero) { } [JsonProperty("artwork_url")] public Uri ArtworkUrl { ...
Set the artist to the username
Set the artist to the username
C#
mit
flagbug/Espera,punker76/Espera
17102b7283bbde0b1f79a217a47fc2217fc41a52
WinUsbInit/DeviceArrivalListener.cs
WinUsbInit/DeviceArrivalListener.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WinUsbInit { class DeviceArrivalListener : NativeWindow { // Constant value was found in the "windows.h" header file. private const int WM_D...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WinUsbInit { class DeviceArrivalListener : NativeWindow { // Constant values was found in the "windows.h" header file. private const int WM_...
Change WM_DEVICECHANGE value to hexadecimal
Change WM_DEVICECHANGE value to hexadecimal
C#
mit
ggobbe/WinUsbInit
e9c44438d6256604d8c4b53012eaec67e35c19ee
LynnaLab/UI/SpinButtonHexadecimal.cs
LynnaLab/UI/SpinButtonHexadecimal.cs
using System; using Gtk; namespace LynnaLab { [System.ComponentModel.ToolboxItem(true)] public partial class SpinButtonHexadecimal : Gtk.SpinButton { public SpinButtonHexadecimal() : base(0,100,1) { this.Numeric = false; } protected override int OnOutput() { ...
using System; using Gtk; namespace LynnaLab { [System.ComponentModel.ToolboxItem(true)] public partial class SpinButtonHexadecimal : Gtk.SpinButton { public SpinButtonHexadecimal() : base(0,100,1) { this.Numeric = false; } protected override int OnOutput() { ...
Use $ for hex symbol to match wla
Use $ for hex symbol to match wla
C#
mit
Drenn1/LynnaLab,Drenn1/LynnaLab
f68541e4aac5906a7911d350705dccc2f9c6fcca
Graph/IUndirectedEdge.cs
Graph/IUndirectedEdge.cs
using System; using System.Collections.Generic; namespace Graph { /// <summary> /// Represents an undirected edge (link) in a labeled <see cref="IGraph"/>. /// </summary> /// <typeparam name="V"> /// The type used to create vertex (node) labels. /// </typeparam> /// <typeparam name="W"> ...
using System; using System.Collections.Generic; namespace Graph { /// <summary> /// Represents an undirected edge (link) in a labeled <see cref="IGraph"/>. /// </summary> /// <typeparam name="V"> /// The type used to create vertex (node) labels. /// </typeparam> /// <typeparam name="W"> ...
Fix signature of undirected edge
Fix signature of undirected edge
C#
apache-2.0
DasAllFolks/SharpGraphs
04b2b56690a55852f61e02c498c40df749359369
Phoebe/Data/ForeignKeyJsonConverter.cs
Phoebe/Data/ForeignKeyJsonConverter.cs
using System; using Newtonsoft.Json; namespace Toggl.Phoebe.Data { public class ForeignKeyJsonConverter : JsonConverter { public override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer) { var model = (Model)value; if (model == null) { ...
using System; using Newtonsoft.Json; namespace Toggl.Phoebe.Data { public class ForeignKeyJsonConverter : JsonConverter { public override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer) { var model = (Model)value; if (model == null) { ...
Fix temporary models for relations.
Fix temporary models for relations. ForeignKeyJsonConverter creates temporary models for relations when they don't exist. However, the change in 64362cd changed the default ModifiedAt for models, thus the temporary models became the dominant ones and sync couldn't update them with correct data from server.
C#
bsd-3-clause
peeedge/mobile,masterrr/mobile,eatskolnikov/mobile,eatskolnikov/mobile,ZhangLeiCharles/mobile,masterrr/mobile,eatskolnikov/mobile,ZhangLeiCharles/mobile,peeedge/mobile
f1f8d3fba8d56987154aaa097014e72b649870cf
Joey/Net/GcmBroadcastReceiver.cs
Joey/Net/GcmBroadcastReceiver.cs
using System; using Android.App; using Android.Content; using Android.Support.V4.Content; namespace Toggl.Joey.Net { [BroadcastReceiver (Permission = "com.google.android.c2dm.permission.SEND")] [IntentFilter (new string[] { "com.google.android.c2dm.intent.RECEIVE" }, Categories = new string[]{ "com.tog...
using System; using Android.App; using Android.Content; using Android.Support.V4.Content; namespace Toggl.Joey.Net { [BroadcastReceiver (Permission = "com.google.android.c2dm.permission.SEND")] [IntentFilter (new string[] { "com.google.android.c2dm.intent.RECEIVE" }, Categories = new string[]{ "com.tog...
Use new intent instead of reusing broadcast one.
Use new intent instead of reusing broadcast one.
C#
bsd-3-clause
eatskolnikov/mobile,masterrr/mobile,ZhangLeiCharles/mobile,ZhangLeiCharles/mobile,eatskolnikov/mobile,eatskolnikov/mobile,masterrr/mobile,peeedge/mobile,peeedge/mobile
bc3b0a1f77f509307ae86225eeb3bd4c77f4c5a8
SIL.Windows.Forms/ReleaseNotes/ShowReleaseNotesDialog.cs
SIL.Windows.Forms/ReleaseNotes/ShowReleaseNotesDialog.cs
using System; using System.Drawing; using System.IO; using System.Windows.Forms; using MarkdownDeep; using SIL.IO; namespace SIL.Windows.Forms.ReleaseNotes { /// <summary> /// Shows a dialog for release notes; accepts html and markdown /// </summary> public partial class ShowReleaseNotesDialog : Form { private...
using System; using System.Drawing; using System.IO; using System.Windows.Forms; using MarkdownDeep; using SIL.IO; namespace SIL.Windows.Forms.ReleaseNotes { /// <summary> /// Shows a dialog for release notes; accepts html and markdown /// </summary> public partial class ShowReleaseNotesDialog : Form { private...
Set character encoding when displaying html from markdown (BL-3785)
Set character encoding when displaying html from markdown (BL-3785)
C#
mit
ermshiperete/libpalaso,glasseyes/libpalaso,sillsdev/libpalaso,tombogle/libpalaso,ddaspit/libpalaso,gtryus/libpalaso,ermshiperete/libpalaso,andrew-polk/libpalaso,sillsdev/libpalaso,tombogle/libpalaso,gmartin7/libpalaso,gtryus/libpalaso,tombogle/libpalaso,andrew-polk/libpalaso,gmartin7/libpalaso,sillsdev/libpalaso,sillsd...
7207c3d58d96b4db0a261fbcb435bfa885257ca5
VasysRomanNumeralsKata/RomanNumeral.cs
VasysRomanNumeralsKata/RomanNumeral.cs
using System; using System.Collections.Generic; using System.Text; namespace VasysRomanNumeralsKata { public class RomanNumeral { private int? _baseTenRepresentation = null; public RomanNumeral(int baseTenNumber) { _baseTenRepresentation = baseTenNumber; } ...
using System; using System.Collections.Generic; using System.Text; namespace VasysRomanNumeralsKata { public class RomanNumeral { private int? _baseTenRepresentation = null; public RomanNumeral(int baseTenNumber) { _baseTenRepresentation = baseTenNumber; } ...
Refactor logic for thousands (M, MM, MMM).
Refactor logic for thousands (M, MM, MMM).
C#
mit
pvasys/PillarRomanNumeralKata
e1d3052862e28885918c4d0d40c038dc5d1a5238
AssemblyInfo/Program.cs
AssemblyInfo/Program.cs
using System; using System.Reflection; namespace AssemblyInfo { class Program { static void Main(string[] args) { if (args != null && args.Length > 0) { Assembly asm = null; var name = args[0]; try { ...
using System; using System.Reflection; namespace AssemblyInfo { class Program { static void Main(string[] args) { if (args != null && args.Length > 0) { Assembly asm = null; var name = args[0]; try { ...
Add braces for the 'if (name.Substring(... '
Add braces for the 'if (name.Substring(... '
C#
mit
mansoor-omrani/AssemblyInfo
8f8abab942364670aa9138beef0a0916ca901a70
XlsxValidator/Program.cs
XlsxValidator/Program.cs
using System; using System.Linq; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Validation; // Adapted from // https://blogs.msdn.microsoft.com/ericwhite/2010/03/04/validate-open-xml-documents-using-the-open-xml-sdk-2-0/ namespace XlsxValidator { class MainClass { public static void Main(st...
using System; using System.Linq; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Validation; // Adapted from // https://blogs.msdn.microsoft.com/ericwhite/2010/03/04/validate-open-xml-documents-using-the-open-xml-sdk-2-0/ namespace XlsxValidator { class MainClass { public static void Main(st...
Print filename with each error
Print filename with each error
C#
apache-2.0
vindvaki/xlsx-validator
16e5e4007c8f73018b23a73fd0470538ed759be1
test/DiceApi.WebApi.Tests/DieControllerTest.cs
test/DiceApi.WebApi.Tests/DieControllerTest.cs
using Microsoft.AspNetCore.Mvc; using Xunit; using DiceApi.WebApi.Controllers; namespace DiceApi.WebApi.Tests { /// <summary> /// Test class for <see cref="DieController" />. /// </summary> public class DieControllerTest { /// <summary> /// Verifies that Get() returns a BadRequest...
using Microsoft.AspNetCore.Mvc; using Xunit; using DiceApi.WebApi.Controllers; namespace DiceApi.WebApi.Tests { /// <summary> /// Test class for <see cref="DieController" />. /// </summary> public class DieControllerTest { /// <summary> /// Verifies that Get() returns a BadRequest...
Add extra check on result type
Add extra check on result type
C#
mit
mspons/DiceApi
eb92831b23a5a4060f8f1d8b28f9c07ab0411be1
test/SerilogWeb.Test/Global.asax.cs
test/SerilogWeb.Test/Global.asax.cs
using System; using Serilog; using Serilog.Events; using SerilogWeb.Classic; namespace SerilogWeb.Test { public class Global : System.Web.HttpApplication { protected void Application_Start(object sender, EventArgs e) { ApplicationLifecycleModule.FormDataLoggingLevel = LogEventLevel...
using System; using Serilog; using Serilog.Events; using SerilogWeb.Classic; namespace SerilogWeb.Test { public class Global : System.Web.HttpApplication { protected void Application_Start(object sender, EventArgs e) { // ReSharper disable once PossibleNullReferenceException ...
Update sample app to use newer config API
Update sample app to use newer config API
C#
apache-2.0
serilog-web/classic
503d238a2d80f5c784d1cd55a20a4364ff53cc09
src/core/BrightstarDB.InternalTests/TestConfiguration.cs
src/core/BrightstarDB.InternalTests/TestConfiguration.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BrightstarDB.InternalTests { internal static class TestConfiguration { public static string DataLocation = "..\\..\\Data\\"; } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BrightstarDB.InternalTests { internal static class TestConfiguration { public static string DataLocation = "..\\..\\..\\Data\\"; } }
Fix path to internal test data location
Fix path to internal test data location
C#
mit
BrightstarDB/BrightstarDB,BrightstarDB/BrightstarDB,BrightstarDB/BrightstarDB,BrightstarDB/BrightstarDB
bfc9cb955232d806a914c3603ee89b3423e43840
CefSharp/IsBrowserInitializedChangedEventArgs.cs
CefSharp/IsBrowserInitializedChangedEventArgs.cs
// Copyright © 2010-2014 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; namespace CefSharp { /// <summary> /// Event arguments to the IsBrowserInitializedChanged event handler. /// </summary> public ...
// Copyright © 2010-2014 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; namespace CefSharp { /// <summary> /// Event arguments to the IsBrowserInitializedChanged event handler. /// </summary>...
Fix cherry pick, spaces not tabs and remove unused delegate
Fix cherry pick, spaces not tabs and remove unused delegate
C#
bsd-3-clause
rover886/CefSharp,gregmartinhtc/CefSharp,Livit/CefSharp,AJDev77/CefSharp,dga711/CefSharp,battewr/CefSharp,wangzheng888520/CefSharp,rlmcneary2/CefSharp,Octopus-ITSM/CefSharp,yoder/CefSharp,ruisebastiao/CefSharp,ITGlobal/CefSharp,Octopus-ITSM/CefSharp,Haraguroicha/CefSharp,AJDev77/CefSharp,battewr/CefSharp,haozhouxu/CefS...
e9a18f8f1b17e7046f7e4ba7e693cb5fd9df6441
src/Evolve/Metadata/MetadataTable.cs
src/Evolve/Metadata/MetadataTable.cs
using Evolve.Migration; using System.Collections.Generic; using Evolve.Utilities; using Evolve.Connection; namespace Evolve.Metadata { public abstract class MetadataTable : IEvolveMetadata { protected IWrappedConnection _wrappedConnection; public MetadataTable(string schema, string tableName,...
using Evolve.Migration; using System.Collections.Generic; using Evolve.Utilities; using Evolve.Connection; namespace Evolve.Metadata { public abstract class MetadataTable : IEvolveMetadata { protected IWrappedConnection _wrappedConnection; public MetadataTable(string schema, string tableName,...
Fix tableName not correctly saved
Fix tableName not correctly saved
C#
mit
lecaillon/Evolve
361b0d2db83f2bc00706f1bde137b3ca93b0f2de
src/Kernel32.Tests/Kernel32Facts.cs
src/Kernel32.Tests/Kernel32Facts.cs
// Copyright (c) All contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.IO; using System.Runtime.InteropServices; using PInvoke; using Xunit; using static PInvoke.Kernel32; public partial class Kernel32Fa...
// Copyright (c) All contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.IO; using System.Runtime.InteropServices; using System.Threading; using PInvoke; using Xunit; using static PInvoke.Kernel32; public ...
Add tests for `kernel32!SetHandleInformation` and `kernel32!GetHandleInformation`
Add tests for `kernel32!SetHandleInformation` and `kernel32!GetHandleInformation`
C#
mit
AArnott/pinvoke
a125cc70a3bfaa7287b1285eb0d2994278c19946
Assets/Scripts/RootContext.cs
Assets/Scripts/RootContext.cs
using UnityEngine; using System.Collections; using strange.extensions.context.impl; using strange.extensions.context.api; public class RootContext : MVCSContext, IRootContext { public RootContext(MonoBehaviour view) : base(view) { } public RootContext(MonoBehaviour view, ContextStartupFlags flags) ...
using UnityEngine; using System.Collections; using strange.extensions.context.impl; using strange.extensions.context.api; public class RootContext : MVCSContext, IRootContext { public RootContext(MonoBehaviour view) : base(view) { } public RootContext(MonoBehaviour view, ContextStartupFlags flags) ...
Add the Material Manager to the context for injection.
Add the Material Manager to the context for injection.
C#
mit
Mitsugaru/game-off-2016
928bce8fcdee3daf785539cd068b48274eae30e0
osu.Game/Scoring/LegacyDatabasedScore.cs
osu.Game/Scoring/LegacyDatabasedScore.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.IO.Stores; using osu.Game.Beatmaps; using osu.Game.Extensions; using osu.Game.Rulesets; using osu....
// 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.IO.Stores; using osu.Game.Beatmaps; using osu.Game.Extensions; using osu.Game.Rulesets; using osu....
Fix crash when attempting to watch a replay when the storage file doesn't exist
Fix crash when attempting to watch a replay when the storage file doesn't exist
C#
mit
ppy/osu,peppy/osu,peppy/osu,ppy/osu,ppy/osu,peppy/osu
78d027b8d11f38256eb56004f9f6f84f5a6767df
src/Arango/Arango.Client/Protocol/Response.cs
src/Arango/Arango.Client/Protocol/Response.cs
using System; using System.Net; using Arango.fastJSON; namespace Arango.Client.Protocol { internal class Response { internal int StatusCode { get; set; } internal WebHeaderCollection Headers { get; set; } internal string Body { get; set; } internal DataType DataType ...
using System; using System.Net; using Arango.fastJSON; namespace Arango.Client.Protocol { internal class Response { internal int StatusCode { get; set; } internal WebHeaderCollection Headers { get; set; } internal string Body { get; set; } internal DataType DataType ...
Put body data type check into switch statement
Put body data type check into switch statement
C#
mit
yojimbo87/ArangoDB-NET
ba6c5309e44adeafd2fce84b39cb629dec59b29a
SnittListan/Infrastructure/AutoMapperProfiles/MatchProfile.cs
SnittListan/Infrastructure/AutoMapperProfiles/MatchProfile.cs
using AutoMapper; using SnittListan.Models; using SnittListan.ViewModels; namespace SnittListan.Infrastructure { public class MatchProfile : Profile { protected override void Configure() { Mapper.CreateMap<Match, MatchViewModel>() .ForMember(x => x.Date, o => o.MapFrom(y => y.Date.ToShortDateS...
using System.Threading; using AutoMapper; using SnittListan.Models; using SnittListan.ViewModels; namespace SnittListan.Infrastructure { public class MatchProfile : Profile { protected override void Configure() { Mapper.CreateMap<Match, MatchViewModel>() .ForMember(x => x.Date, o => o.MapFrom...
Format date with user culture
Format date with user culture Date will be formatted as short date string with user preferred culture.
C#
mit
dlidstrom/Snittlistan,dlidstrom/Snittlistan,dlidstrom/Snittlistan
ae2120f9eb26e23ffb8fd49b91d98fbecf2dd26b
Harmony/Transpilers.cs
Harmony/Transpilers.cs
using System; using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; namespace Harmony { public static class Transpilers { public static IEnumerable<CodeInstruction> MethodReplacer(this IEnumerable<CodeInstruction> instructions, MethodBase from, MethodBase to, OpCode? callOpcode =...
using System; using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; namespace Harmony { public static class Transpilers { public static IEnumerable<CodeInstruction> MethodReplacer(this IEnumerable<CodeInstruction> instructions, MethodBase from, MethodBase to) { if (from == n...
Revert back to old signature (transpilers get confused with multiple version); add opcode=Call
Revert back to old signature (transpilers get confused with multiple version); add opcode=Call
C#
mit
pardeike/Harmony
ac03ef3d108c8498f92df50cc3bbc2f9ff06a462
src/Website/Program.cs
src/Website/Program.cs
// Copyright (c) Martin Costello, 2016. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.Website { using System; using Extensions; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting...
// Copyright (c) Martin Costello, 2016. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.Website { using System; using System.Threading.Tasks; using Extensions; using Microsoft.AspNetCore; ...
Convert Main to be async
Convert Main to be async Convert the Main() method to be asynchronous.
C#
apache-2.0
martincostello/website,martincostello/website,martincostello/website,martincostello/website
c2956613bb1c41cf894f0ab2ee5abd7b363e9356
source/MilitaryPlanner/Views/MainWindow.xaml.cs
source/MilitaryPlanner/Views/MainWindow.xaml.cs
using System.Windows; namespace MilitaryPlanner.Views { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { //InitializeComponent(); } } }
using System.Windows; namespace MilitaryPlanner.Views { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { //InitializeComponent(); } protected override void OnClosing(...
Fix for saving window state while minimized on closing
Fix for saving window state while minimized on closing
C#
apache-2.0
Esri/military-planner-application-csharp
fd0e50d57626c8fca9a3eb204468cc0ad0350c2c
ParcelTest/PrecedenceTests.cs
ParcelTest/PrecedenceTests.cs
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using ExprOpt = Microsoft.FSharp.Core.FSharpOption<AST.Expression>; using Expr = AST.Expression; namespace ParcelTest { [TestClass] class PrecedenceTests { [TestMethod] public void MultiplicationVsAdditionPrecedenceTest() ...
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using ExprOpt = Microsoft.FSharp.Core.FSharpOption<AST.Expression>; using Expr = AST.Expression; namespace ParcelTest { [TestClass] public class PrecedenceTests { [TestMethod] public void MultiplicationVsAdditionPrecedenceTe...
Make precedence test public to be discoverable by test runner.
Make precedence test public to be discoverable by test runner.
C#
bsd-2-clause
plasma-umass/parcel,plasma-umass/parcel,plasma-umass/parcel
81c16d8d10260cd6aa4590dd55ce6af4228ca871
src/Nest/QueryDsl/MatchAllQuery.cs
src/Nest/QueryDsl/MatchAllQuery.cs
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using Nest.Resolvers.Converters; using Newtonsoft.Json; namespace Nest { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] [JsonConverter(typeof(ReadAsTypeConverter<MatchAllQuery>))] public interface IMat...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using Nest.Resolvers.Converters; using Newtonsoft.Json; namespace Nest { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] [JsonConverter(typeof(ReadAsTypeConverter<MatchAllQuery>))] public interface IMat...
Fix post filter test after boost/descriptor refactoring
Fix post filter test after boost/descriptor refactoring
C#
apache-2.0
KodrAus/elasticsearch-net,RossLieberman/NEST,adam-mccoy/elasticsearch-net,cstlaurent/elasticsearch-net,TheFireCookie/elasticsearch-net,KodrAus/elasticsearch-net,azubanov/elasticsearch-net,jonyadamit/elasticsearch-net,jonyadamit/elasticsearch-net,jonyadamit/elasticsearch-net,UdiBen/elasticsearch-net,azubanov/elasticsear...
ba0e233f85032e6534ffa6174a632cb7d906a3e7
ModIso8583.Test/Parse/TestEncoding.cs
ModIso8583.Test/Parse/TestEncoding.cs
using System; using System.Text; using ModIso8583.Parse; using ModIso8583.Util; using Xunit; namespace ModIso8583.Test.Parse { public class TestEncoding { [Fact(Skip = "character encoding issue")] public void WindowsToUtf8() { string data = "05ácido"; Encoding e...
using System; using System.Text; using ModIso8583.Parse; using ModIso8583.Util; using Xunit; namespace ModIso8583.Test.Parse { public class TestEncoding { [Fact] public void WindowsToUtf8() { string data = "05ácido"; Encoding encoding = Encoding.GetEncoding("ISO...
Fix OS based character Encoding issue
Fix OS based character Encoding issue
C#
mit
Tochemey/Iso85834Net
e89d08f5f34eb8cac20a46b4f892bac2c84fd697
src/Repairis.Web.Core/Controllers/RepairisControllerBase.cs
src/Repairis.Web.Core/Controllers/RepairisControllerBase.cs
using Abp.AspNetCore.Mvc.Controllers; using Abp.IdentityFramework; using Microsoft.AspNetCore.Identity; namespace Repairis.Controllers { public abstract class RepairisControllerBase: AbpController { protected RepairisControllerBase() { LocalizationSourceName = RepairisConsts.Localiz...
using Abp.AspNetCore.Mvc.Controllers; using Abp.IdentityFramework; using Abp.Runtime.Validation; using Microsoft.AspNetCore.Identity; namespace Repairis.Controllers { [DisableValidation] public abstract class RepairisControllerBase: AbpController { protected RepairisControllerBase() { ...
Disable exception throwing when ModelState is not valid
Disable exception throwing when ModelState is not valid
C#
mit
dmytrokuzmin/RepairisCore,dmytrokuzmin/RepairisCore,dmytrokuzmin/RepairisCore
04750ce524823faa1a0091e0e49c2e1419be2727
Ets.Mobile/Ets.Mobile.WindowsPhone/Pages/Main/MainPage.xaml.cs
Ets.Mobile/Ets.Mobile.WindowsPhone/Pages/Main/MainPage.xaml.cs
using ReactiveUI; using Windows.UI.Xaml; namespace Ets.Mobile.Pages.Main { public sealed partial class MainPage { partial void PartialInitialize() { // Ensure to hide the status bar var statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView(); ...
using System; using Windows.UI.Xaml; using EventsMixin = Windows.UI.Xaml.Controls.EventsMixin; namespace Ets.Mobile.Pages.Main { public sealed partial class MainPage { partial void PartialInitialize() { // Ensure to hide the status bar var statusBar = Windows...
Use ReactiveUI Events for Loaded and SelectionChanged
Use ReactiveUI Events for Loaded and SelectionChanged
C#
apache-2.0
ApplETS/ETSMobile-WindowsPlatforms,ApplETS/ETSMobile-WindowsPlatforms
9abd73e0350bb472351f23fbe7831da8000d4d37
CORS/Controllers/ValuesController.cs
CORS/Controllers/ValuesController.cs
using System.Collections.Generic; using System.Web.Http; using System.Web.Http.Cors; namespace CORS.Controllers { public class ValuesController : ApiController { // GET api/values public IEnumerable<string> Get() { return new string[] { "This is a CORS request.",...
using System.Collections.Generic; using System.Web.Http; using System.Web.Http.Cors; namespace CORS.Controllers { public class ValuesController : ApiController { // GET api/values public IEnumerable<string> Get() { return new string[] { "This is a CORS request.",...
Add GetTititleEstimate that accepts data from URI.
Add GetTititleEstimate that accepts data from URI.
C#
mit
bigfont/webapi-cors
ba98e0a15a7b44b1fc4911f4cf6b36409d655244
Torch/Patches/SessionDownloadPatch.cs
Torch/Patches/SessionDownloadPatch.cs
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Sandbox.Game.World; using Torch.Managers.PatchManager; using Torch.Mod; using VRage.Game; namespace Torch.Patches { [PatchShim] internal class SessionDownloadPatch...
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Sandbox.Game.World; using Torch.Managers.PatchManager; using Torch.Mod; using VRage.Game; namespace Torch.Patches { [PatchShim] internal static class SessionDownlo...
Stop Equinox complaining about session download patch not being static
Stop Equinox complaining about session download patch not being static
C#
apache-2.0
TorchAPI/Torch
522f7379e4ae244b27636657cbb020755013227f
Colore.Tests/ColoreExceptionTests.cs
Colore.Tests/ColoreExceptionTests.cs
namespace Colore.Tests { using System; using NUnit.Framework; [TestFixture] public class ColoreExceptionTests { [Test] public void ShouldSetMessage() { const string Expected = "Test message."; Assert.AreEqual(Expected, new ColoreException("Test mess...
namespace Colore.Tests { using System; using NUnit.Framework; [TestFixture] public class ColoreExceptionTests { [Test] public void ShouldSetMessage() { const string Expected = "Test message."; Assert.AreEqual(Expected, new ColoreException("Test mess...
Fix ColoreException test performing wrong comparison.
Fix ColoreException test performing wrong comparison.
C#
mit
danpierce1/Colore,CoraleStudios/Colore,Sharparam/Colore,WolfspiritM/Colore
d639d329789153a4b9e20890efcdf2f55276129f
Battery-Commander.Web/Views/Soldiers/List.cshtml
Battery-Commander.Web/Views/Soldiers/List.cshtml
@model IEnumerable<Soldier> <h2>Soldiers @Html.ActionLink("Add New", "New", "Soldiers", null, new { @class = "btn btn-default" })</h2> <table class="table table-striped"> <thead> <tr> <th>@Html.DisplayNameFor(_ => _.FirstOrDefault().Rank)</th> <th>@Html.DisplayNameFor(_ => _.First...
@model IEnumerable<Soldier> <h2>Soldiers @Html.ActionLink("Add New", "New", "Soldiers", null, new { @class = "btn btn-default" })</h2> <table class="table table-striped"> <thead> <tr> <th></th> <th>@Html.DisplayNameFor(_ => _.FirstOrDefault().Rank)</th> <th>@Html.Displ...
Move details to first in list
Move details to first in list
C#
mit
mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander
01911993b4dd7140f8a4766365e5daebd0d13ee6
Faker/NumberFaker.cs
Faker/NumberFaker.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Faker { public static class NumberFaker { private static Random _random = new Random(); public static int Number() { return _random.Next(); } public static int Number(int maxValue) { return _random.Ne...
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; namespace Faker { public static class NumberFaker { private static readonly RNGCryptoServiceProvider Global = new RNGCryptoServiceProvider(); [ThreadStatic] privat...
Add thread-safe random number instance
Add thread-safe random number instance
C#
apache-2.0
benjaminramey/Faker
2caa7b50735595fb114dac5222aad04486df1b54
MitternachtWeb/Areas/User/Views/Verifications/Index.cshtml
MitternachtWeb/Areas/User/Views/Verifications/Index.cshtml
@model IEnumerable<(GommeHDnetForumAPI.Models.Entities.UserInfo UserInfo, Discord.WebSocket.SocketGuild Guild)> <h4>Verifizierungen</h4> <div class="table-responsive"> <table class="table"> <thead> <tr> <th></th> <th> @Html.DisplayNameFor(model => model.UserInfo.Username) </th> <th> @...
@model IEnumerable<(GommeHDnetForumAPI.Models.Entities.UserInfo UserInfo, Discord.WebSocket.SocketGuild Guild)> <h4>Verifizierungen</h4> <div class="table-responsive"> <table class="table"> <thead> <tr> <th></th> <th> @Html.DisplayNameFor(model => model.UserInfo.Username) </th> <th> @...
Use Url instead of UrlPath.
Use Url instead of UrlPath.
C#
mit
Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW
25964c541b8753c55b6b6e3329d1aff25e469f12
EventSourcingCQRS/Application/Interfaces/IInventoryService.cs
EventSourcingCQRS/Application/Interfaces/IInventoryService.cs
using System; using System.Collections.Generic; using System.Threading.Tasks; using DomainCore; using DomainCore.Interfaces; namespace Application.Interfaces { /// <summary> /// Primary application interface /// </summary> public interface IInventoryService { /* ReadModel */ // ...
using System; using System.Collections.Generic; using System.Threading.Tasks; using DomainCore; namespace Application.Interfaces { public interface IInventoryService { /* ReadModel */ // Get all Task<IEnumerable<InventoryItemDto>> InventoryAsync(); // Get one Task<I...
Revert "Changed generic object to a system object"
Revert "Changed generic object to a system object" This reverts commit 8338aa76f30a6e3898d79110494c66b167661eda.
C#
mit
tedbouskill/m-r-core-of,tedbouskill/m-r-core-of
5e06eef844a5e4c3687e5794780eebd7e0a63b7c
Source/Lib/TraktApiSharp/Objects/Get/Movies/TraktMovieImages.cs
Source/Lib/TraktApiSharp/Objects/Get/Movies/TraktMovieImages.cs
namespace TraktApiSharp.Objects.Get.Movies { using Basic; using Newtonsoft.Json; public class TraktMovieImages { [JsonProperty(PropertyName = "fanart")] public TraktImageSet FanArt { get; set; } [JsonProperty(PropertyName = "poster")] public TraktImageSet Poster { get;...
namespace TraktApiSharp.Objects.Get.Movies { using Basic; using Newtonsoft.Json; /// <summary>A collection of images and image sets for a Trakt movie.</summary> public class TraktMovieImages { /// <summary>Gets or sets the fan art image set.</summary> [JsonProperty(PropertyName = "...
Add documentation for movie images.
Add documentation for movie images.
C#
mit
henrikfroehling/TraktApiSharp
ad25f6f78780d54c5bf6dc1abfb1a592181fe45b
WalletWasabi.Tests/UnitTests/SerializableExceptionTests.cs
WalletWasabi.Tests/UnitTests/SerializableExceptionTests.cs
using System; using System.Collections.Generic; using System.Text; using WalletWasabi.Models; using Xunit; namespace WalletWasabi.Tests.UnitTests { public class SerializableExceptionTests { [Fact] public void UtxoRefereeSerialization() { var message = "Foo Bar Buzz"; var innerMessage = "Inner Foo Bar Buz...
using System; using System.Collections.Generic; using System.Text; using WalletWasabi.Models; using Xunit; namespace WalletWasabi.Tests.UnitTests { public class SerializableExceptionTests { [Fact] public void UtxoRefereeSerialization() { var message = "Foo Bar Buzz"; var innerMessage = "Inner Foo Bar Buz...
Use var instead of string
Use var instead of string
C#
mit
nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet
566cdec77a981985a7d03dbb6a67a6f36b76ae0b
Kudu.Core/Deployment/DeploymentManager.cs
Kudu.Core/Deployment/DeploymentManager.cs
using System; using System.Collections.Generic; using System.Linq; using Kudu.Core.SourceControl; namespace Kudu.Core.Deployment { public class DeploymentManager : IDeploymentManager { private readonly IRepository _repository; private readonly IDeployerFactory _deployerFactory; public Dep...
using System; using System.Collections.Generic; using System.Linq; using Kudu.Core.SourceControl; namespace Kudu.Core.Deployment { public class DeploymentManager : IDeploymentManager { private readonly IRepositoryManager _repositoryManager; private readonly IDeployerFactory _deployerFactory; ...
Create the repository only when it's needed for deployment.
Create the repository only when it's needed for deployment.
C#
apache-2.0
juoni/kudu,juoni/kudu,MavenRain/kudu,projectkudu/kudu,bbauya/kudu,duncansmart/kudu,kali786516/kudu,puneet-gupta/kudu,YOTOV-LIMITED/kudu,shrimpy/kudu,MavenRain/kudu,WeAreMammoth/kudu-obsolete,projectkudu/kudu,duncansmart/kudu,EricSten-MSFT/kudu,juoni/kudu,shibayan/kudu,shibayan/kudu,WeAreMammoth/kudu-obsolete,puneet-gup...
8757a464068c5a3ac754720e4cdbe6217549d703
src/common/CoCo.UI/ViewModels/OptionViewModel.cs
src/common/CoCo.UI/ViewModels/OptionViewModel.cs
using System.Collections.ObjectModel; using CoCo.UI.Data; namespace CoCo.UI.ViewModels { public class OptionViewModel : BaseViewModel { public OptionViewModel(Option option, IResetValuesProvider resetValuesProvider) { // TODO: it will invoke one event at invocation of clear and by ...
using System.Collections.ObjectModel; using System.ComponentModel; using System.Windows.Data; using CoCo.UI.Data; namespace CoCo.UI.ViewModels { public class OptionViewModel : BaseViewModel { private readonly ObservableCollection<LanguageViewModel> _languages = new ObservableCollection<LanguageViewMod...
Sort languages by ascending order.
Sort languages by ascending order.
C#
mit
GeorgeAlexandria/CoCo
53ffb2271c545837de71111eeb39339ae5f34814
osu.Framework.Tests/Visual/Sprites/TestSceneTexturedTriangle.cs
osu.Framework.Tests/Visual/Sprites/TestSceneTexturedTriangle.cs
using osu.Framework.Allocation; using osu.Framework.Graphics.Shapes; using osu.Framework.Graphics; using osu.Framework.Graphics.Textures; using System; using System.Collections.Generic; using osuTK; namespace osu.Framework.Tests.Visual.Sprites { public class TestSceneTexturedTriangle : FrameworkTestScene { ...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Graphics.Shapes; using osu.Framework.Graphics; using osu.Framework.Graphics.Textures; using osuTK; namespace osu.Fra...
Add the licence header and remove unused usings
Add the licence header and remove unused usings
C#
mit
EVAST9919/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework
8f168efd4e04aed2b3b2333a1070dee8f8607476
res/scripts/appveyor.cake
res/scripts/appveyor.cake
public sealed class AppVeyorSettings { public bool IsLocal { get; set; } public bool IsRunningOnAppVeyor { get; set; } public bool IsPullRequest { get; set; } public bool IsDevelopBranch { get; set; } public bool IsMasterBranch { get; set; } public bool IsTaggedBuild { get; set; } public boo...
public sealed class AppVeyorSettings { public bool IsLocal { get; set; } public bool IsRunningOnAppVeyor { get; set; } public bool IsPullRequest { get; set; } public bool IsDevelopBranch { get; set; } public bool IsMasterBranch { get; set; } public bool IsTaggedBuild { get; set; } public boo...
Allow skipping publish of package when fixing docs.
Allow skipping publish of package when fixing docs.
C#
mit
spectresystems/commandline
f3650f8dd95dca9aff4be8419f866a34bf8b4dbe
BindableApplicationBar/Properties/AssemblyInfo.cs
BindableApplicationBar/Properties/AssemblyInfo.cs
using System.Reflection; using System.Resources; 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("BindableApplicati...
using System.Reflection; using System.Resources; 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("BindableApplicati...
Increase the version to 1.1.1.
Increase the version to 1.1.1.
C#
mit
Alovel/BindableApplicationBar,Alovel/BindableApplicationBar
5b2c0af105787653214bbbf5d0da31edfa27b979
CoolFish/ReleaseManager/ReleaseManager/Program.cs
CoolFish/ReleaseManager/ReleaseManager/Program.cs
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.IO.Compression; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ReleaseManager { class Program { static void Main(string[] args) { tr...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.IO.Compression; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ReleaseManager { class Program { static void Main(string[] args) { tr...
Change release manager zip file name
Change release manager zip file name
C#
mit
GliderPro/CoolFish,dgladkov/CoolFish
b9d99b5f4049531bcb9c255d78c088652c094b29
osu.Game/Graphics/UserInterface/ScreenBreadcrumbControl.cs
osu.Game/Graphics/UserInterface/ScreenBreadcrumbControl.cs
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Linq; using osu.Framework.Extensions.IEnumerableExtensions; using osu.Framework.Screens; namespace osu.Game.Graphics.UserInterface { /// <summary> ...
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Linq; using osu.Framework.Extensions.IEnumerableExtensions; using osu.Framework.Screens; namespace osu.Game.Graphics.UserInterface { /// <summary> ...
Fix nullref when exiting the last screen.
Fix nullref when exiting the last screen.
C#
mit
peppy/osu,DrabWeb/osu,naoey/osu,ppy/osu,naoey/osu,2yangk23/osu,johnneijzen/osu,naoey/osu,ppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu-new,ZLima12/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,EVAST9919/osu,johnneijzen/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu,2yangk23/osu,smoogipooo/osu,ZLima...
6237e4595fc0a7f9c4c8ad144115c35be4e81d63
R7.University.Core.Tests/Program.cs
R7.University.Core.Tests/Program.cs
using System; using R7.University.Core.Templates; namespace R7.University.Core.Tests { class Program { static void Main (string [] args) { Console.WriteLine ("Please enter test number and press [Enter]:"); Console.WriteLine ("1. Workbook to CSV"); Console.Wri...
using System; using R7.University.Core.Templates; namespace R7.University.Core.Tests { class Program { static void Main (string [] args) { while (true) { Console.WriteLine ("> Please enter test number and press [Enter]:"); Console.WriteLine ("---"); ...
Improve console menu for "visual" tests
Improve console menu for "visual" tests
C#
agpl-3.0
roman-yagodin/R7.University,roman-yagodin/R7.University,roman-yagodin/R7.University
95f282cba4f1e420e128eae2a8b2f99ade601719
NQuery.Language.ActiproWpf/ComposableLanguageServiceRegistrar.cs
NQuery.Language.ActiproWpf/ComposableLanguageServiceRegistrar.cs
using System; using System.Collections.Generic; using System.ComponentModel.Composition; using ActiproSoftware.Text.Implementation; namespace NQueryViewerActiproWpf { [Export(typeof(ILanguageServiceRegistrar))] internal sealed class ComposableLanguageServiceRegistrar : ILanguageServiceRegistrar { [...
using System; using System.Collections.Generic; using System.ComponentModel.Composition; using ActiproSoftware.Text.Implementation; namespace NQueryViewerActiproWpf { [Export(typeof(ILanguageServiceRegistrar))] internal sealed class ComposableLanguageServiceRegistrar : ILanguageServiceRegistrar { [...
Introduce variable to make code more readable
Introduce variable to make code more readable
C#
mit
terrajobst/nquery-vnext
556c61c2a9303457e44a62bcb3cd71f50702a514
LRU.Net/LRU.Net/LruCache.cs
LRU.Net/LRU.Net/LruCache.cs
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LRU.Net { public class LruCache<TKey, TValue> { private readonly int _maxObjects; private OrderedDictionary _data; public...
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LRU.Net { public class LruCache<TKey, TValue> { private readonly int _maxObjects; private OrderedDictionary _data; public...
Format code like a civilized man
Format code like a civilized man
C#
mit
jjnguy/LRU.Net
c50c401371666df4d0e1d32220fe1661f5754d3c
Nubot/Nancy/Bootstrapper.cs
Nubot/Nancy/Bootstrapper.cs
namespace Nubot.Core.Nancy { using System.Linq; using Abstractions; using global::Nancy; using global::Nancy.Conventions; using global::Nancy.TinyIoc; public class Bootstrapper : DefaultNancyBootstrapper { private readonly IRobot _robot; public Bootstrapper(IRobot robot) ...
namespace Nubot.Core.Nancy { using System.Linq; using Abstractions; using global::Nancy; using global::Nancy.Conventions; using global::Nancy.TinyIoc; public class Bootstrapper : DefaultNancyBootstrapper { private readonly IRobot _robot; public Bootstrapper(IRobot robot) ...
Fix path building for plugins views
Fix path building for plugins views
C#
mit
lionelplessis/Nubot,laurentkempe/Nubot,laurentkempe/Nubot,lionelplessis/Nubot
a92c27da3bb119691a2ba094cd6c79a0a2b5a264
docs/guides/voice/samples/audio_ffmpeg.cs
docs/guides/voice/samples/audio_ffmpeg.cs
private async Task SendAsync(IAudioClient client, string path) { // Create FFmpeg using the previous example var ffmpeg = CreateStream(path); var output = ffmpeg.StandardOutput.BaseStream; var discord = client.CreatePCMStream(AudioApplication.Mixed, 1920); await output.CopyToAsync(discord); awai...
private async Task SendAsync(IAudioClient client, string path) { // Create FFmpeg using the previous example var ffmpeg = CreateStream(path); var output = ffmpeg.StandardOutput.BaseStream; var discord = client.CreatePCMStream(AudioApplication.Mixed); await output.CopyToAsync(discord); await disc...
Remove wrong parameter from FFMPEG audio example
Remove wrong parameter from FFMPEG audio example This parameter was samples per frame but changed to bitrate. (1920 is a way to low bitrate :) )
C#
mit
Confruggy/Discord.Net,AntiTcb/Discord.Net,RogueException/Discord.Net
077dcf5cd99d98be377356250c2cbdf1f8f1bbe3
osu.Game/Skinning/ISkinSource.cs
osu.Game/Skinning/ISkinSource.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 JetBrains.Annotations; namespace osu.Game.Skinning { /// <summary> /// Provides access to skinnable elemen...
// 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 JetBrains.Annotations; namespace osu.Game.Skinning { /// <summary> /// Provides access to skinnable elemen...
Add missing documentation for `SourceChanged`
Add missing documentation for `SourceChanged`
C#
mit
ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu-new,peppy/osu,ppy/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipooo/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu
41bccdcd1b19eb69516b2d36a1f441efe40744c7
NugetCracker/Program.cs
NugetCracker/Program.cs
using System; using NugetCracker.Persistence; namespace NugetCracker { class Program { private static MetaProjectPersistence _metaProjectPersistence; static void Main(string[] args) { Console.WriteLine("NugetCracker 0.1\nSee https://github.com/monoman/NugetCracker\n"); _metaProjectPersist...
using System; using NugetCracker.Persistence; namespace NugetCracker { class Program { private static MetaProjectPersistence _metaProjectPersistence; static Version Version { get { return new System.Reflection.AssemblyName(System.Reflection.Assembly.GetCallingAssembly().FullName).Versio...
Use assembly version from NugetCracker assembly to print headline
Use assembly version from NugetCracker assembly to print headline
C#
apache-2.0
monoman/NugetCracker,monoman/NugetCracker
ee968c1e4eb6c5a3c08ad02f3a6dec9876cad297
MyGetConnector.Tests/TestUnityConfig.cs
MyGetConnector.Tests/TestUnityConfig.cs
using System.Net.Http; using Microsoft.Practices.Unity; using Moq; using MyGetConnector.Repositories; namespace MyGetConnector.Tests { public static class TestUnityConfig { public static IUnityContainer GetMockedContainer() { var container = new UnityContainer(); contai...
using System.Net.Http; using Microsoft.Practices.Unity; using Moq; using MyGetConnector.Repositories; namespace MyGetConnector.Tests { public static class TestUnityConfig { public static IUnityContainer GetMockedContainer() { var container = new UnityContainer(); contai...
Remove unnecessary HttpClient registration in Unity
Remove unnecessary HttpClient registration in Unity
C#
mit
piotrpMSFT/BuildServices,piotrpMSFT/BuildServices
39875b48d0ef9d8a860f57b7ad33402f44b76ae4
src/Elders.Cronus.Transport.RabbitMQ/PublisherChannelResolver.cs
src/Elders.Cronus.Transport.RabbitMQ/PublisherChannelResolver.cs
using System; using System.Collections.Concurrent; using RabbitMQ.Client; namespace Elders.Cronus.Transport.RabbitMQ { public class PublisherChannelResolver { private readonly ConcurrentDictionary<string, IModel> channelPerBoundedContext; private readonly ConnectionResolver connectionResolver;...
using System.Collections.Generic; using RabbitMQ.Client; namespace Elders.Cronus.Transport.RabbitMQ { public class PublisherChannelResolver { private readonly Dictionary<string, IModel> channelPerBoundedContext; private readonly ConnectionResolver connectionResolver; private static rea...
Fix already closed connection and 'kak go napravi tova' exception
Fix already closed connection and 'kak go napravi tova' exception
C#
apache-2.0
Elders/Cronus.Transport.RabbitMQ,Elders/Cronus.Transport.RabbitMQ
4d8336452aa50532e5c8580f725f83c917cd9e8c
src/GitVersion.Core/Model/VersionVariablesJsonNumberConverter.cs
src/GitVersion.Core/Model/VersionVariablesJsonNumberConverter.cs
using System.Buffers; using System.Buffers.Text; using System.Text.Json; using System.Text.Json.Serialization; using GitVersion.Extensions; namespace GitVersion.OutputVariables; public class VersionVariablesJsonNumberConverter : JsonConverter<string> { public override bool CanConvert(Type typeToConvert) =...
using System.Buffers; using System.Buffers.Text; using System.Text.Json; using System.Text.Json.Serialization; using GitVersion.Extensions; namespace GitVersion.OutputVariables; public class VersionVariablesJsonNumberConverter : JsonConverter<string> { public override bool CanConvert(Type typeToConvert) =...
Handle long values when writing version variables
Handle long values when writing version variables
C#
mit
GitTools/GitVersion,GitTools/GitVersion
90a64abd403c10424a4f170f0080a9ebc14333db
source/XeroApi.Tests/MimeTypesTests.cs
source/XeroApi.Tests/MimeTypesTests.cs
using System.IO; using NUnit.Framework; namespace XeroApi.Tests { public class MimeTypesTests { [Test] public void it_can_return_the_mime_type_for_a_filename() { string mimeType = MimeTypes.GetMimeType("anyFilename.pdf"); Assert.AreEqual("application/pdf", mime...
using System.IO; using NUnit.Framework; namespace XeroApi.Tests { public class MimeTypesTests { [Test] public void it_can_return_the_mime_type_for_a_filename() { string mimeType = MimeTypes.GetMimeType("anyFilename.png"); Assert.AreEqual("image/png", mimeType);...
Fix tests that don't work on the build server (apparently .pdf and .docx file extentions are not recognised by Windows out of the box)
Fix tests that don't work on the build server (apparently .pdf and .docx file extentions are not recognised by Windows out of the box)
C#
mit
jcvandan/XeroAPI.Net,XeroAPI/XeroAPI.Net,MatthewSteeples/XeroAPI.Net,TDaphneB/XeroAPI.Net
773ded77f362114d9a2ecd6547382e87057d9bbd
DataAccessExamples.Core/Services/LazyOrmDepartmentService.cs
DataAccessExamples.Core/Services/LazyOrmDepartmentService.cs
using System; using System.Linq; using DataAccessExamples.Core.Data; using DataAccessExamples.Core.ViewModels; namespace DataAccessExamples.Core.Services { public class LazyOrmDepartmentService : IDepartmentService { private readonly EmployeesContext context; public LazyOrmDepartme...
using System; using System.Linq; using DataAccessExamples.Core.Data; using DataAccessExamples.Core.ViewModels; namespace DataAccessExamples.Core.Services { public class LazyOrmDepartmentService : IDepartmentService { private readonly EmployeesContext context; public LazyOrmDepartme...
Correct behaviour of Lazy ORM implementation
Correct behaviour of Lazy ORM implementation
C#
cc0-1.0
hgcummings/DataAccessExamples,hgcummings/DataAccessExamples
090c0d9eecb926b0f55b00d90ddccb1d288ed7c8
Samples/Mapsui.Samples.Common/Maps/RasterizingLayerSample.cs
Samples/Mapsui.Samples.Common/Maps/RasterizingLayerSample.cs
using System; using Mapsui.Layers; using Mapsui.Providers; using Mapsui.Styles; using Mapsui.UI; using Mapsui.Utilities; namespace Mapsui.Samples.Common.Maps { public class RasterizingLayerSample : ISample { public string Name => "Rasterizing Layer"; public string Category => "Special"; ...
using System; using Mapsui.Layers; using Mapsui.Providers; using Mapsui.Styles; using Mapsui.UI; using Mapsui.Utilities; namespace Mapsui.Samples.Common.Maps { public class RasterizingLayerSample : ISample { public string Name => "Rasterizing Layer"; public string Category => "Special"; ...
Add zoom into rasterlayer data in the sample
Add zoom into rasterlayer data in the sample
C#
mit
charlenni/Mapsui,charlenni/Mapsui,pauldendulk/Mapsui
a0d47c5293a97a47a96f77e2f25d1b0fc733e564
source/XeroApi/Properties/AssemblyInfo.cs
source/XeroApi/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("XeroApi")] [assembly: AssemblyDescription...
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("XeroApi")] [assembly: AssemblyDescription...
Increment version for new 'skip' querystring support
Increment version for new 'skip' querystring support
C#
mit
XeroAPI/XeroAPI.Net,MatthewSteeples/XeroAPI.Net,TDaphneB/XeroAPI.Net,jcvandan/XeroAPI.Net
d7ee85743e728139ba7cfbd9b40837520eb27344
Leaf/Leaf/Nodes/Node.cs
Leaf/Leaf/Nodes/Node.cs
using System.IO; namespace Leaf.Nodes { /// <summary> /// Base class for all node types. /// </summary> public abstract class Node { /// <summary> /// Writes the data of the node to a stream. /// </summary> /// <param name="writer">Writer to use for putting data in ...
using System.IO; namespace Leaf.Nodes { /// <summary> /// Base class for all node types. /// </summary> public abstract class Node { /// <summary> /// Writes the data of the node to a stream. /// </summary> /// <param name="writer">Writer to use for putting data in ...
Change access of Write() to internal
Change access of Write() to internal Only the library should need this method. A higher-level Write() method will be exposed on a node container.
C#
mit
turtle-box-games/leaf-csharp
2bb269a934b4a84ef9cc3f6da9646f39aa099f09
src/Nether.Data/Identity/LoginProvider.cs
src/Nether.Data/Identity/LoginProvider.cs
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Nether.Data.Identity { public static class LoginProvide...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Nether.Data.Identity { public static class LoginProvide...
Update fb-usertoken grant to reuser Facebook id
Update fb-usertoken grant to reuser Facebook id Update the provider id for the custom fb-usertoken grant flow to use the same provider id as the implicit facebook flow to ensure that the user is resolved as the same nether user either way
C#
mit
ankodu/nether,navalev/nether,navalev/nether,stuartleeks/nether,stuartleeks/nether,navalev/nether,stuartleeks/nether,navalev/nether,MicrosoftDX/nether,vflorusso/nether,ankodu/nether,krist00fer/nether,stuartleeks/nether,stuartleeks/nether,vflorusso/nether,vflorusso/nether,oliviak/nether,ankodu/nether,ankodu/nether,vfloru...
574fe631a40de988e988d8814b4287424873a929
src/Glimpse.Common/GlimpseServices.cs
src/Glimpse.Common/GlimpseServices.cs
using Glimpse; using Microsoft.Framework.ConfigurationModel; using Microsoft.Framework.DependencyInjection; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using System.Collections.Generic; using System; using System.Reflection; namespace Glimpse { public class GlimpseServices { public sta...
using Glimpse; using Microsoft.Framework.ConfigurationModel; using Microsoft.Framework.DependencyInjection; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using System.Collections.Generic; using System; using System.Reflection; namespace Glimpse { public class GlimpseServices { public sta...
Add comment about how IDiscoverableCollection is treated
Add comment about how IDiscoverableCollection is treated
C#
mit
zanetdev/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,p...
9efce73750172e0c48e9b2d7db3613b1e40b9972
Espera/Espera.Core/Management/LibraryFileWriter.cs
Espera/Espera.Core/Management/LibraryFileWriter.cs
using Rareform.Validation; using System.Collections.Generic; using System.IO; namespace Espera.Core.Management { public class LibraryFileWriter : ILibraryWriter { private readonly string targetPath; public LibraryFileWriter(string targetPath) { if (targetPath == null) ...
using Rareform.Validation; using System; using System.Collections.Generic; using System.IO; namespace Espera.Core.Management { public class LibraryFileWriter : ILibraryWriter { private readonly string targetPath; public LibraryFileWriter(string targetPath) { if (targetPath...
Create a temporary library file and rename it to reduce the chance of library corruption
Create a temporary library file and rename it to reduce the chance of library corruption Fixes #37
C#
mit
punker76/Espera,flagbug/Espera
60da952d4b9215c6fe8b06d89184f7497d1fecb7
src/NadekoBot/Common/TimeConstants.cs
src/NadekoBot/Common/TimeConstants.cs
namespace Mitternacht.Common { public class TimeConstants { public const int WaitForForum = 500; public const int TeamUpdate = 60 * 1000; public const int Birthday = 60 * 1000; } }
namespace Mitternacht.Common { public class TimeConstants { public const int WaitForForum = 500; public const int TeamUpdate = 3 * 60 * 1000; public const int Birthday = 60 * 1000; } }
Change Teamupdate time interval to 180s.
Change Teamupdate time interval to 180s.
C#
mit
Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW
1e2d8e764fbfbce35e8eb85a4b302e8547796092
src/Core/Utility/ExceptionUtility.cs
src/Core/Utility/ExceptionUtility.cs
using System; using System.Reflection; namespace NuGet { public static class ExceptionUtility { public static Exception Unwrap(Exception exception) { if (exception == null) { throw new ArgumentNullException("exception"); } if (exception.InnerE...
using System; using System.Reflection; namespace NuGet { public static class ExceptionUtility { public static Exception Unwrap(Exception exception) { if (exception == null) { throw new ArgumentNullException("exception"); } if (exception.InnerE...
Call GetBaseException instead of manually unwrapping exception types.
Call GetBaseException instead of manually unwrapping exception types.
C#
apache-2.0
mdavid/nuget,mdavid/nuget
9c98000b4151088411fcd0f20d0556d95fb05425
src/Fixie/Behaviors/CaseBehavior.cs
src/Fixie/Behaviors/CaseBehavior.cs
namespace Fixie.Behaviors { public interface CaseBehavior { void Execute(Case @case, object instance); } }
namespace Fixie.Behaviors { public interface CaseBehavior { void Execute(Case @case, object instance); //comment to demo teamcity } }
Add comment to demo teamcity
Add comment to demo teamcity
C#
mit
JakeGinnivan/fixie,Duohong/fixie,EliotJones/fixie,fixie/fixie,KevM/fixie,bardoloi/fixie,bardoloi/fixie
4c59750e00e2ca780483d6a8ca964c9716d9d9c9
Infopulse.EDemocracy.Model/BusinessEntities/UserDetailInfo.cs
Infopulse.EDemocracy.Model/BusinessEntities/UserDetailInfo.cs
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Infopulse.EDemocracy.Model.BusinessEntities { public class UserDetailInfo : BaseEntity { [JsonIgnore] public int UserID { get; set; } [Required] public string FirstName { get; set; }...
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Infopulse.EDemocracy.Model.BusinessEntities { public class UserDetailInfo : BaseEntity { [JsonIgnore] public int UserID { get; set; } [Required] public string FirstName { get; set; }...
Make default value of SignedPetitions as array.
Make default value of SignedPetitions as array.
C#
cc0-1.0
enarod/enarod-web-api,enarod/enarod-web-api,enarod/enarod-web-api
e2d27083415d2e30ac25bec1ae1440c7d3ac666e
Source/Samples/net45/Tracker.SqlServer.Test/MappingObjectContext.cs
Source/Samples/net45/Tracker.SqlServer.Test/MappingObjectContext.cs
using System; using EntityFramework.Mapping; using Xunit; using Tracker.SqlServer.CodeFirst; using Tracker.SqlServer.CodeFirst.Entities; using Tracker.SqlServer.Entities; using EntityFramework.Extensions; using Task = Tracker.SqlServer.Entities.Task; namespace Tracker.SqlServer.Test { /// <summary> /// Summar...
using System; using EntityFramework.Mapping; using Xunit; using Tracker.SqlServer.CodeFirst; using Tracker.SqlServer.CodeFirst.Entities; using Tracker.SqlServer.Entities; using EntityFramework.Extensions; using Task = Tracker.SqlServer.Entities.Task; namespace Tracker.SqlServer.Test { /// <summary> /// Summar...
Update tests with new specifications of Mapping
Update tests with new specifications of Mapping
C#
bsd-3-clause
rcdmk/EntityFramework.Extended
ed9fe0ad317f17c09c04a136543bdf01e63fd221
Assets/HoloToolkit/Utilities/Scripts/CameraCache.cs
Assets/HoloToolkit/Utilities/Scripts/CameraCache.cs
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using UnityEngine; namespace HoloToolkit.Unity { /// <summary> /// The purpose of this class is to provide a cached reference to the main camera. Calling Ca...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using UnityEngine; namespace HoloToolkit.Unity { /// <summary> /// The purpose of this class is to provide a cached reference to the main camera. Calling Ca...
Remove in-code resharper disable statement
Remove in-code resharper disable statement
C#
mit
NeerajW/HoloToolkit-Unity,paseb/MixedRealityToolkit-Unity,out-of-pixel/HoloToolkit-Unity,HattMarris1/HoloToolkit-Unity,paseb/HoloToolkit-Unity,willcong/HoloToolkit-Unity,ForrestTrepte/HoloToolkit-Unity
a56906b83f14787cbfdc967b3fa787433e9ea453
Assets/Editor/MicrogameCollectionEditor.cs
Assets/Editor/MicrogameCollectionEditor.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; [CustomEditor(typeof(MicrogameCollection))] public class MicrogameCollectionEditor : Editor { public override void OnInspectorGUI() { MicrogameCollection collection = (MicrogameCollection)target; if (GUILayout.Butt...
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; using System.Linq; [CustomEditor(typeof(MicrogameCollection))] public class MicrogameCollectionEditor : Editor { MicrogameCollection collection; private List<MicrogameList> microgames; private ...
Adjust collection editor to list by milestone
Adjust collection editor to list by milestone
C#
mit
NitorInc/NitoriWare,Barleytree/NitoriWare,Barleytree/NitoriWare,NitorInc/NitoriWare
497f20d818ab28b5a3d49d22c1a5666760bbdca6
src/web/Views/Shared/_Nav.cshtml
src/web/Views/Shared/_Nav.cshtml
@{ var pages = Pages; } <ul class="nav navbar-nav navbar-right"> @foreach (var p in pages) { @Html.Partial("_PageNavigation", p) } @if (Settings.ShowSharedFoldersInMenus) { <li> @SharedFoldersLink() </li> } </ul>
@{ var pages = Pages; } <ul class="nav navbar-nav navbar-right"> @foreach (var p in pages) { @Html.Partial("_PageNavigation", p) } @if (Settings.ShowSharedFoldersInMenus && SharedFoldersLinkIsAvailable()) { <li> @SharedFoldersLink() </li> } </ul>
Fix bug in default nav for shared folders link
Fix bug in default nav for shared folders link
C#
apache-2.0
brondavies/wwwplatform.net,brondavies/wwwplatform.net,brondavies/wwwplatform.net
8aad8a5d64670f3390034ae4177e9257c40c88d1
Harmony/Transpilers.cs
Harmony/Transpilers.cs
using System; using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; namespace Harmony { public static class Transpilers { private static IEnumerable<CodeInstruction> Replacer(IEnumerable<CodeInstruction> instructions, MethodBase from, MethodBase to, OpCode opcode) { if (from...
using System; using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; namespace Harmony { public static class Transpilers { public static IEnumerable<CodeInstruction> MethodReplacer(this IEnumerable<CodeInstruction> instructions, MethodBase from, MethodBase to) { if (from == n...
Simplify MethodReplacer and keep backwards compatibility
Simplify MethodReplacer and keep backwards compatibility
C#
mit
pardeike/Harmony