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 |
|---|---|---|---|---|---|---|---|---|---|
bc850d72037ccf5621d5edf462a87ada9d82c434 | src/SqlPersistence/ScriptLocation.cs | src/SqlPersistence/ScriptLocation.cs | using System;
using System.IO;
using System.Reflection;
using NServiceBus;
using NServiceBus.Settings;
static class ScriptLocation
{
public static string FindScriptDirectory(ReadOnlySettings settings)
{
var currentDirectory = GetCurrentDirectory(settings);
return Path.Combine(currentDirectory,... | using System;
using System.IO;
using System.Reflection;
using NServiceBus;
using NServiceBus.Settings;
static class ScriptLocation
{
const string ScriptFolder = "NServiceBus.Persistence.Sql";
public static string FindScriptDirectory(ReadOnlySettings settings)
{
var currentDirectory = GetCurrentDi... | Fix script location via AppDomain base dir for web applications | Fix script location via AppDomain base dir for web applications
| C# | mit | NServiceBusSqlPersistence/NServiceBus.SqlPersistence |
213bd6f4540e9844fd9503c2635cd9a3f00ceb0b | Sources/Rhaeo.Mvvm/Rhaeo.Mvvm/ObservableObject.cs | Sources/Rhaeo.Mvvm/Rhaeo.Mvvm/ObservableObject.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Rhaeo.Mvvm
{
public class ObservableObject
{
}
} | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ObservableObject.cs" company="Rhaeo">
// Licenced under the MIT licence.
// </copyright>
// <summary>
// Defines the ObservableObject type.
// </summary>
// ------------------... | Implement extracting the property name | Implement extracting the property name
| C# | mit | Rhaeo/Rhaeo.Mvvm |
7692a31d4a329eaa0c6256b21307ab9a37f45041 | ProgrammingPraxis/red_squiggles.cs | ProgrammingPraxis/red_squiggles.cs | // https://www.reddit.com/r/dailyprogrammer/comments/3n55f3/20150930_challenge_234_intermediate_red_squiggles/
//
// Your challenge today is to implement a real time spell checker and indicate where you would throw the red squiggle. For your dictionary use /usr/share/dict/words
//
using System;
using System.Collectio... | // https://www.reddit.com/r/dailyprogrammer/comments/3n55f3/20150930_challenge_234_intermediate_red_squiggles/
//
// Your challenge today is to implement a real time spell checker and indicate where you would throw the red squiggle. For your dictionary use /usr/share/dict/words
//
using System;
using System.Collectio... | Build and print the trie | Build and print the trie
| C# | mit | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews |
e1cce88ae5d587b3bd625e4e812e66259b379a19 | SampleGame.Android/MainActivity.cs | SampleGame.Android/MainActivity.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using Android.App;
using Android.OS;
using Android.Content.PM;
using Android.Views;
namespace SampleGame.Android
{
[Activity(Label = "SampleGame", MainLa... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using Android.App;
using Android.OS;
using Android.Content.PM;
using Android.Views;
using System;
using Android.Runtime;
using Android.Content.Res;
namespace... | Allow rotating the screen without crashing by overriding the Configuration changes. | Allow rotating the screen without crashing by overriding the Configuration changes.
Restarting the activity is not a choice on orientation changes.
| C# | mit | ZLima12/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,EVAST9919/osu-frame... |
f48e1d8ec163e8dc786100a0d842c36010510c7b | PinWin/Properties/AssemblyInfo.cs | PinWin/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("Pi... | 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("Pi... | Increment version before creating release (0.2.5). | Increment version before creating release (0.2.5).
| C# | mit | VictorZakharov/pinwin |
4be287a8bbc742bb4b0758adb32a7be78bd6a09c | src/Markdig.Wpf/Renderers/Wpf/Inlines/AutoLinkInlineRenderer.cs | src/Markdig.Wpf/Renderers/Wpf/Inlines/AutoLinkInlineRenderer.cs | // Copyright (c) 2016-2017 Nicolas Musset. All rights reserved.
// This file is licensed under the MIT license.
// See the LICENSE.md file in the project root for more information.
using System;
using System.Windows.Documents;
using Markdig.Annotations;
using Markdig.Syntax.Inlines;
using Markdig.Wpf;
namespace Markd... | // Copyright (c) 2016-2017 Nicolas Musset. All rights reserved.
// This file is licensed under the MIT license.
// See the LICENSE.md file in the project root for more information.
using System;
using System.Windows.Documents;
using Markdig.Annotations;
using Markdig.Syntax.Inlines;
using Markdig.Wpf;
namespace Markd... | Write the autolink's URL so we can see the autolink. | Write the autolink's URL so we can see the autolink.
| C# | mit | Kryptos-FR/markdig.wpf,Kryptos-FR/markdig-wpf |
d381494ef083440506f85fb542d363497b3e723a | src/Swashbuckle.Swagger/Application/SwaggerSerializerFactory.cs | src/Swashbuckle.Swagger/Application/SwaggerSerializerFactory.cs | using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;
namespace Swashbuckle.Swagger.Application
{
public class SwaggerSerializerFactory
{
internal static JsonSerializer Create(IOptions<MvcJsonOptions> mvcJsonOptions)
{
// TODO: Should this handl... | using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;
namespace Swashbuckle.Swagger.Application
{
public class SwaggerSerializerFactory
{
internal static JsonSerializer Create(IOptions<MvcJsonOptions> mvcJsonOptions)
{
// TODO: Should this handl... | Use MvcJsonOptions json serializer formatting when generating swagger.json | Use MvcJsonOptions json serializer formatting when generating swagger.json
| C# | mit | domaindrivendev/Swashbuckle.AspNetCore,domaindrivendev/Swashbuckle.AspNetCore,domaindrivendev/Ahoy,oconics/Ahoy,domaindrivendev/Ahoy,domaindrivendev/Swashbuckle.AspNetCore,oconics/Ahoy,domaindrivendev/Ahoy |
e0f0d102bbbd40400965cca6e37bdd72b4eadecb | src/CGO.Web/NinjectModules/RavenModule.cs | src/CGO.Web/NinjectModules/RavenModule.cs | using Ninject;
using Ninject.Modules;
using Ninject.Web.Common;
using Raven.Client;
using Raven.Client.Embedded;
namespace CGO.Web.NinjectModules
{
public class RavenModule : NinjectModule
{
public override void Load()
{
Kernel.Bind<IDocumentStore>().ToMethod(_ => InitialiseDocume... | using Ninject;
using Ninject.Modules;
using Ninject.Web.Common;
using Raven.Client;
using Raven.Client.Embedded;
namespace CGO.Web.NinjectModules
{
public class RavenModule : NinjectModule
{
public override void Load()
{
Kernel.Bind<IDocumentStore>().ToMethod(_ => InitialiseDocume... | Disable Raven's Embedded HTTP server | Disable Raven's Embedded HTTP server
I'm not really making use of this, and it's preventing successful
deployment in Azure.
| C# | mit | alastairs/cgowebsite,alastairs/cgowebsite |
b207594a6c954506e5d745ca492907c30638bfb0 | src/Pirac/Conventions/ViewConvention.cs | src/Pirac/Conventions/ViewConvention.cs | using Conventional.Conventions;
namespace Pirac.Conventions
{
internal class ViewConvention : Convention
{
public ViewConvention()
{
Must.HaveNameEndWith("View").BeAClass();
Should.BeAConcreteClass();
BaseName = t => t.Name.Substring(0, t.Name.Length - 4);... | using System;
using Conventional.Conventions;
namespace Pirac.Conventions
{
internal class ViewConvention : Convention
{
public ViewConvention()
{
Must.Pass(t => t.IsClass && (t.Name.EndsWith("View") || t.Name == "MainWindow"), "Name ends with View or is named MainWindow");
... | Update View convention to recognize MainWindow | Update View convention to recognize MainWindow
| C# | mit | distantcam/Pirac |
10c20edee1427615d04447b2ffa7cd9fb0cd58b9 | Build/Program.cs | Build/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using Cake.Core;
using Cake.Core.Configuration;
using Cake.Frosting;
using Cake.NuGet;
public class Program : IFrostingStartup
{
public static int Main(string[] args)
{
// Create the host.
var host = new CakeHostBuil... | using System;
using System.Collections.Generic;
using System.IO;
using Cake.Core;
using Cake.Core.Configuration;
using Cake.Frosting;
using Cake.NuGet;
public class Program : IFrostingStartup
{
public static int Main(string[] args)
{
// Create the host.
var host = new CakeHostBuil... | Install NuGet as a tool | Install NuGet as a tool
| C# | mit | mitchelsellers/Dnn.Platform,mitchelsellers/Dnn.Platform,valadas/Dnn.Platform,mitchelsellers/Dnn.Platform,bdukes/Dnn.Platform,valadas/Dnn.Platform,dnnsoftware/Dnn.Platform,nvisionative/Dnn.Platform,mitchelsellers/Dnn.Platform,valadas/Dnn.Platform,dnnsoftware/Dnn.Platform,nvisionative/Dnn.Platform,dnnsoftware/Dnn.Platfor... |
784cec48fad09535dd2202c9cbf4a388612ba23d | Common/Constants.cs | Common/Constants.cs | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy ... | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy ... | Move DataFolder config get to static member initializer | Move DataFolder config get to static member initializer
| C# | apache-2.0 | AnshulYADAV007/Lean,AlexCatarino/Lean,jameschch/Lean,AnshulYADAV007/Lean,kaffeebrauer/Lean,desimonk/Lean,wowgeeker/Lean,exhau/Lean,bizcad/LeanAbhi,rchien/Lean,dalebrubaker/Lean,bizcad/LeanITrend,Phoenix1271/Lean,tzaavi/Lean,Mendelone/forex_trading,mabeale/Lean,devalkeralia/Lean,bizcad/LeanJJN,andrewhart098/Lean,QuantCo... |
4afafc9784a6ef8c60634fcf68c864c69fdf6285 | Kyru/Core/Config.cs | Kyru/Core/Config.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace Kyru.Core
{
class Config
{
internal readonly string storeDirectory;
internal Config() {
storeDirectory = Path.Combine(System.Windows.Forms.Application.User... | using System;
using System.IO;
namespace Kyru.Core
{
internal sealed class Config
{
internal string storeDirectory;
internal Config()
{
storeDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Kyru", "objects");
}
}
} | Use a path for storage that doesn't include version and company name | Use a path for storage that doesn't include version and company name
| C# | bsd-3-clause | zr40/kyru-dotnet,zr40/kyru-dotnet |
5cc8ab4d9c1fb82d31c981bf54023a24fbc35b08 | data/mango-tool/layouts/default/StaticContentModule.cs | data/mango-tool/layouts/default/StaticContentModule.cs |
using System;
using System.IO;
using Mango;
//
// This the default StaticContentModule that comes with all Mango apps
// if you do not wish to serve any static content with Mango you can
// remove its route handler from <YourApp>.cs's constructor and delete
// this file.
//
// All Content placed on the Conten... |
using System;
using System.IO;
using Mango;
//
// This the default StaticContentModule that comes with all Mango apps
// if you do not wish to serve any static content with Mango you can
// remove its route handler from <YourApp>.cs's constructor and delete
// this file.
//
// All Content placed on the Conten... | Update the static content module to fit the new API. | Update the static content module to fit the new API.
| C# | mit | jmptrader/manos,mdavid/manos-spdy,jacksonh/manos,mdavid/manos-spdy,mdavid/manos-spdy,jmptrader/manos,jacksonh/manos,jmptrader/manos,jmptrader/manos,mdavid/manos-spdy,jacksonh/manos,jmptrader/manos,jmptrader/manos,jacksonh/manos,jacksonh/manos,jmptrader/manos,jacksonh/manos,jmptrader/manos,jacksonh/manos,jacksonh/manos,... |
e24ffd611b8c4f0bd266d974db5a7879eba38158 | Templates/Properties/AddinInfo.cs | Templates/Properties/AddinInfo.cs | using System;
using Mono.Addins;
using Mono.Addins.Description;
[assembly:Addin (
"${ProjectName}",
Namespace = "${ProjectName}",
Version = "1.0"
)]
[assembly:AddinName ("${ProjectName}")]
[assembly:AddinCategory ("${ProjectName}")]
[assembly:AddinDescription ("${ProjectName}")]
[assembly:AddinAuthor ("${AuthorN... | using System;
using Mono.Addins;
using Mono.Addins.Description;
[assembly:Addin (
"${ProjectName}",
Namespace = "${ProjectName}",
Version = "1.0"
)]
[assembly:AddinName ("${ProjectName}")]
[assembly:AddinCategory ("IDE extensions")]
[assembly:AddinDescription ("${ProjectName}")]
[assembly:AddinAuthor ("${AuthorN... | Fix default category for new addins | Fix default category for new addins | C# | mit | mhutch/MonoDevelop.AddinMaker,mhutch/MonoDevelop.AddinMaker |
0361cc70a18cb4df41c92e0bfcc1d8e3ee390de3 | Bbl.KnockoutJs/Bbl.KnockoutJs/Startup.cs | Bbl.KnockoutJs/Bbl.KnockoutJs/Startup.cs | using Nancy;
using Owin;
namespace Bbl.KnockoutJs
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.UseNancy();
}
}
public class IndexModule : NancyModule
{
public IndexModule()
{
Get["/"] = parameters => View... | using System.IO;
using System.Linq;
using System.Web.Hosting;
using Nancy;
using Owin;
namespace Bbl.KnockoutJs
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.UseNancy();
}
}
public class IndexModule : NancyModule
{
private co... | Add url to get unicorns | Add url to get unicorns
| C# | mit | fpellet/Bbl.KnockoutJs,fpellet/Bbl.KnockoutJs,fpellet/Bbl.KnockoutJs |
c575d66480eabec51f44ee4a6f8873b32578ad30 | src/dotnet-new2/ProjectCreator.cs | src/dotnet-new2/ProjectCreator.cs | using System;
using System.Diagnostics;
using System.IO;
namespace dotnet_new2
{
public class ProjectCreator
{
public bool CreateProject(string name, string path, Template template)
{
Directory.CreateDirectory(path);
foreach (var file in template.Files)
{
... | using System;
using System.Diagnostics;
using System.IO;
namespace dotnet_new2
{
public class ProjectCreator
{
public bool CreateProject(string name, string path, Template template)
{
Directory.CreateDirectory(path);
if (Directory.GetFileSystemEntries(path).Length > 0)... | Fix case when project directory already exists | Fix case when project directory already exists
| C# | mit | DamianEdwards/dotnet-new2 |
3cd6e55e2af8cfdd2b415dffe8dff444872bfee5 | SteamIrcBot/Service/ServiceDispatcher.cs | SteamIrcBot/Service/ServiceDispatcher.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
namespace SteamIrcBot
{
class ServiceDispatcher
{
static ServiceDispatcher _instance = new ServiceDispatcher();
public static ServiceDispatche... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
namespace SteamIrcBot
{
class ServiceDispatcher
{
static ServiceDispatcher _instance = new ServiceDispatcher();
public static ServiceDispatche... | Throw all dispatcher exceptions on the non-service build. | Throw all dispatcher exceptions on the non-service build.
| C# | mit | VoiDeD/steam-irc-bot |
b252a9106bebe19a7ae7b85654c46ac5aa44f750 | Monacs.Core/Unit/Result.Unit.Extensions.cs | Monacs.Core/Unit/Result.Unit.Extensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Monacs.Core.Unit
{
///<summary>
/// Extensions for <see cref="Result<Unit>" /> type.
///</summary>
public static class Result
{
///<summary>
/// Creates successful <see cref="Result<Unit>" />.
///<... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Monacs.Core.Unit
{
///<summary>
/// Extensions for <see cref="Result{Unit}" /> type.
///</summary>
public static class Result
{
///<summary>
/// Creates successful <see cref="Result{Unit}" />.
///<... | Fix the XML docs generic class references | Fix the XML docs generic class references
| C# | mit | bartsokol/Monacs |
1e97f935c48cb55e9889dc039e002b2635fb47ec | src/ProviderModel/Properties/AssemblyInfo.cs | src/ProviderModel/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("ProviderModel")]
[assembly: AssemblyDescription("An improvment over the bundled .NET provider model")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Enrique Alejandro Allegretta")]
[assembly: AssemblyProduct("... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("ProviderModel")]
[assembly: AssemblyDescription("An improvment over the bundled .NET provider model")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Enrique Alejandro Allegretta")]
[assembly: AssemblyProduct("... | Set assembly culture to neutral | Set assembly culture to neutral
| C# | mit | eallegretta/providermodel |
91c5188281f1bab2d2d1e84a700df3b18b1eac0f | SOVND.Server/ServerMqttSettings.cs | SOVND.Server/ServerMqttSettings.cs | using SOVND.Lib;
using System.IO;
namespace SOVND.Server
{
public class ServerMqttSettings : IMQTTSettings
{
public string Broker { get { return "104.131.87.42"; } }
public int Port { get { return 8883; } }
public string Username
{
get { return File.ReadAllText("us... | using SOVND.Lib;
using System.IO;
namespace SOVND.Server
{
public class ServerMqttSettings : IMQTTSettings
{
public string Broker { get { return "104.131.87.42"; } }
public int Port { get { return 2883; } }
public string Username
{
get { return File.ReadAllText("us... | Change port for new RabbitMQ-MQTT server | Change port for new RabbitMQ-MQTT server
| C# | epl-1.0 | GeorgeHahn/SOVND |
e0e7e474f15c4f0c2e01c2fd66b077bd02250075 | src/Utils/SidecarXmpExtensions.cs | src/Utils/SidecarXmpExtensions.cs | using System;
using System.IO;
using GLib;
using Hyena;
using TagLib.Image;
using TagLib.Xmp;
namespace FSpot.Utils
{
public static class SidecarXmpExtensions
{
/// <summary>
/// Parses the XMP file identified by resource and replaces the XMP
/// tag of file by the parsed data.
... | using System;
using System.IO;
using GLib;
using Hyena;
using TagLib.Image;
using TagLib.Xmp;
namespace FSpot.Utils
{
public static class SidecarXmpExtensions
{
/// <summary>
/// Parses the XMP file identified by resource and replaces the XMP
/// tag of file by the parsed data.
... | Truncate stream when writing sidecar XMP files. | Truncate stream when writing sidecar XMP files.
| C# | mit | GNOME/f-spot,dkoeb/f-spot,mono/f-spot,NguyenMatthieu/f-spot,Yetangitu/f-spot,dkoeb/f-spot,NguyenMatthieu/f-spot,GNOME/f-spot,GNOME/f-spot,mans0954/f-spot,mono/f-spot,mans0954/f-spot,nathansamson/F-Spot-Album-Exporter,Sanva/f-spot,dkoeb/f-spot,GNOME/f-spot,dkoeb/f-spot,Yetangitu/f-spot,Sanva/f-spot,mono/f-spot,Sanva/f-s... |
618455f7ba3496591bc8ea2e8859e7ae74de3328 | osu.Game.Tests/Visual/TestCaseMultiScreen.cs | osu.Game.Tests/Visual/TestCaseMultiScreen.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using NUnit.Framework;
using osu.Framework.Screens;
using osu.Game.Screens.Multi;
using osu.Game.Screens.Multi.Lounge;
us... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using NUnit.Framework;
using osu.Framework.Screens;
using osu.Game.Screens.Multi;
using osu.Game.Screens.Multi.Lounge;
us... | Remove exit step (needs login to show properly) | Remove exit step (needs login to show properly)
| C# | mit | 2yangk23/osu,ppy/osu,johnneijzen/osu,naoey/osu,smoogipoo/osu,DrabWeb/osu,DrabWeb/osu,ppy/osu,EVAST9919/osu,UselessToucan/osu,2yangk23/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu,johnneijzen/osu,NeoAdonis/osu,EVAST9919/osu,peppy/osu-new,naoey/osu,smoogipooo/osu,peppy/osu,smoogipoo/osu,peppy/osu,ZLima12/o... |
31e9b21d3bdbe32f5236e546e56e8c702fbdab1d | DocumentFormat.OpenXml.Tests/Common/TestContext.cs | DocumentFormat.OpenXml.Tests/Common/TestContext.cs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.CompilerServices;
usi... | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.CompilerServices;
usi... | Replace StackTrace with CallerMemberName attribute | Replace StackTrace with CallerMemberName attribute
| C# | mit | OfficeDev/Open-XML-SDK,ThomasBarnekow/Open-XML-SDK,tomjebo/Open-XML-SDK,tarunchopra/Open-XML-SDK,ClareMSYanGit/Open-XML-SDK |
42c94a73deacab8417c33b56de43646404030b01 | Joey/UI/Fragments/RecentTimeEntriesListFragment.cs | Joey/UI/Fragments/RecentTimeEntriesListFragment.cs | using System;
using System.Linq;
using Android.OS;
using Android.Util;
using Android.Views;
using Android.Widget;
using Toggl.Joey.UI.Adapters;
using ListFragment = Android.Support.V4.App.ListFragment;
namespace Toggl.Joey.UI.Fragments
{
public class RecentTimeEntriesListFragment : ListFragment
{
publ... | using System;
using System.Linq;
using Android.OS;
using Android.Util;
using Android.Views;
using Android.Widget;
using Toggl.Joey.UI.Adapters;
using ListFragment = Android.Support.V4.App.ListFragment;
namespace Toggl.Joey.UI.Fragments
{
public class RecentTimeEntriesListFragment : ListFragment
{
publ... | Fix potential crash when clicking on header/footer in recent list. | Fix potential crash when clicking on header/footer in recent list.
| C# | bsd-3-clause | masterrr/mobile,ZhangLeiCharles/mobile,masterrr/mobile,eatskolnikov/mobile,peeedge/mobile,peeedge/mobile,eatskolnikov/mobile,eatskolnikov/mobile,ZhangLeiCharles/mobile |
ebee9393f1e011d25cdffb36345005a90af74864 | src/Orchard.Web/Program.cs | src/Orchard.Web/Program.cs | using System.IO;
using Microsoft.AspNetCore.Hosting;
using Orchard.Hosting;
using Orchard.Web;
namespace Orchard.Console
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseIISIntegration()
.UseKestre... | using System.IO;
using Microsoft.AspNetCore.Hosting;
using Orchard.Hosting;
using Orchard.Web;
namespace Orchard.Console
{
public class Program
{
public static void Main(string[] args)
{
var currentDirectory = Directory.GetCurrentDirectory();
var host = new WebHostBuil... | Stop double call of Directory.GetCurrentDirectory on startup, as 20% slower on linux | Stop double call of Directory.GetCurrentDirectory on startup, as 20% slower on linux
| C# | bsd-3-clause | jtkech/Orchard2,alexbocharov/Orchard2,OrchardCMS/Brochard,xkproject/Orchard2,GVX111/Orchard2,petedavis/Orchard2,petedavis/Orchard2,yiji/Orchard2,stevetayloruk/Orchard2,lukaskabrt/Orchard2,xkproject/Orchard2,jtkech/Orchard2,xkproject/Orchard2,OrchardCMS/Brochard,yiji/Orchard2,petedavis/Orchard2,stevetayloruk/Orchard2,jt... |
75fd91e15035d84551ba6ccf3278dbc146ad5ab9 | Src/TensorSharp/Operations/AddIntegerIntegerOperation.cs | Src/TensorSharp/Operations/AddIntegerIntegerOperation.cs | namespace TensorSharp.Operations
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AddIntegerIntegerOperation : IBinaryOperation<int, int, int>
{
public Tensor<int> Evaluate(Tensor<int> tensor1, Tensor<int> tensor2)
{... | namespace TensorSharp.Operations
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AddIntegerIntegerOperation : IBinaryOperation<int, int, int>
{
public Tensor<int> Evaluate(Tensor<int> tensor1, Tensor<int> tensor2)
{... | Refactor Add Integers Operation to use GetValues and CloneWithValues | Refactor Add Integers Operation to use GetValues and CloneWithValues
| C# | mit | ajlopez/TensorSharp |
25e297f5bf0fcb44ba6666953548ec72d71f566c | SharpMath/Geometry/VectorExtensions.cs | SharpMath/Geometry/VectorExtensions.cs | namespace SharpMath.Geometry
{
public static class VectorExtensions
{
public static T Negate<T>(this Vector vector) where T : Vector, new()
{
var resultVector = new T();
for (uint i = 0; i < vector.Dimension; ++i)
resultVector[i] = -vector[i];
... | using SharpMath.Geometry.Exceptions;
namespace SharpMath.Geometry
{
public static class VectorExtensions
{
public static T Negate<T>(this Vector vector) where T : Vector, new()
{
var resultVector = new T();
if (vector.Dimension != resultVector.Dimension)
... | Fix normalizing a vector results in a zero vector | Fix normalizing a vector results in a zero vector
| C# | mit | ProgTrade/SharpMath |
1b3d37984c702b753e3dcec26a4ced7f17708c36 | tests/SignatureTest.cs | tests/SignatureTest.cs | // Copyright 2009 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using NUnit.Framework;
using NDesk.DBus;
namespace NDesk.DBus.Tests
{
[TestFixture]
public class SignatureTest
{
[Test]
public void Parse ()
{
string sigText = "as... | // Copyright 2009 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using NUnit.Framework;
using NDesk.DBus;
namespace NDesk.DBus.Tests
{
[TestFixture]
public class SignatureTest
{
[Test]
public void Parse ()
{
string sigText = "as... | Add test for Signature equality | Add test for Signature equality
| C# | mit | mono/dbus-sharp,Tragetaschen/dbus-sharp,mono/dbus-sharp,arfbtwn/dbus-sharp,Tragetaschen/dbus-sharp,arfbtwn/dbus-sharp,openmedicus/dbus-sharp,openmedicus/dbus-sharp |
9497f97c4f076daa8d09b1d155b492ced6698861 | src/Stories/Views/Home/Guidelines.cshtml | src/Stories/Views/Home/Guidelines.cshtml | <h2>What is dotnet signals?</h2>
.NET Signals is a community driven link aggregator for the sharing of knowledge in the .NET community. Our focus is to give the .NET community a place to post ideas and
knowledge as voted by the community while avoiding the clutter found in traditional sources.
<h2>Posts</h2>
<ul>
... | @{
ViewData["Title"] = "Guidelines";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<section>
<h2>What is dotnet signals?</h2>
.NET Signals is a community driven link aggregator for the sharing of knowledge in the .NET community. Our focus is to give the .NET community a place to post ideas and
knowle... | Add layout to guidelines page. | Add layout to guidelines page.
| C# | mit | mattrobineau/dotnetsignals,mattrobineau/dotnetsignals,mattrobineau/dotnetsignals,mattrobineau/dotnetsignals,mattrobineau/dotnetsignals |
b84da2ca026c57645208b581a7f298a4295425ca | src/AssemblyInfo.cs | src/AssemblyInfo.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System.Reflection;
using System.Runtime.CompilerServices;
//[assembly: AssemblyVersion("0.0.0.*")]
[assembly: AssemblyTitle ("NDesk.DBus")]
[assembly: AssemblyDescription ("D-Bus IPC ... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System.Reflection;
using System.Runtime.CompilerServices;
//[assembly: AssemblyVersion("0.0.0.*")]
[assembly: AssemblyTitle ("NDesk.DBus")]
[assembly: AssemblyDescription ("D-Bus IPC ... | Add a couple of friend assemblies | Add a couple of friend assemblies
| C# | mit | arfbtwn/dbus-sharp,arfbtwn/dbus-sharp,Tragetaschen/dbus-sharp,mono/dbus-sharp,Tragetaschen/dbus-sharp,openmedicus/dbus-sharp,openmedicus/dbus-sharp,mono/dbus-sharp |
6f3c8e9f8bf1f6190777ab513dadd20b0d5c30c0 | osu.Game/Online/API/Requests/GetUpdatesResponse.cs | osu.Game/Online/API/Requests/GetUpdatesResponse.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.Collections.Generic;
using osu.Game.Online.Chat;
namespace osu.Game.Online.API.Requests
{
public class GetUpdatesResponse
{
public List<Ch... | // 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.Collections.Generic;
using Newtonsoft.Json;
using osu.Game.Online.Chat;
namespace osu.Game.Online.API.Requests
{
public class GetUpdatesResponse
{... | Add explicit usage via attribute | Add explicit usage via attribute
| C# | mit | EVAST9919/osu,DrabWeb/osu,johnneijzen/osu,naoey/osu,ZLima12/osu,DrabWeb/osu,naoey/osu,smoogipoo/osu,EVAST9919/osu,ppy/osu,ZLima12/osu,smoogipoo/osu,johnneijzen/osu,NeoAdonis/osu,peppy/osu,naoey/osu,peppy/osu-new,peppy/osu,UselessToucan/osu,smoogipooo/osu,ppy/osu,ppy/osu,NeoAdonis/osu,2yangk23/osu,2yangk23/osu,UselessTo... |
2a93bc84998395347341901a6df9fc0df5a265f5 | Debugger/ModToolsMod.cs | Debugger/ModToolsMod.cs | using System;
using ColossalFramework;
using ColossalFramework.Plugins;
using ICities;
using ModTools.Utils;
using UnityEngine;
namespace ModTools
{
public sealed class ModToolsMod : IUserMod
{
public const string ModToolsName = "ModTools";
public static GameObject MainWindowObject;
... | using System;
using ColossalFramework;
using ColossalFramework.Plugins;
using ICities;
using ModTools.Utils;
using UnityEngine;
namespace ModTools
{
public sealed class ModToolsMod : IUserMod
{
public const string ModToolsName = "ModTools";
public static GameObject MainWindowObject;
... | Make mainObject an instance field | Make mainObject an instance field
| C# | mit | earalov/Skylines-ModTools |
b226a5b8f8bbcc61a21425c261042fd1814c7982 | Helpers.cs | Helpers.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NTST.ScriptLinkService.Objects;
namespace ScriptLinkCore
{
public partial class ScriptLink
{
/// <summary>
/// Used set required fields
/// </summary>
/// <p... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ScriptLinkCore.Objects;
namespace ScriptLinkCore
{
public partial class ScriptLink
{
/// <summary>
/// Used set required fields
/// </summary>
/// <param nam... | Change to use ScriptLinkCore.Objects namespace | Change to use ScriptLinkCore.Objects namespace | C# | mit | scottolsonjr/scriptlink-core |
ac7f8baf33be900e24ec0960faca1ce29494376e | InfluxDB.Net.Collector.Console/Program.cs | InfluxDB.Net.Collector.Console/Program.cs | using System;
namespace InfluxDB.Net.Collector.Console
{
static class Program
{
private static InfluxDb _client;
static void Main(string[] args)
{
if (args.Length != 3)
{
//url: http://128.199.43.107:8086
//username: root
... | using System;
using System.Diagnostics;
using InfluxDB.Net.Models;
namespace InfluxDB.Net.Collector.Console
{
static class Program
{
private static InfluxDb _client;
static void Main(string[] args)
{
if (args.Length != 3)
{
//url: http://12... | Send single sample of processor performance counter to the InfluxDB.Net. | Send single sample of processor performance counter to the InfluxDB.Net.
Also confirmed that the values can be read using grafana.
| C# | mit | poxet/influxdb-collector,poxet/Influx-Capacitor |
45348ae4071f7d519f4e4d7ca881d3ce64897461 | source/Nuke.Common/Tools/Unity/UnityBaseSettings.cs | source/Nuke.Common/Tools/Unity/UnityBaseSettings.cs | // Copyright 2021 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using Nuke.Common.Tooling;
namespace Nuke.Common.Tools.Unity
{
public partial class UnityBaseSettings
{
public override Action<Output... | // Copyright 2021 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using Nuke.Common.Tooling;
using Nuke.Common.Utilities;
namespace Nuke.Common.Tools.Unity
{
public partial class UnityBaseSettings
{
... | Fix quoting for Unity log file | Fix quoting for Unity log file
| C# | mit | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke |
8c16df83b21db42d0d7babcf2f80291960e43bb3 | Assets/Nanobot.cs | Assets/Nanobot.cs | using UnityEngine;
using System.Collections;
public class Nanobot : MonoBehaviour, TimestepManager.TimestepListener {
BulletGridGenerator currentLevel;
public NanobotSchematic schematic;
public int price;
public string id;
// Use this for initialization
void Start() {
currentLevel = FindOb... | using UnityEngine;
using System.Collections;
public class Nanobot : MonoBehaviour, TimestepManager.TimestepListener {
BulletGridGenerator currentLevel;
public NanobotSchematic schematic;
public int price;
public string id;
// Use this for initialization
void Start() {
currentLevel = FindOb... | Handle exiting if bot is destroyed by consuming resources. | Handle exiting if bot is destroyed by consuming resources.
| C# | mit | MarjieVolk/Backfire |
346778a112d401fb780e729b917fd2a728300918 | SimpleLogger/Logging/Formatters/DefaultLoggerFormatter.cs | SimpleLogger/Logging/Formatters/DefaultLoggerFormatter.cs | namespace SimpleLogger.Logging.Formatters
{
internal class DefaultLoggerFormatter : ILoggerFormatter
{
public string ApplyFormat(LogMessage logMessage)
{
return string.Format("{0:dd.MM.yyyy HH:mm}: {1} ln: {2} [{3} -> {4}()]: {5}",
logMessage.DateTime, lo... | namespace SimpleLogger.Logging.Formatters
{
internal class DefaultLoggerFormatter : ILoggerFormatter
{
public string ApplyFormat(LogMessage logMessage)
{
return string.Format("{0:dd.MM.yyyy HH:mm}: {1} [line: {2} {3} -> {4}()]: {5}",
logMessage.DateTime, l... | Change format on default logger formatter. | Change format on default logger formatter.
| C# | mit | jirkapenzes/SimpleLogger,Maxwolf/SimpleLogger,Maxwolf/Lumberjack |
bf67c6bfeaace152644b0b2e5dcdb3812645a789 | src/ScriptBuilder/ResourceReader.cs | src/ScriptBuilder/ResourceReader.cs | using System.IO;
using System.Reflection;
using NServiceBus.Persistence.Sql.ScriptBuilder;
static class ResourceReader
{
static Assembly assembly = typeof(ResourceReader).GetTypeInfo().Assembly;
public static string ReadResource(BuildSqlDialect sqlDialect, string prefix)
{
var text = $"NServiceBu... | using System.IO;
using System.Reflection;
using NServiceBus.Persistence.Sql.ScriptBuilder;
static class ResourceReader
{
static Assembly assembly = typeof(ResourceReader).GetTypeInfo().Assembly;
public static string ReadResource(BuildSqlDialect sqlDialect, string prefix)
{
var text = $"NServiceBu... | Revise expected resource name after fixing default namespace | Revise expected resource name after fixing default namespace
| C# | mit | NServiceBusSqlPersistence/NServiceBus.SqlPersistence |
e83f6afdcf6d67a75efb12e2d178ae8fae989a58 | src/FavRocks.Site/Views/Shared/_Layout.cshtml | src/FavRocks.Site/Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"]–FAV Rocks</title>
<link rel="shortcut icon" href="~/favicon.ico" />
<environment names="Development">
<link rel="stylesheet" href="~/css... | <!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"]–FAV Rocks</title>
<link rel="shortcut icon" href="~/favicon.ico" />
<environment names="Development">
<link rel="stylesheet... | Add language declaration to layout | Add language declaration to layout
| C# | mit | billboga/fav-rocks |
f33c71b0824f8a329442f7272acce95a2c3f3963 | src/Neo4jManager/Neo4jManager.Host/Program.cs | src/Neo4jManager/Neo4jManager.Host/Program.cs | using System.IO;
using Autofac.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Hosting;
namespace Neo4jManager.Host
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.ConfigureS... | using System.IO;
using System.Net;
using Autofac.Extensions.DependencyInjection;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
namespace Neo4jManager.Host
{
public class Program
{
public static void Main(string[] args)
{
var host = WebHost.CreateDefaultBuilder(arg... | Set port 7400 and use default WebHost builder | Set port 7400 and use default WebHost builder
| C# | mit | barnardos-au/Neo4jManager |
2c1e9b4d0fa5a0b49a7a9b97b07292f2f1fb4117 | XamarinStripe/StripeEvent.cs | XamarinStripe/StripeEvent.cs | /*
* Copyright 2012 Xamarin, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | /*
* Copyright 2012 Xamarin, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | Fix some details of the event object | Fix some details of the event object
| C# | apache-2.0 | haithemaraissia/XamarinStripe,xamarin/XamarinStripe |
9cebf31541c54789aac436d2990659569bb458b6 | ChamberLib.OpenTK/ShaderStage.cs | ChamberLib.OpenTK/ShaderStage.cs | using System;
using OpenTK.Graphics.OpenGL;
using System.Diagnostics;
using ChamberLib.Content;
namespace ChamberLib.OpenTK
{
public class ShaderStage : IShaderStage
{
public ShaderStage(ShaderContent content)
: this(content.Source, content.Type, content.Name)
{
}
p... | using System;
using OpenTK.Graphics.OpenGL;
using System.Diagnostics;
using ChamberLib.Content;
using _OpenTK = global::OpenTK;
namespace ChamberLib.OpenTK
{
public class ShaderStage : IShaderStage
{
public ShaderStage(ShaderContent content)
: this(content.Source, content.Type, content.Nam... | Use a flag to indicate if the shader stage has been successfully compiled. | Use a flag to indicate if the shader stage has been successfully compiled.
| C# | lgpl-2.1 | izrik/ChamberLib,izrik/ChamberLib,izrik/ChamberLib |
9b03fe59f4bf87e46416d7e05c7f5ed670753503 | Espera.Network/ResponseStatus.cs | Espera.Network/ResponseStatus.cs | namespace Espera.Network
{
public enum ResponseStatus
{
Success,
PlaylistEntryNotFound,
Unauthorized,
MalformedRequest,
NotFound,
NotSupported,
Rejected,
Fatal
}
} | namespace Espera.Network
{
public enum ResponseStatus
{
Success,
PlaylistEntryNotFound,
Unauthorized,
MalformedRequest,
NotFound,
NotSupported,
Rejected,
Fatal,
WrongPassword
}
} | Add a wrong password status | Add a wrong password status
| C# | mit | flagbug/Espera.Network |
d7282980de54748392f694b4d0951032d94b13b5 | Quiz/Quiz.Web/App_Start/BundleConfig.cs | Quiz/Quiz.Web/App_Start/BundleConfig.cs | using System.Web;
using System.Web.Optimization;
namespace Quiz.Web
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBu... | using System.Web;
using System.Web.Optimization;
namespace Quiz.Web
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBu... | Fix Otimização desabilitada para teste | Fix Otimização desabilitada para teste
| C# | mit | Arionildo/Quiz-CWI,Arionildo/Quiz-CWI,Arionildo/Quiz-CWI |
4ed080e822168a87a0140fb8f0f28132bc0b6d96 | 100_Doors_Problem/C#/Davipb/HundredDoors.cs | 100_Doors_Problem/C#/Davipb/HundredDoors.cs | using System.Linq;
namespace HundredDoors
{
public static class HundredDoors
{
/// <summary>
/// Solves the 100 Doors problem
/// </summary>
/// <returns>An array with 101 values, each representing a door (except 0). True = open</returns>
public static bool[] Solve()
{
// Create our array with 101 va... | using System.Linq;
namespace HundredDoors
{
public static class HundredDoors
{
/// <summary>
/// Solves the 100 Doors problem
/// </summary>
/// <returns>An array with 101 values, each representing a door (except 0). True = open</returns>
public static bool[] Solve()
{
// Create our array with 101 va... | Revert "Added "final door count" comment at return value." | Revert "Added "final door count" comment at return value."
This reverts commit 51f7b5f62af24188a05afa5a78284b9b0197c39d.
| C# | mit | pravsingh/Algorithm-Implementations,kennyledet/Algorithm-Implementations,pravsingh/Algorithm-Implementations,pravsingh/Algorithm-Implementations,kennyledet/Algorithm-Implementations,kennyledet/Algorithm-Implementations,kennyledet/Algorithm-Implementations,kennyledet/Algorithm-Implementations,n1ghtmare/Algorithm-Impleme... |
5e60d6be222266b254026b61994e450bde61b4c5 | Espera.Network/NetworkSongSource.cs | Espera.Network/NetworkSongSource.cs | namespace Espera.Network
{
public enum NetworkSongSource
{
Local = 0,
Youtube = 1,
Remote = 2
}
} | namespace Espera.Network
{
public enum NetworkSongSource
{
Local = 0,
Youtube = 1,
Mobile = 2
}
} | Rename that to avoid confusion | Rename that to avoid confusion
| C# | mit | flagbug/Espera.Network |
755b84826a6e6d828c800c4070668873b3de74e9 | src/GiveCRM.Web/Views/Member/AjaxSearch.cshtml | src/GiveCRM.Web/Views/Member/AjaxSearch.cshtml | @model IEnumerable<GiveCRM.Models.Member>
@foreach (var member in Model)
{
<a href="javascript:AddDonation(@member.Id);">@member.FirstName @member.LastName @member.PostalCode</a><br />
} | @model IEnumerable<GiveCRM.Models.Member>
@{
Layout = null;
}
@foreach (var member in Model)
{
<p style="margin:0; padding:0;"><a href="javascript:AddDonation(@member.Id);">@member.FirstName @member.LastName @member.PostalCode</a></p>
} | Remove page styling from Ajax search results. | Remove page styling from Ajax search results.
| C# | mit | GiveCampUK/GiveCRM,GiveCampUK/GiveCRM |
d8c68b61f034ed7531c9609b3c3e46b2b6a56c43 | samples/KWebStartup/Startup.cs | samples/KWebStartup/Startup.cs | using Microsoft.AspNet.Abstractions;
namespace KWebStartup
{
public class Startup
{
public void Configuration(IBuilder app)
{
app.Run(async context =>
{
context.Response.ContentType = "text/plain";
await context.Response.WriteAsync("Hello ... | using Microsoft.AspNet;
using Microsoft.AspNet.Abstractions;
namespace KWebStartup
{
public class Startup
{
public void Configuration(IBuilder app)
{
app.Run(async context =>
{
context.Response.ContentType = "text/plain";
await context.Res... | Add missing namespace to the sample. | Add missing namespace to the sample.
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
8debb2d45e53de4273ad19339f98448b933cd035 | src/Pablo.Gallery/App_Start/WebApiConfig.cs | src/Pablo.Gallery/App_Start/WebApiConfig.cs | using System.Net.Http.Formatting;
using System.Web.Http;
using System.Web.Http.Dispatcher;
using Pablo.Gallery.Logic;
using Pablo.Gallery.Logic.Filters;
using System.Web.Http.Controllers;
using Pablo.Gallery.Logic.Selectors;
namespace Pablo.Gallery
{
public static class WebApiConfig
{
public static void Register(... | using System.Net.Http.Formatting;
using System.Web.Http;
using System.Web.Http.Dispatcher;
using Pablo.Gallery.Logic;
using Pablo.Gallery.Logic.Filters;
using System.Web.Http.Controllers;
using Pablo.Gallery.Logic.Selectors;
namespace Pablo.Gallery
{
public static class WebApiConfig
{
public static void Register(... | Fix issue with ms asp.net getting httproute paths with a wildcard | Fix issue with ms asp.net getting httproute paths with a wildcard
| C# | mit | cwensley/Pablo.Gallery,cwensley/Pablo.Gallery,sixteencolors/Pablo.Gallery,cwensley/Pablo.Gallery,sixteencolors/Pablo.Gallery,sixteencolors/Pablo.Gallery,sixteencolors/Pablo.Gallery |
63ebc31bf4fd73852cf594543ba01709ae1a9fb4 | JefBot/Commands/CoinPluginCommand.cs | JefBot/Commands/CoinPluginCommand.cs | using System;
using System.Collections.Generic;
using System.IO;
using TwitchLib;
using TwitchLib.TwitchClientClasses;
using System.Net;
namespace JefBot.Commands
{
internal class CoinPluginCommand : IPluginCommand
{
public string PluginName => "Coin";
public string Command => "coin";
... | using System;
using System.Collections.Generic;
using System.IO;
using TwitchLib;
using TwitchLib.TwitchClientClasses;
using System.Net;
namespace JefBot.Commands
{
internal class CoinPluginCommand : IPluginCommand
{
public string PluginName => "Coin";
public string Command => "coin";
... | Allow coin flip to be heads. | Allow coin flip to be heads.
| C# | mit | mikaelssen/FruitBowlBot |
9f44e634a4995c611ab8d10e5aece9158b67d258 | osu.Desktop.VisualTests/Program.cs | osu.Desktop.VisualTests/Program.cs | //Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using osu.Framework.Desktop;
using osu.Framework.Desktop.Platform;
using osu.Framework.Platform;
using osu.Game.Modes;
using osu.Game.Modes.Catch;
... | //Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using osu.Framework.Desktop;
using osu.Framework.Desktop.Platform;
using osu.Framework.Platform;
using osu.Game.Modes;
using osu.Game.Modes.Catch;
... | Allow visualtests to share config etc. with osu!. | Allow visualtests to share config etc. with osu!.
| C# | mit | nyaamara/osu,UselessToucan/osu,Damnae/osu,NeoAdonis/osu,NeoAdonis/osu,theguii/osu,Frontear/osuKyzer,smoogipoo/osu,RedNesto/osu,peppy/osu,peppy/osu-new,ppy/osu,UselessToucan/osu,peppy/osu,DrabWeb/osu,naoey/osu,smoogipoo/osu,osu-RP/osu-RP,NeoAdonis/osu,EVAST9919/osu,default0/osu,DrabWeb/osu,johnneijzen/osu,naoey/osu,ppy/... |
094bb7058c754b885fe2348108cc7a61bfc2b3cb | Contentful.Core/Models/Management/SystemFieldTypes.cs | Contentful.Core/Models/Management/SystemFieldTypes.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Contentful.Core.Models.Management
{
/// <summary>
/// Represents the different types available for a <see cref="Field"/>.
/// </summary>
public class SystemFieldTypes
{
/// <summary>
/// Short text.
... | using System;
using System.Collections.Generic;
using System.Text;
namespace Contentful.Core.Models.Management
{
/// <summary>
/// Represents the different types available for a <see cref="Field"/>.
/// </summary>
public class SystemFieldTypes
{
/// <summary>
/// Short text.
... | Add rich text to system field types | Add rich text to system field types
| C# | mit | contentful/contentful.net |
5366e7dd5e6e780ed2096fd6f4944d38e90689ff | Battery-Commander.Web/Views/APFT/List.cshtml | Battery-Commander.Web/Views/APFT/List.cshtml | @model IEnumerable<APFT>
<h2>Units @Html.ActionLink("Add New", "New", "APFT", null, new { @class = "btn btn-default" })</h2>
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var model in Model)
{... | @model IEnumerable<APFT>
<h2>Units @Html.ActionLink("Add New", "New", "APFT", null, new { @class = "btn btn-default" })</h2>
<table class="table table-striped">
<thead>
<tr>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var model in Model)
{
<tr>
... | Add stub for APFT list | Add stub for APFT list
| C# | mit | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander |
93131b43953231617ac5ea50123e4a26a3437dd0 | Mindscape.Raygun4Net/ProfilingSupport/APM.cs | Mindscape.Raygun4Net/ProfilingSupport/APM.cs | using System;
using System.Runtime.CompilerServices;
namespace Mindscape.Raygun4Net
{
public static class APM
{
[ThreadStatic]
private static bool _enabled = false;
[MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)]
public static void Enable()
{
_enabled = tru... | using System;
using System.Runtime.CompilerServices;
namespace Mindscape.Raygun4Net
{
public static class APM
{
[ThreadStatic]
private static bool _enabled = false;
[MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)]
public static void Enable()
{
_enabled = tru... | Fix incorrect profiler environment variable name for .NET framework support | Fix incorrect profiler environment variable name for .NET framework support
| C# | mit | MindscapeHQ/raygun4net,MindscapeHQ/raygun4net,MindscapeHQ/raygun4net |
c309d98914aaaf3c8647eb12e7d54fb43abbaef3 | src/Tgstation.Server.Api/Rights/ConfigurationRights.cs | src/Tgstation.Server.Api/Rights/ConfigurationRights.cs | using System;
namespace Tgstation.Server.Api.Rights
{
/// <summary>
/// Rights for <see cref="Models.ConfigurationFile"/>
/// </summary>
[Flags]
public enum ConfigurationRights : ulong
{
/// <summary>
/// User has no rights
/// </summary>
None = 0,
/// <summary>
/// User may read files
/// </summa... | using System;
namespace Tgstation.Server.Api.Rights
{
/// <summary>
/// Rights for <see cref="Models.ConfigurationFile"/>
/// </summary>
[Flags]
public enum ConfigurationRights : ulong
{
/// <summary>
/// User has no rights
/// </summary>
None = 0,
/// <summary>
/// User may read files
/// </summa... | Fix ConfigurationsRights.List not being a power of 2 | Fix ConfigurationsRights.List not being a power of 2
| C# | agpl-3.0 | tgstation/tgstation-server-tools,Cyberboss/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server,Cyberboss/tgstation-server |
b202eb49132201a34a11d28080ef91813f1080d8 | src/DotVVM.Compiler/Program.cs | src/DotVVM.Compiler/Program.cs | using System;
using System.IO;
using System.Linq;
namespace DotVVM.Compiler
{
public static class Program
{
private static readonly string[] HelpOptions = new string[] {
"--help", "-h", "-?", "/help", "/h", "/?"
};
public static bool TryRun(FileInfo assembly, DirectoryInfo?... | using System;
using System.IO;
using System.Linq;
namespace DotVVM.Compiler
{
public static class Program
{
private static readonly string[] HelpOptions = new string[] {
"--help", "-h", "-?", "/help", "/h", "/?"
};
public static bool TryRun(FileInfo assembly, DirectoryInfo?... | Add a check for argument existence to the Compiler | Add a check for argument existence to the Compiler
| C# | apache-2.0 | riganti/dotvvm,riganti/dotvvm,riganti/dotvvm,riganti/dotvvm |
490e9dbfd67d5961e7fb33d63985504c8700b308 | FALMHousekeeping/Constants/HKConstants.cs | FALMHousekeeping/Constants/HKConstants.cs | namespace FALM.Housekeeping.Constants
{
/// <summary>
/// HkConstants
/// </summary>
public class HkConstants
{
/// <summary>
/// Application
/// </summary>
public class Application
{
/// <summary>Name of the Application</summary>
publ... | namespace FALM.Housekeeping.Constants
{
/// <summary>
/// HkConstants
/// </summary>
public class HkConstants
{
/// <summary>
/// Application
/// </summary>
public class Application
{
/// <summary>Name of the Application</summary>
publ... | Change icon color to be consistent with other section icon colors | Change icon color to be consistent with other section icon colors
| C# | mit | FALM-Umbraco-Projects/FALM-Housekeeping-v7,FALM-Umbraco-Projects/FALM-Housekeeping-v7,FALM-Umbraco-Projects/FALM-Housekeeping-v7 |
8ce4704ffd6b0ff95c61d198e34e7bad308bf5a8 | Web/Areas/Hub/Views/Shared/DisplayHub.cshtml | Web/Areas/Hub/Views/Shared/DisplayHub.cshtml | @using Cats.Models.Hubs
@using Cats.Web.Hub.Helpers
@using Telerik.Web.Mvc.UI
@{
var usr = @Html.GetCurrentUser();
var mdl = new CurrentUserModel(usr);
}
<div align="right">
@{
string title = "";
if(ViewBag.Title != null)
{
title = ViewBag.Title;
}
}
</di... | @using Cats.Models.Hubs
@using Cats.Web.Hub.Helpers
@using Telerik.Web.Mvc.UI
@{
var usr = @Html.GetCurrentUser();
var mdl = new CurrentUserModel(usr);
}
<div align="right">
@{
string title = "";
if(ViewBag.Title != null)
{
title = ViewBag.Title;
}
}
</di... | FIX CIT-785 Hide EDIT button for all users in hub | FIX CIT-785 Hide EDIT button for all users in hub
| C# | apache-2.0 | ndrmc/cats,ndrmc/cats,ndrmc/cats |
4058e1e0a26e66b7ce88b217f938faa6227e37ad | MoreDakka/Views/Forums/Index.cshtml | MoreDakka/Views/Forums/Index.cshtml | @{
Layout = null;
}
<div class="container" style="padding-top: 50px;">
<div class="container">
<div class="panel panel-default">
<div class="panel-body">
<table class="table table-striped table-bordered table-hover">
<thead>
<... | @{
Layout = null;
}
<div class="container" style="padding-top: 50px;">
<div class="container">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th></th>
<th>Forum... | Remove panel from index forum page for mobile devices | Remove panel from index forum page for mobile devices | C# | apache-2.0 | James226/more-dakka,James226/more-dakka,James226/more-dakka,James226/more-dakka |
68a102f30f4959c6a26fef72383c660fe4b0dea7 | UnityProject/Assets/Scripts/Messages/GameMessageBase.cs | UnityProject/Assets/Scripts/Messages/GameMessageBase.cs | using System.Collections;
using UnityEngine;
using UnityEngine.Networking;
public abstract class GameMessageBase : MessageBase
{
public GameObject NetworkObject;
public GameObject[] NetworkObjects;
protected IEnumerator WaitFor(NetworkInstanceId id)
{
int tries = 0;
while ((NetworkObject = ClientScene.FindLo... | using System.Collections;
using UnityEngine;
using UnityEngine.Networking;
public abstract class GameMessageBase : MessageBase
{
public GameObject NetworkObject;
public GameObject[] NetworkObjects;
protected IEnumerator WaitFor(NetworkInstanceId id)
{
if (id.IsEmpty())
{
Debug.LogError($"{this} tried to ... | Add case for waiting on an empty id | Add case for waiting on an empty id | C# | agpl-3.0 | Necromunger/unitystation,fomalsd/unitystation,Lancemaker/unitystation,fomalsd/unitystation,Necromunger/unitystation,MrLeebo/unitystation,krille90/unitystation,MrLeebo/unitystation,Lancemaker/unitystation,MrLeebo/unitystation,Necromunger/unitystation,fomalsd/unitystation,fomalsd/unitystation,krille90/unitystation,MrLeeb... |
9a1ff4092cd4d6cd0e070cf127f28f2f33f26a73 | DancingGoat/Startup.cs | DancingGoat/Startup.cs | using Microsoft.Owin;
using Owin;
[assembly: OwinStartupAttribute(typeof(DancingGoat.Startup))]
namespace DancingGoat
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
}
}
} | using Microsoft.Owin;
using Owin;
using System.Net;
[assembly: OwinStartupAttribute(typeof(DancingGoat.Startup))]
namespace DancingGoat
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
// .NET Framework 4.6.1 and lower does not support TLS 1.2 as the d... | Set TLS 1.2 as the default potocol | Set TLS 1.2 as the default potocol
| C# | mit | Kentico/Deliver-Dancing-Goat-.NET-MVC,Kentico/cloud-sample-app-net,Kentico/cloud-sample-app-net,Kentico/Deliver-Dancing-Goat-.NET-MVC,Kentico/cloud-sample-app-net |
d78c1c03fb46aabd8d77e988b5a2197e58007b75 | Tests/Cosmos.TestRunner.Full/DefaultEngineConfiguration.cs | Tests/Cosmos.TestRunner.Full/DefaultEngineConfiguration.cs | using System;
using System.Collections.Generic;
using Cosmos.Build.Common;
using Cosmos.TestRunner.Core;
namespace Cosmos.TestRunner.Full
{
public class DefaultEngineConfiguration : IEngineConfiguration
{
public virtual int AllowedSecondsInKernel => 6000;
public virtual IEnumerable<RunTarget... | using System;
using System.Collections.Generic;
using Cosmos.Build.Common;
using Cosmos.TestRunner.Core;
namespace Cosmos.TestRunner.Full
{
public class DefaultEngineConfiguration : IEngineConfiguration
{
public virtual int AllowedSecondsInKernel => 6000;
public virtual IEnumerable<RunTarget... | Disable GDB + Bochs GUI | Disable GDB + Bochs GUI
| C# | bsd-3-clause | zarlo/Cosmos,zarlo/Cosmos,CosmosOS/Cosmos,CosmosOS/Cosmos,CosmosOS/Cosmos,zarlo/Cosmos,zarlo/Cosmos,CosmosOS/Cosmos |
311a08cfd2a50efb214c7028be97a3d51de8803b | TestMoya/Extensions/StringExtensionsTests.cs | TestMoya/Extensions/StringExtensionsTests.cs | using Moya.Extensions;
using Xunit;
namespace TestMoya.Extensions
{
public class StringExtensionsTests
{
[Fact]
public void StringExtensionsFormatWithWorksWithWorksWithStrings()
{
const string Expected = "Hello world!";
var actual = "{0} {1}".FormatWith("Hello"... | namespace TestMoya.Extensions
{
using Moya.Extensions;
using Xunit;
public class StringExtensionsTests
{
[Fact]
public void StringExtensionsFormatWithWorksWithWorksWithStrings()
{
const string Expected = "Hello world!";
var actual = "{0} {1}".FormatWith... | Move usings inside namespace in stringextensionstests | Move usings inside namespace in stringextensionstests
| C# | mit | Hammerstad/Moya |
d9c96406ad7a05ecd53fbd41b5ef7f9ad0a6d1bf | NTumbleBit/BouncyCastle/security/SecureRandom.cs | NTumbleBit/BouncyCastle/security/SecureRandom.cs | using NBitcoin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NTumbleBit.BouncyCastle.Security
{
internal class SecureRandom : Random
{
public SecureRandom()
{
}
public override int Next()
{
return RandomUtils.GetInt32();
... | using NBitcoin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NTumbleBit.BouncyCastle.Security
{
internal class SecureRandom : Random
{
public SecureRandom()
{
}
public override int Next()
{
return RandomUtils.GetInt32();
... | Fix crash caused by previous commit | Fix crash caused by previous commit
| C# | mit | NTumbleBit/NTumbleBit,DanGould/NTumbleBit |
a90ce74775ae462ed7db89b363483d54d2b8a629 | Oogstplanner.Web/Views/Account/_LoginForm.cshtml | Oogstplanner.Web/Views/Account/_LoginForm.cshtml | @model LoginOrRegisterViewModel
@using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post,
new { @class="form-signin", @role="form"}))
{
<div class="form-group">
@Html.ValidationSummary(true)
</div>
<h2 class="form-signin-heading dark">Meld u alstublie... | @model LoginOrRegisterViewModel
@using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post,
new { @class="form-signin", @role="form"}))
{
<div class="form-group">
@Html.ValidationSummary(true)
</div>
<h2 class="form-signin-heading dark">Meld u alstublie... | Remove wrong type for username and e-mail field | Remove wrong type for username and e-mail field
| C# | mit | erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner |
89389514bef196d433983f1f101dc307a661b0af | osu.Framework.Benchmarks/BenchmarkBindableInstantiation.cs | osu.Framework.Benchmarks/BenchmarkBindableInstantiation.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 BenchmarkDotNet.Attributes;
using osu.Framework.Bindables;
namespace osu.Framework.Benchmarks
{
public class BenchmarkBindableInstantiation
{... | // 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 BenchmarkDotNet.Attributes;
using osu.Framework.Bindables;
namespace osu.Framework.Benchmarks
{
public class BenchmarkBindableInstantiation
{... | Refactor benchmarks to only demonstrate what's needed | Refactor benchmarks to only demonstrate what's needed
| C# | mit | peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,ppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,peppy/osu-framework |
162010bc5e05ae4f1c3fbe93b196ee49635d64fb | src/SyncTrayzor/Syncthing/ApiClient/EventType.cs | src/SyncTrayzor/Syncthing/ApiClient/EventType.cs | using Newtonsoft.Json;
namespace SyncTrayzor.Syncthing.ApiClient
{
[JsonConverter(typeof(DefaultingStringEnumConverter))]
public enum EventType
{
Unknown,
Starting,
StartupComplete,
Ping,
DeviceDiscovered,
DeviceConnected,
DeviceDisconnected,
... | using Newtonsoft.Json;
namespace SyncTrayzor.Syncthing.ApiClient
{
[JsonConverter(typeof(DefaultingStringEnumConverter))]
public enum EventType
{
Unknown,
Starting,
StartupComplete,
Ping,
DeviceDiscovered,
DeviceConnected,
DeviceDisconnected,
... | Add a couple of apparently missing events | Add a couple of apparently missing events
| C# | mit | canton7/SyncTrayzor,canton7/SyncTrayzor,canton7/SyncTrayzor |
2f5de263a1c824c89a78e0ead926c9ae9d6b0772 | src/MICore/Transports/LocalTransport.cs | src/MICore/Transports/LocalTransport.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.Text;
using System.Threading;
using System.Diagnostics;
using System.IO;
using System.Collections.Speciali... | // 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.Text;
using System.Threading;
using System.Diagnostics;
using System.IO;
using System.Collections.Speciali... | Add MI debugger working directory to PATH | Add MI debugger working directory to PATH
| C# | mit | yazeng/MIEngine,wesrupert/MIEngine,rajkumar42/MIEngine,xincun/MIEngine,chuckries/MIEngine,caslan/MIEngine,enginekit/MIEngine,devilman3d/MIEngine,pieandcakes/MIEngine,wesrupert/MIEngine,caslan/MIEngine,csiusers/MIEngine,devilman3d/MIEngine,yacoder/MIEngine,Microsoft/MIEngine,edumunoz/MIEngine,edumunoz/MIEngine,pieandcak... |
f4e21d24932bce181b8ea204a3aa3f609b9fa7b9 | src/NQuery.UnitTests/SelectStarTests.cs | src/NQuery.UnitTests/SelectStarTests.cs | using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace NQuery.UnitTests
{
[TestClass]
public class SelectStarTests
{
[TestMethod]
public void Binder_DisallowsSelectStarWithoutTables()
{
var syntaxTree = SyntaxTree.ParseQuery("SEL... | using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace NQuery.UnitTests
{
[TestClass]
public class SelectStarTests
{
[TestMethod]
public void SelectStar_Disallowed_WhenNoTablesSpecified()
{
var syntaxTree = SyntaxTree.ParseQuery(... | Rename SELECT * test cases to match naming convention | Rename SELECT * test cases to match naming convention
| C# | mit | terrajobst/nquery-vnext |
afdb0f9d0fd3ff9e3fa651492a64976e2096a988 | src/Okanshi.Dashboard/SettingsModule.cs | src/Okanshi.Dashboard/SettingsModule.cs | using System;
using System.Linq;
using Nancy;
namespace Okanshi.Dashboard
{
public class SettingsModule : NancyModule
{
public SettingsModule(IConfiguration configuration)
{
Get["/settings"] = p =>
{
var servers = configuration.GetAll().ToArray();
return View["settings.html", servers];
};
Po... | using System;
using System.Linq;
using Nancy;
namespace Okanshi.Dashboard
{
public class SettingsModule : NancyModule
{
public SettingsModule(IConfiguration configuration)
{
Get["/settings"] = p =>
{
var servers = configuration.GetAll().ToArray();
return View["settings.html", servers];
};
Po... | Implement endpoint for remove instance | Implement endpoint for remove instance
| C# | mit | mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard |
1aba4d54e1444b9447757a5e9712157e61a3dc14 | Views/Price.cshtml | Views/Price.cshtml | @if (Model.DiscountedPrice != Model.Price) {
<b class="inactive-price" style="text-decoration:line-through" title="@T("Was ${0}", Model.Price)">$@Model.Price</b>
<b class="discounted-price" title="@T("Now ${0}", Model.DiscountedPrice)">$@Model.DiscountedPrice</b>
<span class="discount-comment">@Model.Di... | @if (Model.DiscountedPrice != Model.Price)
{
<b class="inactive-price" style="text-decoration:line-through" title="@T("Was {0}", Model.Price.ToString("c"))">@Model.Price.ToString("c")</b>
<b class="discounted-price" title="@T("Now {0}", Model.DiscountedPrice.ToString("c"))">@Model.DiscountedPrice.ToString("... | Remove hard coded USD dollar symbol and use currency string formatting instead. | Remove hard coded USD dollar symbol and use currency string formatting instead.
TODO: Reflect currency format according to 'Default Site Culture' set within Orchard, not the culture settings of the server.
--HG--
branch : currency_string_format
| C# | bsd-3-clause | bleroy/Nwazet.Commerce,bleroy/Nwazet.Commerce |
9097c10782843db55ab00d0000ac253910ee0210 | Console/Program.cs | Console/Program.cs | using S22.Xmpp.Client;
using S22.Xmpp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using S22.Xmpp.Im;
namespace XmppConsole
{
class Program
{
static void Main(string[] args)
{
try
{
... | using S22.Xmpp.Client;
using S22.Xmpp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using S22.Xmpp.Im;
namespace XmppConsole
{
class Program
{
static void Main(string[] args)
{
try
{
... | Put passwords in startup args | Put passwords in startup args
| C# | mit | Hitcents/S22.Xmpp |
cecb7009a79120037b135ba9b730d24a95fd610e | mvcWebApp/Views/Home/_Header.cshtml | mvcWebApp/Views/Home/_Header.cshtml |
<div class="container">
<header class="container">
<h1>Sweet Water Revolver</h1>
</header>
</div> |
<div class="container">
<header>
<h1>Sweet Water Revolver</h1>
</header>
</div> | Remove the container class from the header, because it was redundant with its containing div. | Remove the container class from the header, because it was redundant with its containing div.
| C# | mit | bigfont/sweet-water-revolver |
7bec8226cc515339e4cb1a98a27e62d6bca3c5a4 | PickemApp/Global.asax.cs | PickemApp/Global.asax.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace PickemApp
{
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
// visit http://go.microsoft.com/?L... | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using PickemApp.Models;
using PickemApp.Migrations;
namespace PickemApp
{
// Note: For instructions o... | Enable migrations on app start | Enable migrations on app start
| C# | isc | chrisofspades/PickemApp,chrisofspades/PickemApp,chrisofspades/PickemApp |
9fdd5f6a760ce3519f9ba7402c364629b663a5cc | Portfolio/Global.asax.cs | Portfolio/Global.asax.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace Portfolio
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
... | using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace Portfolio
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(G... | Enable CF migrations on restart | Enable CF migrations on restart
| C# | isc | dev-academy-phase4/cs-portfolio,dev-academy-phase4/cs-portfolio |
a62770b39df18615939fa7366ff868b0feef2c18 | src/Demo/DemoDistributor/Program.cs | src/Demo/DemoDistributor/Program.cs | using System;
using DemoDistributor.Endpoints.FileSystem;
using DemoDistributor.Endpoints.Sharepoint;
using Delivered;
namespace DemoDistributor
{
internal class Program
{
private static void Main(string[] args)
{
//Configure the distributor
var distributor = new Distri... | using System;
using DemoDistributor.Endpoints.FileSystem;
using DemoDistributor.Endpoints.Sharepoint;
using Delivered;
namespace DemoDistributor
{
internal class Program
{
private static void Main(string[] args)
{
//Configure the distributor
var distributor = new Distri... | Fix demo by uncommenting line accidentally left commented | Fix demo by uncommenting line accidentally left commented
| C# | mit | justinjstark/Verdeler,justinjstark/Delivered |
d6765899f4dea2bbb922d8b5f3c781ac144e0415 | Battlezeppelins/Controllers/BaseController.cs | Battlezeppelins/Controllers/BaseController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Battlezeppelins.Models;
namespace Battlezeppelins.Controllers
{
public abstract class BaseController : Controller
{
private static List<Player> playerList = new List<Player>();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Battlezeppelins.Models;
namespace Battlezeppelins.Controllers
{
public abstract class BaseController : Controller
{
private static List<Player> playerList = new List<Player>();
... | Fix null players in player list. | Fix null players in player list.
| C# | apache-2.0 | Mikuz/Battlezeppelins,Mikuz/Battlezeppelins |
934d41fc92e122ecdfc2bb22e254aca1620809d3 | PlantUmlEditor/View/DiagramEditorView.xaml.cs | PlantUmlEditor/View/DiagramEditorView.xaml.cs | using System.Windows.Controls;
namespace PlantUmlEditor.View
{
public partial class DiagramEditorView : UserControl
{
public DiagramEditorView()
{
InitializeComponent();
}
}
}
| using System;
using System.Windows.Controls;
namespace PlantUmlEditor.View
{
public partial class DiagramEditorView : UserControl
{
public DiagramEditorView()
{
InitializeComponent();
ContentEditor.IsEnabledChanged += ContentEditor_IsEnabledChanged;
}
void ContentEdi... | Maintain focus on the text editor after saving. | Maintain focus on the text editor after saving.
| C# | apache-2.0 | mthamil/PlantUMLStudio,mthamil/PlantUMLStudio |
a457b3d8484f3bbcceef453e29c89beb861eec44 | src/SharpGraphEditor/ViewModels/TextViewerViewModel.cs | src/SharpGraphEditor/ViewModels/TextViewerViewModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using Caliburn.Micro;
namespace SharpGraphEditor.ViewModels
{
public class TextViewerViewModel : PropertyChangedBase
{
private string _text;
private bool _canCopy;
private bool _... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using Caliburn.Micro;
namespace SharpGraphEditor.ViewModels
{
public class TextViewerViewModel : PropertyChangedBase
{
private string _text;
private bool _canCopy;
private bool _... | Fix bug: "Copy" button don't show in TextView during saving | Fix bug: "Copy" button don't show in TextView during saving
| C# | apache-2.0 | AceSkiffer/SharpGraphEditor |
647e2c297cb91288df121bf4577a792537ce4012 | osu.iOS/Application.cs | osu.iOS/Application.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 UIKit;
namespace osu.iOS
{
public class Application
{
public static void Main(string[] args)
{
UIApplication.Main(args, null, ... | // 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 UIKit;
namespace osu.iOS
{
public class Application
{
public static void Main(string[] args)
{
UIApplication.Main(args, "GameU... | Fix iOS app entry for raw keyboard input | Fix iOS app entry for raw keyboard input
| C# | mit | EVAST9919/osu,ZLima12/osu,UselessToucan/osu,2yangk23/osu,ppy/osu,johnneijzen/osu,smoogipoo/osu,ppy/osu,ppy/osu,peppy/osu,2yangk23/osu,peppy/osu-new,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,ZLima12/osu,smoogipooo/osu,EVAST9919/osu,UselessToucan/osu,johnneijzen/osu,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu... |
3e3b4d8af5fd1302a77add38f262c3c74fb303f7 | Mindscape.Raygun4Net/Breadcrumbs/HttpBreadcrumbStorage.cs | Mindscape.Raygun4Net/Breadcrumbs/HttpBreadcrumbStorage.cs | using System.Collections;
using System.Collections.Generic;
using System.Web;
namespace Mindscape.Raygun4Net.Breadcrumbs
{
internal class HttpBreadcrumbStorage : IRaygunBreadcrumbStorage
{
private const string ItemsKey = "Raygun.Breadcrumbs.Storage";
public IEnumerator<RaygunBreadcrumb> GetEnumerator()
... | using System.Collections;
using System.Collections.Generic;
using System.Web;
namespace Mindscape.Raygun4Net.Breadcrumbs
{
internal class HttpBreadcrumbStorage : IRaygunBreadcrumbStorage
{
private const string ItemsKey = "Raygun.Breadcrumbs.Storage";
public IEnumerator<RaygunBreadcrumb> GetEnumerator()
... | Return empty list if HttpContext.Current is null | Return empty list if HttpContext.Current is null
| C# | mit | MindscapeHQ/raygun4net,MindscapeHQ/raygun4net,MindscapeHQ/raygun4net |
bbe17cf6eaa16b06dce1861450d63ed8f827a996 | Source/MTW_AncestorSpirits/RoomRoleWorker_ShrineRoom.cs | Source/MTW_AncestorSpirits/RoomRoleWorker_ShrineRoom.cs | using RimWorld;
using Verse;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MTW_AncestorSpirits
{
class RoomRoleWorker_ShrineRoom : RoomRoleWorker
{
public override float GetScore(Room room)
{
// I don't know if there should be some... | using RimWorld;
using Verse;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MTW_AncestorSpirits
{
class RoomRoleWorker_ShrineRoom : RoomRoleWorker
{
public override float GetScore(Room room)
{
// I don't know if there should be some... | Fix ShrineRoom to always be current spawner | Fix ShrineRoom to always be current spawner
| C# | mit | MoyTW/MTW_AncestorSpirits |
41b94c962a2aecb8b9a2c0a7606b1cc7c9b61a5e | EOLib/Net/Translators/PacketTranslatorContainer.cs | EOLib/Net/Translators/PacketTranslatorContainer.cs | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using EOLib.Data.Protocol;
using Microsoft.Practices.Unity;
namespace EOLib.Net.Translators
{
public class PacketTranslatorContainer : IDependencyContainer
{
public ... | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using EOLib.Data.Login;
using EOLib.Data.Protocol;
using Microsoft.Practices.Unity;
namespace EOLib.Net.Translators
{
public class PacketTranslatorContainer : IDependen... | Add IoC registration for login data translator | Add IoC registration for login data translator
| C# | mit | ethanmoffat/EndlessClient |
7de732361e35815e3ff6aed2e41c96542108ce03 | src/Yio/Program.cs | src/Yio/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Yio.Utilities;
namespace Yio
{
public c... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Yio.Utilities;
namespace Yio
{
public c... | Fix port in arguments crashing app | Fix port in arguments crashing app
| C# | mit | Zyrio/ictus,Zyrio/ictus |
1a6e88d9b2919f98ba77a42d8a54be84d95c66b6 | MarcelloDB/Helpers/DataHelper.cs | MarcelloDB/Helpers/DataHelper.cs | using System;
namespace MarcelloDB.Helpers
{
internal class DataHelper
{
internal static void CopyData(
Int64 sourceAddress,
byte[] sourceData,
Int64 targetAddress,
byte[] targetData)
{
var lengthToCopy = sourceData.Length;
... | using System;
namespace MarcelloDB.Helpers
{
internal class DataHelper
{
internal static void CopyData(
Int64 sourceAddress,
byte[] sourceData,
Int64 targetAddress,
byte[] targetData)
{
Int64 lengthToCopy = sourceData.Length;
... | Fix integer overflow on large collection files | Fix integer overflow on large collection files
| C# | mit | markmeeus/MarcelloDB |
8d0017fd031473ab7df1b883d1b08a9e471bcc2a | Web/Html/Navigator.cs | Web/Html/Navigator.cs | using System.Html.Media;
using System.Runtime.CompilerServices;
namespace System.Html {
public partial class Navigator {
[InlineCode("(navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozUserMedia || navigator.msGetUserMedia)({params}, {onsuccess})")]
public static void GetUserMedia(MediaStream... | using System.Html.Media;
using System.Runtime.CompilerServices;
namespace System.Html {
public partial class Navigator {
[InlineCode("(navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia).call(navigator, {params}, {onsuccess})")]
public static void GetUs... | Fix navigator.getUserMedia webkit(TypeError: Illegal invocation) + moz(typo) | Fix navigator.getUserMedia webkit(TypeError: Illegal invocation) + moz(typo)
| C# | apache-2.0 | n9/SaltarelleWeb,n9/SaltarelleWeb,Saltarelle/SaltarelleWeb,n9/SaltarelleWeb,n9/SaltarelleWeb,Saltarelle/SaltarelleWeb |
c9fd13950a468d8e6b6f82343217b74d2d0ea8e1 | DeviceMetadataInstallTool/Program.cs | DeviceMetadataInstallTool/Program.cs | using System;
using System.IO;
using System.Collections;
namespace DeviceMetadataInstallTool
{
/// <summary>
/// see https://support.microsoft.com/en-us/kb/303974
/// </summary>
class MetadataFinder
{
public System.Collections.Generic.List<String> Files = new System.Collections.Generic.Lis... | using System;
using System.IO;
using System.Collections;
namespace DeviceMetadataInstallTool
{
class Program
{
static void Main(string[] args)
{
var files = new System.Collections.Generic.List<String>();
//Console.WriteLine("Args size is {0}", args.Length);
... | Use glob-recurse and fix the program when you pass it file names | Use glob-recurse and fix the program when you pass it file names
| C# | apache-2.0 | sensics/DeviceMetadataTools |
f247d2aa216e1cf3a50aa7519eb80b3b6fbb3044 | osu.Framework/Platform/Linux/LinuxGameHost.cs | osu.Framework/Platform/Linux/LinuxGameHost.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
namespace osu.Framework.Platform.Linux
{
using Native;
public class LinuxGameHost : DesktopGameHost
{
internal LinuxGameHost(string gameN... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Platform.Linux.Native;
namespace osu.Framework.Platform.Linux
{
public class LinuxGameHost : DesktopGameHost
{
internal L... | Use more standard namespace formatting | Use more standard namespace formatting
| C# | mit | smoogipooo/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,DrabWeb/osu-framework,Tom94/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,Tom94/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,EVAST9919/osu-fram... |
f8f93d87866634a5e14c4c038001b1b112b470e5 | src/OpenSage.Game/Data/Sav/GameStateMap.cs | src/OpenSage.Game/Data/Sav/GameStateMap.cs | using System.IO;
using OpenSage.Network;
namespace OpenSage.Data.Sav
{
internal static class GameStateMap
{
internal static void Load(SaveFileReader reader, Game game)
{
reader.ReadVersion(2);
var mapPath1 = reader.ReadAsciiString();
var mapPath2 = reader.R... | using System.IO;
using OpenSage.Network;
namespace OpenSage.Data.Sav
{
internal static class GameStateMap
{
internal static void Load(SaveFileReader reader, Game game)
{
reader.ReadVersion(2);
var mapPath1 = reader.ReadAsciiString();
var mapPath2 = reader.R... | Fix map path for single player maps | Fix map path for single player maps
| C# | mit | feliwir/openSage,feliwir/openSage |
3bd3e41661eea6e3649dca30bb7a6e3dadeafb89 | Papyrus/Papyrus/Extensions/EbookExtensions.cs | Papyrus/Papyrus/Extensions/EbookExtensions.cs | namespace Papyrus
{
public static class EBookExtensions
{
}
}
| using System;
using System.Threading.Tasks;
using Windows.Storage;
namespace Papyrus
{
public static class EBookExtensions
{
public static async Task<bool> VerifyMimetypeAsync(this EBook ebook)
{
var mimetypeFile = await ebook._rootFolder.GetItemAsync("mimetype");
if (... | Add extension to verify mimetype. | Add extension to verify mimetype.
| C# | mit | TastesLikeTurkey/Papyrus |
66c96fe5001ba98bb7f47baad383a35c5bf0ff0f | src/AppGet/PackageRepository/AppGetServerClient.cs | src/AppGet/PackageRepository/AppGetServerClient.cs | using System.Collections.Generic;
using System.Net;
using AppGet.Http;
using NLog;
namespace AppGet.PackageRepository
{
public class AppGetServerClient : IPackageRepository
{
private readonly IHttpClient _httpClient;
private readonly Logger _logger;
private readonly HttpRequestBuilder ... | using System.Collections.Generic;
using System.Net;
using AppGet.Http;
using NLog;
namespace AppGet.PackageRepository
{
public class AppGetServerClient : IPackageRepository
{
private readonly IHttpClient _httpClient;
private readonly Logger _logger;
private readonly HttpRequestBuilder ... | Use azure hosted server for now | Use azure hosted server for now
| C# | apache-2.0 | AppGet/AppGet |
a5c96fe96e4cb4b8bc1539eee24e6f6c37fda2f4 | ConsoleApps/FunWithSpikes/FunWithNewtonsoft/ListTests.cs | ConsoleApps/FunWithSpikes/FunWithNewtonsoft/ListTests.cs | using NUnit.Framework;
using System.Collections.Generic;
namespace FunWithNewtonsoft
{
[TestFixture]
public class ListTests
{
[Test]
public void Deserialize_PartialList_ReturnsList()
{
// Assemble
string json = @"
{'Number':'1','Letter':'A'},... | using Newtonsoft.Json;
using NUnit.Framework;
using System.Collections.Generic;
namespace FunWithNewtonsoft
{
[TestFixture]
public class ListTests
{
[Test]
public void DeserializeObject_JsonList_ReturnsList()
{
// Assemble
string json = @"
[
... | Add tests for json lists. | Add tests for json lists.
| C# | mit | jquintus/spikes,jquintus/spikes,jquintus/spikes,jquintus/spikes |
249b713dc3a5cdeee35cc0460ec2efbe734cad1d | GekkoAssembler.Common/Optimizers/IRMultiUnitOptimizer.cs | GekkoAssembler.Common/Optimizers/IRMultiUnitOptimizer.cs | using System.Collections.Generic;
using System.Linq;
using GekkoAssembler.IntermediateRepresentation;
namespace GekkoAssembler.Optimizers
{
public class IRMultiUnitOptimizer : IOptimizer
{
public IRCodeBlock Optimize(IRCodeBlock block)
{
var units = block.Units;
var ne... | using System.Collections.Generic;
using System.Linq;
using GekkoAssembler.IntermediateRepresentation;
namespace GekkoAssembler.Optimizers
{
public class IRMultiUnitOptimizer : IOptimizer
{
public IRCodeBlock Optimize(IRCodeBlock block)
{
var units = block.Units;
var ne... | Change the Order for Inlining Multi Units | Change the Order for Inlining Multi Units
| C# | mit | CryZe/GekkoAssembler |
d2650fc1a05e012a58a2283a59ce4dfdc6e634e3 | osu.Game/Collections/DeleteCollectionDialog.cs | osu.Game/Collections/DeleteCollectionDialog.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 osu.Framework.Graphics.Sprites;
using osu.Game.Overlays.Dialog;
namespace osu.Game.Collections
{
public class DeleteCollectionDialog : PopupDialo... | // 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 Humanizer;
using osu.Framework.Graphics.Sprites;
using osu.Game.Overlays.Dialog;
namespace osu.Game.Collections
{
public class DeleteCollectionDi... | Add count to deletion dialog | Add count to deletion dialog
| C# | mit | NeoAdonis/osu,UselessToucan/osu,peppy/osu,smoogipoo/osu,peppy/osu-new,smoogipoo/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,peppy/osu,smoogipooo/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,peppy/osu |
43c650a9430280ea48266333614b79754a5e8d2d | Assets/Scripts/Planet.cs | Assets/Scripts/Planet.cs | using UnityEngine;
public class Planet : MonoBehaviour {
[SerializeField]
private float _radius;
public float Radius {
get { return _radius; }
set { _radius = value; }
}
public float Permieter {
get { return 2 * Mathf.PI * Radius; }
}
public void SampleOrbit2D( f... | using UnityEngine;
public class Planet : MonoBehaviour {
[SerializeField]
private float _radius;
public float Radius {
get { return _radius; }
set { _radius = value; }
}
public float Permieter {
get { return 2 * Mathf.PI * Radius; }
}
public void SampleOrbit2D( f... | Change orbit angles to degree | Change orbit angles to degree
| C# | mit | dirty-casuals/LD38-A-Small-World |
fde47de2a44c9becfc6ef45b56f475b0d77930b0 | src/ExternalTemplates.AspNet/IGeneratorOptions.Default.cs | src/ExternalTemplates.AspNet/IGeneratorOptions.Default.cs | using System;
namespace ExternalTemplates
{
/// <summary>
/// Default generator options.
/// </summary>
public class GeneratorOptions : IGeneratorOptions
{
/// <summary>
/// Gets the path relative to the web root where the templates are stored.
/// Default is "/Content/templates".
/// </summary>
public... | using System;
namespace ExternalTemplates
{
/// <summary>
/// Default generator options.
/// </summary>
public class GeneratorOptions : IGeneratorOptions
{
/// <summary>
/// Gets the path relative to the web root where the templates are stored.
/// Default is "/Content/templates".
/// </summary>
public... | Add the defaults for GeneratorOptions | Add the defaults for GeneratorOptions
| C# | mit | mrahhal/ExternalTemplates |
7515dfefa45a889d7a6626cdae3ac3123b19c300 | src/FluentMigrator.Runner/Generators/MySql/MySqlQuoter.cs | src/FluentMigrator.Runner/Generators/MySql/MySqlQuoter.cs | using FluentMigrator.Runner.Generators.Generic;
namespace FluentMigrator.Runner.Generators.MySql
{
public class MySqlQuoter : GenericQuoter
{
public override string OpenQuote { get { return "`"; } }
public override string CloseQuote { get { return "`"; } }
public override string Quot... | using FluentMigrator.Runner.Generators.Generic;
namespace FluentMigrator.Runner.Generators.MySql
{
public class MySqlQuoter : GenericQuoter
{
public override string OpenQuote { get { return "`"; } }
public override string CloseQuote { get { return "`"; } }
public override string Quot... | Fix MySql do not support Milliseconds | Fix MySql do not support Milliseconds
| C# | apache-2.0 | barser/fluentmigrator,schambers/fluentmigrator,lcharlebois/fluentmigrator,amroel/fluentmigrator,mstancombe/fluentmig,mstancombe/fluentmigrator,tommarien/fluentmigrator,alphamc/fluentmigrator,amroel/fluentmigrator,KaraokeStu/fluentmigrator,bluefalcon/fluentmigrator,istaheev/fluentmigrator,lcharlebois/fluentmigrator,IRly... |
a2839acd1680be52f57587aea524976fc74d9088 | Dominion.Cards/Actions/Chancellor.cs | Dominion.Cards/Actions/Chancellor.cs | using System;
using Dominion.Rules;
using Dominion.Rules.Activities;
using Dominion.Rules.CardTypes;
namespace Dominion.Cards.Actions
{
public class Chancellor : Card, IActionCard
{
public Chancellor() : base(3)
{
}
public void Play(TurnContext context)
{
... | using System;
using Dominion.Rules;
using Dominion.Rules.Activities;
using Dominion.Rules.CardTypes;
namespace Dominion.Cards.Actions
{
public class Chancellor : Card, IActionCard
{
public Chancellor() : base(3)
{
}
public void Play(TurnContext context)
{
... | Stop chancellor from prompting the player when they have no cards in their deck. | Stop chancellor from prompting the player when they have no cards in their deck.
| C# | mit | paulbatum/Dominion,paulbatum/Dominion |
b1704a4c06c581a5b18126740dbe92bb018b35f2 | tests/Core.UnitTests/AppSettingsConfigurationProviderTests.cs | tests/Core.UnitTests/AppSettingsConfigurationProviderTests.cs | using System;
using System.Collections.Specialized;
using Xunit;
namespace GV.AspNet.Configuration.ConfigurationManager.UnitTests
{
public class AppSettingsConfigurationProviderTests
{
[Theory]
[InlineData("Key1", "Value1")]
[InlineData("Key2", "Value2")]
public void LoadsKeyValuePairsFromAppSett... | using System;
using System.Collections.Specialized;
using Microsoft.Extensions.Configuration;
using Xunit;
namespace GV.AspNet.Configuration.ConfigurationManager.UnitTests
{
public class AppSettingsConfigurationProviderTests
{
public class Load
{
[Theory]
[InlineData("", "Value")]
[InlineD... | Add support for custom key delimiter | Add support for custom key delimiter
| C# | mit | gusztavvargadr/aspnet-Configuration.Contrib |
cfc8873ff4adf209dc26b5927561e633c229613c | tests/Bugsnag.Tests/Payload/ExceptionTests.cs | tests/Bugsnag.Tests/Payload/ExceptionTests.cs | using System.Linq;
using Bugsnag.Payload;
using Xunit;
namespace Bugsnag.Tests.Payload
{
public class ExceptionTests
{
[Fact]
public void CorrectNumberOfExceptions()
{
var exception = new System.Exception("oh noes!");
var exceptions = new Exceptions(exception, 5);
Assert.Single(exce... | using System.Linq;
using System.Threading.Tasks;
using Bugsnag.Payload;
using Xunit;
namespace Bugsnag.Tests.Payload
{
public class ExceptionTests
{
[Fact]
public void CorrectNumberOfExceptions()
{
var exception = new System.Exception("oh noes!");
var exceptions = new Exceptions(exception,... | Test for aggregate exception handling | Test for aggregate exception handling
| C# | mit | bugsnag/bugsnag-dotnet,bugsnag/bugsnag-dotnet |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.