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 |
|---|---|---|---|---|---|---|---|---|---|
be881ba9ca7261d9a4a85a95338406025f5682e5 | src/Umbraco.Web/Routing/RedirectTrackingComposer.cs | src/Umbraco.Web/Routing/RedirectTrackingComposer.cs | using Umbraco.Core;
using Umbraco.Core.Components;
namespace Umbraco.Web.Routing
{
/// <summary>
/// Implements an Application Event Handler for managing redirect urls tracking.
/// </summary>
/// <remarks>
/// <para>when content is renamed or moved, we want to create a permanent 301 redirect from... | using Umbraco.Core;
using Umbraco.Core.Components;
namespace Umbraco.Web.Routing
{
/// <summary>
/// Implements an Application Event Handler for managing redirect urls tracking.
/// </summary>
/// <remarks>
/// <para>when content is renamed or moved, we want to create a permanent 301 redirect from... | Fix the redirect tracking composer | Fix the redirect tracking composer
| C# | mit | hfloyd/Umbraco-CMS,abryukhov/Umbraco-CMS,abjerner/Umbraco-CMS,leekelleher/Umbraco-CMS,hfloyd/Umbraco-CMS,KevinJump/Umbraco-CMS,abryukhov/Umbraco-CMS,robertjf/Umbraco-CMS,leekelleher/Umbraco-CMS,umbraco/Umbraco-CMS,mattbrailsford/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,madsoulswe/Umbraco-CMS,marcemarc/Umbraco-CMS,tcmo... |
047a2b289fcedd5cb481f1583be7ddafa5c9bc97 | Pdf/PdfPageExtensions.cs | Pdf/PdfPageExtensions.cs | using System;
using System.Collections.Generic;
using System.Drawing;
using PdfSharp.Pdf.Advanced;
// ReSharper disable once CheckNamespace
namespace PdfSharp.Pdf
{
/// <summary>
/// Extension methods for the PdfSharp library PdfItem object.
/// </summary>
public static class PdfPageExtensions
{
/// <su... | using System;
using System.Collections.Generic;
using System.Drawing;
using PdfSharp.Pdf.Advanced;
// ReSharper disable once CheckNamespace
namespace PdfSharp.Pdf
{
/// <summary>
/// Extension methods for the PdfSharp library PdfItem object.
/// </summary>
public static class PdfPageExtensions
{
/// <su... | Use var declaration. Fix ArgumentNullException parameter name. | Use var declaration. Fix ArgumentNullException parameter name.
| C# | mit | gheeres/PDFSharp.Extensions |
c94db0af6b58712c6deb2f9f1249e8345b60688b | Portal.CMS.Web/Areas/Admin/Views/Dashboard/_QuickAccess.cshtml | Portal.CMS.Web/Areas/Admin/Views/Dashboard/_QuickAccess.cshtml | @model Portal.CMS.Web.Areas.Admin.ViewModels.Dashboard.QuickAccessViewModel
<div class="page-admin-wrapper admin-wrapper">
@foreach (var category in Model.Categories)
{
<a href="@category.Link" class="button @category.CssClass @(category.LaunchModal ? "launch-modal" : "")" data-toggle="popover" data-p... | @model Portal.CMS.Web.Areas.Admin.ViewModels.Dashboard.QuickAccessViewModel
<div class="page-admin-wrapper admin-wrapper animated zoomInUp">
@foreach (var category in Model.Categories)
{
<a href="@category.Link" class="button @category.CssClass @(category.LaunchModal ? "launch-modal" : "")" data-toggl... | Bring Attention to the Quick Access Panel On Page Load | Bring Attention to the Quick Access Panel On Page Load
| C# | mit | tommcclean/PortalCMS,tommcclean/PortalCMS,tommcclean/PortalCMS |
45ff0924a71287acb5860084e4ffd578d9759641 | XamarinApp/MyTrips/MyTrips.DataStore.Azure/Stores/TripStore.cs | XamarinApp/MyTrips/MyTrips.DataStore.Azure/Stores/TripStore.cs | using System;
using MyTrips.DataObjects;
using MyTrips.DataStore.Abstractions;
using System.Threading.Tasks;
using MyTrips.Utils;
using System.Collections.Generic;
namespace MyTrips.DataStore.Azure.Stores
{
public class TripStore : BaseStore<Trip>, ITripStore
{
IPhotoStore photoStore;
public T... | using System;
using MyTrips.DataObjects;
using MyTrips.DataStore.Abstractions;
using System.Threading.Tasks;
using MyTrips.Utils;
using System.Collections.Generic;
using System.Linq;
namespace MyTrips.DataStore.Azure.Stores
{
public class TripStore : BaseStore<Trip>, ITripStore
{
IPhotoStore photoStor... | Make sure we order by sequence | Make sure we order by sequence
| C# | mit | Azure-Samples/MyDriving,Azure-Samples/MyDriving,Azure-Samples/MyDriving |
a72aa1fdecb7ad4ffcbed2346ae6f7aa6c9df59d | src/VisualStudio/PackageSource/AggregatePackageSource.cs | src/VisualStudio/PackageSource/AggregatePackageSource.cs | using System.Collections.Generic;
using System.Linq;
namespace NuGet.VisualStudio {
public static class AggregatePackageSource {
public static readonly PackageSource Instance = new PackageSource("(Aggregate source)", Resources.VsResources.AggregateSourceName);
public static bool IsAggregat... | using System.Collections.Generic;
using System.Linq;
namespace NuGet.VisualStudio {
public static class AggregatePackageSource {
public static readonly PackageSource Instance = new PackageSource("(Aggregate source)", Resources.VsResources.AggregateSourceName);
public static bool IsAggregat... | Replace Enumerable.Repeat call with an one-element array. | Replace Enumerable.Repeat call with an one-element array.
| C# | apache-2.0 | mdavid/nuget,mdavid/nuget |
cf645e2bf87dc941dacb5b82dbe61f96802e1295 | CIV/Program.cs | CIV/Program.cs | using static System.Console;
using System.Linq;
using CIV.Ccs;
using CIV.Hml;
namespace CIV
{
class Program
{
static void Main(string[] args)
{
var text = System.IO.File.ReadAllText(args[0]);
var processes = CcsFacade.ParseAll(text);
var hmlText = "[[ack]][[ack]][[ack... | using static System.Console;
using CIV.Ccs;
using CIV.Interfaces;
namespace CIV
{
class Program
{
static void Main(string[] args)
{
var text = System.IO.File.ReadAllText(args[0]);
var processes = CcsFacade.ParseAll(text);
var trace = CcsFacade.RandomTrace(processes["... | Revert "Remove RandomTrace stuff from main" | Revert "Remove RandomTrace stuff from main"
This reverts commit f4533db6c2eb955d5433cf52e85d32a223a7bba8.
| C# | mit | lou1306/CIV,lou1306/CIV |
5a81898cc05e6b00d0f35e8d49417b448732c209 | EOBot/Interpreter/States/StatementEvaluator.cs | EOBot/Interpreter/States/StatementEvaluator.cs | using EOBot.Interpreter.Extensions;
using System.Collections.Generic;
using System.Linq;
namespace EOBot.Interpreter.States
{
public class StatementEvaluator : IScriptEvaluator
{
private readonly IEnumerable<IScriptEvaluator> _evaluators;
public StatementEvaluator(IEnumerable<IScriptEvaluator... | using EOBot.Interpreter.Extensions;
using System.Collections.Generic;
using System.Linq;
namespace EOBot.Interpreter.States
{
public class StatementEvaluator : IScriptEvaluator
{
private readonly IEnumerable<IScriptEvaluator> _evaluators;
public StatementEvaluator(IEnumerable<IScriptEvaluator... | Allow statements to end with EOF instead of forcing a newline for every evaluated statement | Allow statements to end with EOF instead of forcing a newline for every evaluated statement
| C# | mit | ethanmoffat/EndlessClient |
50f8d5c6d819af00166e61fb7db0024b497eada5 | src/Sharpy.Core/src/IGenerator.cs | src/Sharpy.Core/src/IGenerator.cs | namespace Sharpy.Core {
/// <summary>
/// <para>Represent a generator which can generate any amount of elements by invoking method <see cref="Generate" />.</para>
/// </summary>
/// <typeparam name="T"></typeparam>
public interface IGenerator<out T> {
/// <summary>
/// <par... | namespace Sharpy.Core {
/// <summary>
/// <para>Represent a generator which can generate any amount of elements by invoking method <see cref="Generate" />.</para>
/// </summary>
/// <typeparam name="T"></typeparam>
public interface IGenerator<out T> {
/// <summary>
/// <para... | Remove new keyword from interface | Remove new keyword from interface
Former-commit-id: e271328ab161d18c97babd8a011a6806ce7b1981 | C# | mit | inputfalken/Sharpy |
19c663da110cf62ceda4cf4df8f608c7f1917e41 | osu.Game/Screens/Edit/Screens/EditorScreen.cs | osu.Game/Screens/Edit/Screens/EditorScreen.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Configuration;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
namespace osu.Game.Screens.Ed... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Configuration;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
namespace osu.Game.Screens.Ed... | Remove scale effect on editor screen switches | Remove scale effect on editor screen switches
| C# | mit | peppy/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,2yangk23/osu,EVAST9919/osu,smoogipoo/osu,DrabWeb/osu,NeoAdonis/osu,ZLima12/osu,smoogipoo/osu,naoey/osu,smoogipooo/osu,johnneijzen/osu,Frontear/osuKyzer,peppy/osu,Drezi126/osu,Nabile-Rahmani/osu,peppy/osu,2yangk23/osu,peppy/osu-new,ZLima12/osu,naoey/osu,johnnei... |
bce576864407ea3507f87fee8b3e79f0d830060c | test/ConfigHelper.cs | test/ConfigHelper.cs | using System.Configuration;
namespace SchemaZen.test {
public class ConfigHelper {
public static string TestDB {
get { return ConfigurationManager.AppSettings["testdb"]; }
}
public static string TestSchemaDir {
get { return ConfigurationManager.AppSettings["test_schema_dir"]; }
}
public static stri... | using System;
using System.Configuration;
namespace SchemaZen.test {
public class ConfigHelper {
public static string TestDB {
get { return GetSetting("testdb"); }
}
public static string TestSchemaDir {
get { return GetSetting("test_schema_dir"); }
}
public static string SqlDbDiffPath {
get { re... | Read environment variables for test settings. | Read environment variables for test settings.
Allows me to specify a different testdb on the build server.
| C# | mit | keith-hall/schemazen,Zocdoc/schemazen,sethreno/schemazen,sethreno/schemazen |
c4eecf2480fa0cb1924df562024c4a3d580333de | MiX.Integrate.Shared/Entities/Messages/SendJobMessageCarrier.cs | MiX.Integrate.Shared/Entities/Messages/SendJobMessageCarrier.cs | using System;
using System.Collections.Generic;
using System.Text;
using MiX.Integrate.Shared.Entities.Communications;
namespace MiX.Integrate.Shared.Entities.Messages
{
public class SendJobMessageCarrier
{
public SendJobMessageCarrier() { }
public short VehicleId { get; set; }
public string Description { ge... | using System;
using System.Collections.Generic;
using System.Text;
using MiX.Integrate.Shared.Entities.Communications;
namespace MiX.Integrate.Shared.Entities.Messages
{
public class SendJobMessageCarrier
{
public SendJobMessageCarrier() { }
public short VehicleId { get; set; }
public string Description { ge... | Add extra property to use new long Id's | FLEET-9992: Add extra property to use new long Id's
| C# | mit | MiXTelematics/MiX.Integrate.Api.Client |
f5c12cf18b616a76961062361dd1932f2c17d853 | SpotiPeek/SpotiPeek.App/TrackModel.cs | SpotiPeek/SpotiPeek.App/TrackModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SpotiPeek.App
{
class TrackModel
{
public string SongTitle;
public string ArtistName;
public string AlbumTitle;
public string AlbumYear;
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SpotiPeek.App
{
class TrackModel
{
public string SongTitle;
public string ArtistName;
public string AlbumTitle;
}
}
| Remove unused property from Track model | Remove unused property from Track model
| C# | mit | gusper/Peekify,gusper/SpotiPeek |
c2d4672b8deadc8ddfc471b31cada648cbf837ed | osu.Game/GameModes/Play/PlayMode.cs | osu.Game/GameModes/Play/PlayMode.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.ComponentModel;
namespace osu.Game.GameModes.Play
{
public enum PlayMode
{
[Description(@"osu!")]
Osu = 0,
[Des... | //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.ComponentModel;
namespace osu.Game.GameModes.Play
{
public enum PlayMode
{
[Description(@"osu!")]
Osu = 0,
[Des... | Add osu! prefix to mode descriptions. | Add osu! prefix to mode descriptions.
| C# | mit | EVAST9919/osu,peppy/osu-new,smoogipoo/osu,naoey/osu,NeoAdonis/osu,EVAST9919/osu,DrabWeb/osu,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,ppy/osu,peppy/osu,smoogipoo/osu,DrabWeb/osu,theguii/osu,naoey/osu,UselessToucan/osu,NeoAdonis/osu,tacchinotacchi/osu,Drezi126/osu,smoogipoo/osu,2yangk23/osu,johnneijzen/os... |
50ce4a5225e1f62c622001a02c9f66e2e86012a3 | src/Runners/Giles.Runner.NUnit/NUnitRunner.cs | src/Runners/Giles.Runner.NUnit/NUnitRunner.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Giles.Core.Runners;
using Giles.Core.Utility;
using NUnit.Core;
using NUnit.Core.Filters;
namespace Giles.Runner.NUnit
{
public class NUnitRunner : IFrameworkRunner
{
IEnumerable<string> filte... | using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Giles.Core.Runners;
using NUnit.Core;
using NUnit.Core.Filters;
namespace Giles.Runner.NUnit
{
public class NUnitRunner : IFrameworkRunner
{
IEnumerable<string> filters;
public SessionResults RunAs... | Fix to not use a test filter in NUnit when no filters has been declared in Giles. This was causing NUnit to not run the tests | Fix to not use a test filter in NUnit when no filters has been declared in Giles. This was causing NUnit to not run the tests
| C# | mit | michaelsync/Giles,codereflection/Giles,codereflection/Giles,codereflection/Giles,michaelsync/Giles,michaelsync/Giles,michaelsync/Giles |
cfc4b118c8fb90a938c33990508f8507d97dadc8 | dot10/dotNET/StringsStream.cs | dot10/dotNET/StringsStream.cs | using System.Text;
using dot10.IO;
namespace dot10.dotNET {
/// <summary>
/// Represents the #Strings stream
/// </summary>
public class StringsStream : DotNetStream {
/// <inheritdoc/>
public StringsStream(IImageStream imageStream, StreamHeader streamHeader)
: base(imageStream, streamHeader) {
}
/// ... | using System.Text;
using dot10.IO;
namespace dot10.dotNET {
/// <summary>
/// Represents the #Strings stream
/// </summary>
public class StringsStream : DotNetStream {
/// <inheritdoc/>
public StringsStream(IImageStream imageStream, StreamHeader streamHeader)
: base(imageStream, streamHeader) {
}
/// ... | Return null if invalid offset and seek to the offset | Return null if invalid offset and seek to the offset
| C# | mit | 0xd4d/dnlib,kiootic/dnlib,modulexcite/dnlib,ZixiangBoy/dnlib,picrap/dnlib,Arthur2e5/dnlib,yck1509/dnlib,ilkerhalil/dnlib,jorik041/dnlib |
c1c0b9a9db1c9a35114fd0535fc49ed3b5671e9d | osu.Game/Online/Multiplayer/RoomCategory.cs | osu.Game/Online/Multiplayer/RoomCategory.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Online.Multiplayer
{
public enum RoomCategory
{
Normal,
Spotlight
}
}
| // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Online.Multiplayer
{
public enum RoomCategory
{
Normal,
Spotlight,
Realtime,
}
}
| Add realtime to room categories | Add realtime to room categories
| C# | mit | peppy/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,peppy/osu-new,smoogipooo/osu,peppy/osu,peppy/osu,UselessToucan/osu,ppy/osu,NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu |
fb07b49b71366d8fba0bd656a7c9471bf587217e | Components/TemplateHelpers/Images/Ratio.cs | Components/TemplateHelpers/Images/Ratio.cs | using System;
namespace Satrabel.OpenContent.Components.TemplateHelpers
{
public class Ratio
{
private readonly float _ratio;
public int Width { get; private set; }
public int Height { get; private set; }
public float AsFloat
{
get { return (float)Width / (... | using System;
namespace Satrabel.OpenContent.Components.TemplateHelpers
{
public class Ratio
{
private readonly float _ratio;
public int Width { get; private set; }
public int Height { get; private set; }
public float AsFloat
{
get { return (float)Width / (... | Fix issue where ratio was always returning "1" | Fix issue where ratio was always returning "1"
| C# | mit | janjonas/OpenContent,janjonas/OpenContent,janjonas/OpenContent,janjonas/OpenContent,janjonas/OpenContent |
9a7ef5cea13402ca632c4cc0b2621906273ca4fd | Stratis.Bitcoin/Features/Wallet/FeeType.cs | Stratis.Bitcoin/Features/Wallet/FeeType.cs | using System;
namespace Stratis.Bitcoin.Features.Wallet
{
/// <summary>
/// An indicator on how fast a transaction will be accepted in a block
/// </summary>
public enum FeeType
{
/// <summary>
/// Slow.
/// </summary>
Low = 0,
/// <summary>
/// Ava... | using System;
namespace Stratis.Bitcoin.Features.Wallet
{
/// <summary>
/// An indicator of how fast a transaction will be accepted in a block.
/// </summary>
public enum FeeType
{
/// <summary>
/// Slow.
/// </summary>
Low = 0,
/// <summary>
/// Av... | Make FeeParser throw if the fee parsed is not low, medium or high (previously defaulted to medium0 | Make FeeParser throw if the fee parsed is not low, medium or high (previously defaulted to medium0
| C# | mit | mikedennis/StratisBitcoinFullNode,mikedennis/StratisBitcoinFullNode,bokobza/StratisBitcoinFullNode,mikedennis/StratisBitcoinFullNode,Neurosploit/StratisBitcoinFullNode,Aprogiena/StratisBitcoinFullNode,Aprogiena/StratisBitcoinFullNode,Aprogiena/StratisBitcoinFullNode,quantumagi/StratisBitcoinFullNode,bokobza/StratisBitc... |
62e72aa2008e4cbe2c62817e1d5e835150e6e74d | Infusion.EngineScripts/Scripts/ScriptEngine.cs | Infusion.EngineScripts/Scripts/ScriptEngine.cs | using System;
using System.Threading;
using System.Threading.Tasks;
namespace Infusion.EngineScripts
{
public sealed class ScriptEngine
{
private readonly IScriptEngine[] engines;
private string scriptRootPath;
public ScriptEngine(params IScriptEngine[] engines)
{
... | using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace Infusion.EngineScripts
{
public sealed class ScriptEngine
{
private readonly IScriptEngine[] engines;
private string scriptRootPath;
public ScriptEngine(params IScriptEngine[] engines)
... | Set current directory for initial script. | Set current directory for initial script.
| C# | mit | uoinfusion/Infusion |
56578d797aa35b96ee1fe72400b52a9374e7871c | LazyLibrary/Storage/Memory/MemoryRepository.cs | LazyLibrary/Storage/Memory/MemoryRepository.cs | using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace LazyLibrary.Storage.Memory
{
internal class MemoryRepository<T> : IRepository<T> where T : IStorable
{
private List<T> repository = new List<T>();
public T GetById(int id)
{
retur... | using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace LazyLibrary.Storage.Memory
{
internal class MemoryRepository<T> : IRepository<T> where T : IStorable
{
private List<T> repository = new List<T>();
public T GetById(int id)
{
retur... | Check for objects existing using their equals operation rather than Ids | Check for objects existing using their equals operation rather than Ids
| C# | mit | TheEadie/LazyStorage,TheEadie/LazyStorage,TheEadie/LazyLibrary |
7d107e726bce4abe72923291350f054a2e04f21a | TestServices/ElectricBlobs/Shark/WorkerRole.cs | TestServices/ElectricBlobs/Shark/WorkerRole.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Threading;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.Diagnostics;
using Microsoft.WindowsAzure.ServiceRuntime;
using Microsoft.WindowsAzure.Storage;
using Microsoft.Experimental.A... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Threading;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.Diagnostics;
using Microsoft.WindowsAzure.ServiceRuntime;
using Microsoft.WindowsAzure.Storage;
using Microsoft.Experimental.A... | Put the scratch and warehouse directories up on WASB in the Shark test service. This gets CTAS to work. | Put the scratch and warehouse directories up on WASB in the Shark test service. This gets CTAS to work.
| C# | mit | mooso/BlueCoffee,mooso/BlueCoffee,mooso/BlueCoffee,mooso/BlueCoffee |
6a10ff93af584050988f69b5e069839474639e3e | oberon0/Expressions/Arithmetic/SubExpression.cs | oberon0/Expressions/Arithmetic/SubExpression.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Oberon0.Compiler.Definitions;
using Oberon0.Compiler.Solver;
namespace Oberon0.Compiler.Expressions.Arithmetic
{
[Export(typeof(ICalculatable))]
cl... | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Oberon0.Compiler.Definitions;
using Oberon0.Compiler.Solver;
namespace Oberon0.Compiler.Expressions.Arithmetic
{
[Export(typeof(ICalculatable))]
cl... | Fix sonarqube markup that sub has lhs and rhs identical | Fix sonarqube markup that sub has lhs and rhs identical
| C# | mit | steven-r/Oberon0Compiler |
e23b52d59ff6323e7aae7a1948c05bb57f425c2a | 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
{
[MemoryDiagnoser]
public class BenchmarkBinda... | Add basic bindable instantiation benchmark | Add basic bindable instantiation benchmark
| C# | mit | ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework |
c7cf8a55b8964d2671d8e84a9474142bd247625f | src/dotnet/commands/dotnet-nuget/Program.cs | src/dotnet/commands/dotnet-nuget/Program.cs | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Linq;
using Microsoft.DotNet.Cli;
using Microsoft.DotNet.Cli.CommandLine;
using Microsoft.DotNet.Cli.Utils;
using Micr... | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Linq;
using Microsoft.DotNet.Cli;
using Microsoft.DotNet.Cli.CommandLine;
using Microsoft.DotNet.Cli.Utils;
using Micr... | Add DOTNET_HOST_PATH for dotnet nuget commands | Add DOTNET_HOST_PATH for dotnet nuget commands
| C# | mit | dasMulli/cli,livarcocc/cli-1,johnbeisner/cli,dasMulli/cli,johnbeisner/cli,dasMulli/cli,johnbeisner/cli,livarcocc/cli-1,livarcocc/cli-1 |
38cdb6690dc8bfa70bda3ba19b092ad58d449cb3 | src/UnityExtension/Assets/Editor/GitHub.Unity/UI/PublishWindow.cs | src/UnityExtension/Assets/Editor/GitHub.Unity/UI/PublishWindow.cs | using UnityEditor;
using UnityEngine;
namespace GitHub.Unity
{
public class PublishWindow : EditorWindow
{
private const string PublishTitle = "Publish this repository to GitHub";
private string repoName = "";
private string repoDescription = "";
private bool togglePrivate = fa... | using UnityEditor;
using UnityEngine;
namespace GitHub.Unity
{
public class PublishWindow : EditorWindow
{
private const string PublishTitle = "Publish this repository to GitHub";
private string repoName = "";
private string repoDescription = "";
private int selectedOrg = 0;
... | Add a dropdown for selecting organizations | Add a dropdown for selecting organizations
| C# | mit | github-for-unity/Unity,mpOzelot/Unity,github-for-unity/Unity,github-for-unity/Unity,mpOzelot/Unity |
7fbeb9ecc7a78fed1ef88d45b42eed54d13a19d7 | osu.Game.Tournament.Tests/Screens/TestSceneGameplayScreen.cs | osu.Game.Tournament.Tests/Screens/TestSceneGameplayScreen.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.Linq;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Testing;
using osu.Game.Tournament.Components;
using osu.Game.Tournament.Scr... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Testing;
using osu.Game.Tournament.Components;... | Add failing test coverage for tournament startup states | Add failing test coverage for tournament startup states
| C# | mit | smoogipoo/osu,NeoAdonis/osu,peppy/osu,smoogipooo/osu,ppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu,smoogipoo/osu,peppy/osu-new,ppy/osu,NeoAdonis/osu,smoogipoo/osu |
541512b26445bcf02ecc04b57b1886ddf4bffb6d | source/Calamari/Integration/Substitutions/FileSubstituter.cs | source/Calamari/Integration/Substitutions/FileSubstituter.cs | using System;
using System.IO;
using System.Text;
using Calamari.Deployment;
using Calamari.Integration.FileSystem;
using Octostache;
namespace Calamari.Integration.Substitutions
{
public class FileSubstituter : IFileSubstituter
{
readonly ICalamariFileSystem fileSystem;
public FileSubstitute... | using System;
using System.IO;
using System.Text;
using Calamari.Deployment;
using Calamari.Integration.FileSystem;
using Octostache;
namespace Calamari.Integration.Substitutions
{
public class FileSubstituter : IFileSubstituter
{
readonly ICalamariFileSystem fileSystem;
public FileSubstitute... | Use existing file encoding if provided override is invalid | Use existing file encoding if provided override is invalid
| C# | apache-2.0 | allansson/Calamari,allansson/Calamari |
0e7bb8b42f0d903a67f1121d09aeb14352c8a159 | src/NQuery/Optimization/Condition.cs | src/NQuery/Optimization/Condition.cs | using System;
using System.Collections.Generic;
using System.Linq;
using NQuery.Binding;
namespace NQuery.Optimization
{
internal static class Condition
{
public static BoundExpression And(BoundExpression left, BoundExpression right)
{
if (left == null)
return righ... | using System;
using System.Collections.Generic;
using System.Linq;
using NQuery.Binding;
namespace NQuery.Optimization
{
internal static class Condition
{
public static BoundExpression And(BoundExpression left, BoundExpression right)
{
if (left == null)
return righ... | Fix bug when splitting conjunctions | Fix bug when splitting conjunctions
| C# | mit | terrajobst/nquery-vnext |
b3f1c92f68f18add95d8ea034b82f7981e90d6aa | src/UserInteraction/Core/ProgressHelper.cs | src/UserInteraction/Core/ProgressHelper.cs | using Cirrious.CrossCore.Core;
using System;
using System.Threading.Tasks;
namespace codestuffers.MvvmCrossPlugins.UserInteraction
{
/// <summary>
/// Helper class that executes a task with a progress bar
/// </summary>
public class ProgressHelper
{
private readonly IMvxMainThreadDispatche... | using Cirrious.CrossCore.Core;
using System;
using System.Threading.Tasks;
namespace codestuffers.MvvmCrossPlugins.UserInteraction
{
/// <summary>
/// Helper class that executes a task with a progress bar
/// </summary>
public class ProgressHelper
{
private readonly IMvxMainThreadDispatche... | Modify progress helper so that activity indicator stops after last call ends | Modify progress helper so that activity indicator stops after last call ends
| C# | mit | codestuffers/MvvmCrossPlugins |
ccd9726170370faa0a0dd531fdcb6949ef59f4ba | SteamAccountSwitcher/Options.xaml.cs | SteamAccountSwitcher/Options.xaml.cs | #region
using System.Windows;
using SteamAccountSwitcher.Properties;
#endregion
namespace SteamAccountSwitcher
{
/// <summary>
/// Interaction logic for Options.xaml
/// </summary>
public partial class Options : Window
{
public Options()
{
InitializeComponent();
... | #region
using System.Windows;
using SteamAccountSwitcher.Properties;
#endregion
namespace SteamAccountSwitcher
{
/// <summary>
/// Interaction logic for Options.xaml
/// </summary>
public partial class Options : Window
{
public Options()
{
InitializeComponent();
... | Fix settings not saving when opening "Options" | Fix settings not saving when opening "Options"
| C# | mit | danielchalmers/SteamAccountSwitcher |
6d33a867a82ca8811a562ee4c59804bdb8ddee03 | Tests/GeneratorAPI/GeneratorTests.cs | Tests/GeneratorAPI/GeneratorTests.cs | using GeneratorAPI;
using NUnit.Framework;
using NUnit.Framework.Internal;
namespace Tests.GeneratorAPI {
[TestFixture]
internal class GeneratorTests {
[SetUp]
public void Initiate() {
_generator = new Generator<Randomizer>(new Randomizer(Seed));
}
[TearDown]
... | using System;
using GeneratorAPI;
using NUnit.Framework;
using NUnit.Framework.Internal;
namespace Tests.GeneratorAPI {
[TestFixture]
internal class GeneratorTests {
[SetUp]
public void Initiate() {
_generator = new Generator<Randomizer>(new Randomizer(Seed));
}
[T... | Add tests for null checking | Add tests for null checking
Former-commit-id: 093d57674ed09329af065f5df3615d2d2c511f8f | C# | mit | inputfalken/Sharpy |
619977a0e745a8d237bcccbe87b67db1d4875859 | src/Glimpse.Server/Configuration/DefaultMetadataProvider.cs | src/Glimpse.Server/Configuration/DefaultMetadataProvider.cs | using System.Collections.Generic;
using System.Linq;
using Glimpse.Server.Internal;
using Glimpse.Internal.Extensions;
using Microsoft.AspNet.Http;
using Microsoft.Extensions.OptionsModel;
namespace Glimpse.Server.Configuration
{
public class DefaultMetadataProvider : IMetadataProvider
{
private reado... | using System.Collections.Generic;
using System.Linq;
using Glimpse.Server.Internal;
using Glimpse.Internal.Extensions;
using Microsoft.AspNet.Http;
using Microsoft.Extensions.OptionsModel;
namespace Glimpse.Server.Configuration
{
public class DefaultMetadataProvider : IMetadataProvider
{
private reado... | Make sure metadata is set before being returned | Make sure metadata is set before being returned
| C# | mit | Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,zanetdev/Glimp... |
90fdb46611e69f97f0e72690ab5749d353da3828 | SolrNet.Cloud.Tests/UnityTests.cs | SolrNet.Cloud.Tests/UnityTests.cs | using Xunit;
using Unity.SolrNetCloudIntegration;
using Unity;
namespace SolrNet.Cloud.Tests
{
public class UnityTests
{
private IUnityContainer Setup() {
return new SolrNetContainerConfiguration().ConfigureContainer(
new FakeProvider(),
new UnityContainer()... | using Xunit;
using Unity.SolrNetCloudIntegration;
using Unity;
namespace SolrNet.Cloud.Tests
{
public class UnityTests
{
private IUnityContainer Setup() {
return new SolrNetContainerConfiguration().ConfigureContainer(
new FakeProvider(),
new UnityContainer()... | Add test trying to recreate the issue | Add test trying to recreate the issue
| C# | apache-2.0 | SolrNet/SolrNet,mausch/SolrNet,SolrNet/SolrNet,mausch/SolrNet,mausch/SolrNet |
1ceff6ebed4a72179da347b3769616fa4f04984e | VersionOne.ServerConnector/EntityFactory.cs | VersionOne.ServerConnector/EntityFactory.cs | using System;
using System.Collections.Generic;
using System.Linq;
using VersionOne.SDK.APIClient;
namespace VersionOne.ServerConnector {
// TODO extract interface and inject into VersionOneProcessor
internal class EntityFactory {
private readonly IMetaModel metaModel;
private readonly IServic... | using System;
using System.Collections.Generic;
using System.Linq;
using VersionOne.SDK.APIClient;
namespace VersionOne.ServerConnector {
// TODO extract interface and inject into VersionOneProcessor
internal class EntityFactory {
private readonly IServices services;
private readonly IEnumerab... | Use the new 15.0 SDK to access meta via IServices | S-54454: Use the new 15.0 SDK to access meta via IServices
| C# | bsd-3-clause | versionone/VersionOne.Integration.Bugzilla,versionone/VersionOne.Integration.Bugzilla,versionone/VersionOne.Integration.Bugzilla |
2ad41fd040ef86903ea05a80588d1bf423f38216 | AssemblyInfoCommon.cs | AssemblyInfoCommon.cs | // <copyright file="AssemblyInfoCommon.cs" company="natsnudasoft">
// Copyright (c) Adrian John Dunstan. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// htt... | // <copyright file="AssemblyInfoCommon.cs" company="natsnudasoft">
// Copyright (c) Adrian John Dunstan. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// htt... | Resolve line too long message on build server | Resolve line too long message on build server
| C# | apache-2.0 | natsnudasoft/AdiePlayground |
a967ed6773c356ba080060e95f245866004b3ff0 | Battlezeppelins/Models/PlayerTable/ZeppelinType.cs | Battlezeppelins/Models/PlayerTable/ZeppelinType.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Newtonsoft.Json;
namespace Battlezeppelins.Models
{
public class ZeppelinType
{
public static readonly ZeppelinType MOTHER = new ZeppelinType("Mother", 5);
public static readonly ZeppelinType ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Newtonsoft.Json;
namespace Battlezeppelins.Models
{
public class ZeppelinType
{
public static readonly ZeppelinType MOTHER = new ZeppelinType("Mother", 5);
public static readonly ZeppelinType ... | Fix 'no multiple zeppelins of the same type' constraint server side. | Fix 'no multiple zeppelins of the same type' constraint server side.
| C# | apache-2.0 | Mikuz/Battlezeppelins,Mikuz/Battlezeppelins |
a7c2b8bac8b3579a09bd3609974ca87e86a82da8 | CefSharp.BrowserSubprocess/Program.cs | CefSharp.BrowserSubprocess/Program.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;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Windows.Forms;
using CefSharp.Internals;... | // 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;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using CefSharp.Internals;
namespace CefSharp.Brows... | Revert to previous debugging method as change wasn't working correctly. | Revert to previous debugging method as change wasn't working correctly.
| C# | bsd-3-clause | joshvera/CefSharp,yoder/CefSharp,rlmcneary2/CefSharp,dga711/CefSharp,rover886/CefSharp,joshvera/CefSharp,ruisebastiao/CefSharp,Livit/CefSharp,gregmartinhtc/CefSharp,haozhouxu/CefSharp,windygu/CefSharp,rover886/CefSharp,windygu/CefSharp,illfang/CefSharp,illfang/CefSharp,battewr/CefSharp,VioletLife/CefSharp,wangzheng8885... |
6552e002990d88dcc8ace02a4027fc3e0e48d857 | Code/Luval.Common/ConsoleArguments.cs | Code/Luval.Common/ConsoleArguments.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Luval.Common
{
public class ConsoleArguments
{
private List<string> _args;
public ConsoleArguments(IEnumerable<string> args)
{
_args = new List<str... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Luval.Common
{
public class ConsoleArguments
{
private List<string> _args;
public ConsoleArguments(IEnumerable<string> args)
{
_args = new List<str... | Fix a bug with the console arguments class | Fix a bug with the console arguments class
| C# | apache-2.0 | marinoscar/Luval |
2ff0df6800e53b54bf163d8546413bcc5d9975fa | MultiMiner.Utility/ApplicationPaths.cs | MultiMiner.Utility/ApplicationPaths.cs | using System;
using System.IO;
namespace MultiMiner.Utility
{
public static class ApplicationPaths
{
public static string AppDataPath()
{
string rootPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
return Path.Combine(rootPath, "MultiMiner");... | using System;
using System.IO;
namespace MultiMiner.Utility
{
public static class ApplicationPaths
{
public static string AppDataPath()
{
//if running in "portable" mode
if (IsRunningInPortableMode())
{
//store files in the working directory ... | Support for running the app in a "portable" mode | Support for running the app in a "portable" mode
| C# | mit | IWBWbiz/MultiMiner,IWBWbiz/MultiMiner,nwoolls/MultiMiner,nwoolls/MultiMiner |
44c1c93e816f683fe63af8e96f0aad6b827aebb5 | Plugins/Wox.Plugin.Program/Settings.cs | Plugins/Wox.Plugin.Program/Settings.cs | using System.Collections.Generic;
using System.IO;
using Wox.Plugin.Program.Programs;
namespace Wox.Plugin.Program
{
public class Settings
{
public List<ProgramSource> ProgramSources { get; set; } = new List<ProgramSource>();
public List<DisabledProgramSource> DisabledProgramSources { get; set... | using System.Collections.Generic;
using System.IO;
using Wox.Plugin.Program.Programs;
namespace Wox.Plugin.Program
{
public class Settings
{
public List<ProgramSource> ProgramSources { get; set; } = new List<ProgramSource>();
public List<DisabledProgramSource> DisabledProgramSources { get; set... | Change DisabledProgramSource class to inherit ProgramSource | Change DisabledProgramSource class to inherit ProgramSource
| C# | mit | qianlifeng/Wox,qianlifeng/Wox,Wox-launcher/Wox,qianlifeng/Wox,Wox-launcher/Wox |
580b0a9b9fc15b026b02dfbc029c91535fbc838e | TAUtil/Gaf/Structures/GafFrameData.cs | TAUtil/Gaf/Structures/GafFrameData.cs | namespace TAUtil.Gaf.Structures
{
using System.IO;
internal struct GafFrameData
{
public ushort Width;
public ushort Height;
public ushort XPos;
public ushort YPos;
public byte TransparencyIndex;
public bool Compressed;
public ushort Fram... | namespace TAUtil.Gaf.Structures
{
using System.IO;
internal struct GafFrameData
{
public ushort Width;
public ushort Height;
public short XPos;
public short YPos;
public byte TransparencyIndex;
public bool Compressed;
public ushort FrameP... | Allow negative GAF frame offsets | Allow negative GAF frame offsets
| C# | mit | MHeasell/TAUtil,MHeasell/TAUtil |
b635c564061eb1deee4eb0bb20b67ad9adc9fbd8 | TAUtil.Gdi/Bitmap/BitmapSerializer.cs | TAUtil.Gdi/Bitmap/BitmapSerializer.cs | namespace TAUtil.Gdi.Bitmap
{
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using TAUtil.Gdi.Palette;
/// <summary>
/// Serializes a 32-bit Bitmap instance into raw 8-bit indexed color data.
/// The mapping from color to index is done according to the given... | namespace TAUtil.Gdi.Bitmap
{
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using TAUtil.Gdi.Palette;
/// <summary>
/// Serializes a 32-bit Bitmap instance into raw 8-bit indexed color data.
/// The mapping from color to index is done according to the given... | Fix bitmap serialization with indexed format bitmaps | Fix bitmap serialization with indexed format bitmaps
| C# | mit | MHeasell/TAUtil,MHeasell/TAUtil |
fab09575ec30d2cec7aef5487f59b6b8fa10732a | osu.Game.Tests/Visual/Gameplay/TestSceneBeatmapOffsetControl.cs | osu.Game.Tests/Visual/Gameplay/TestSceneBeatmapOffsetControl.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Game.Screens.Play.PlayerSettings;
using osu.Game.Tests.Visual.Ranking;
namespace osu.Game.Tests.Visual.Gam... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Testing;
using osu.Game.Overlays.Settings;
using osu.Game.Scoring;
using osu.G... | Add full testing flow for `BeatmapOffsetControl` | Add full testing flow for `BeatmapOffsetControl`
| C# | mit | NeoAdonis/osu,NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu,peppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu |
29ba866ddc7dbd11e7eb0103c2744366ffc2701d | DesktopWidgets/Widgets/Search/ViewModel.cs | DesktopWidgets/Widgets/Search/ViewModel.cs | using System.Diagnostics;
using System.Windows.Input;
using DesktopWidgets.Classes;
using DesktopWidgets.Helpers;
using DesktopWidgets.ViewModelBase;
using GalaSoft.MvvmLight.Command;
namespace DesktopWidgets.Widgets.Search
{
public class ViewModel : WidgetViewModelBase
{
private string _searchText;
... | using System.Diagnostics;
using System.Windows;
using System.Windows.Input;
using DesktopWidgets.Classes;
using DesktopWidgets.Helpers;
using DesktopWidgets.ViewModelBase;
using GalaSoft.MvvmLight.Command;
namespace DesktopWidgets.Widgets.Search
{
public class ViewModel : WidgetViewModelBase
{
private... | Add "Search" widget no base url warning | Add "Search" widget no base url warning
| C# | apache-2.0 | danielchalmers/DesktopWidgets |
e52400f7561e4932efe06857c2889e43a54a01e1 | Sendgrid.Webhooks/Converters/WebhookCategoryConverter.cs | Sendgrid.Webhooks/Converters/WebhookCategoryConverter.cs | using System;
using System.ComponentModel;
using Newtonsoft.Json;
using Sendgrid.Webhooks.Converters;
namespace Sendgrid.Webhooks.Service
{
public class WebhookCategoryConverter : GenericListCreationJsonConverter<String>
{
}
} | using System;
using System.ComponentModel;
using Newtonsoft.Json;
using Sendgrid.Webhooks.Converters;
namespace Sendgrid.Webhooks.Service
{
public class WebhookCategoryConverter : GenericListCreationJsonConverter<string>
{
}
}
| Use string instead of String | Use string instead of String | C# | apache-2.0 | mirajavora/sendgrid-webhooks |
1fec6ec2127de08cf234aaa61843bab899a69eb3 | osu.Framework/Host.cs | osu.Framework/Host.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Platform;
using osu.Framework.Platform.Linux;
using osu.Framework.Platform.MacOS;
using osu.Framework.Platform.Windows;
using System;
namespace 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.
using osu.Framework.Platform;
using osu.Framework.Platform.Linux;
using osu.Framework.Platform.MacOS;
using osu.Framework.Platform.Windows;
using System;
namespace osu.... | Add back incorrectly removed parameter | Add back incorrectly removed parameter
| C# | mit | ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework |
c9468cb0bcd3841d602b4a7b7bbf42176d730fcd | CertiPay.Services.PDF/Bootstrapper.cs | CertiPay.Services.PDF/Bootstrapper.cs | using CertiPay.PDF;
using Nancy;
using Nancy.TinyIoc;
using System;
using System.Configuration;
namespace CertiPay.Services.PDF
{
public class Bootstrapper : DefaultNancyBootstrapper
{
private static String ABCPdfLicense
{
get { return ConfigurationManager.AppSettings["ABCPDF-Licen... | using CertiPay.PDF;
using Nancy;
using Nancy.TinyIoc;
using System;
using System.Configuration;
namespace CertiPay.Services.PDF
{
public class Bootstrapper : DefaultNancyBootstrapper
{
private static String ABCPdfLicense
{
get
{
// Check the environment ... | Check the environment variable for the license key | Check the environment variable for the license key
| C# | mit | kylebjones/CertiPay.Services.PDF |
0b970b3de194463f81cb007fc3db74a40fc6dcd8 | exercises/prime-factors/PrimeFactorsTest.cs | exercises/prime-factors/PrimeFactorsTest.cs | // This file was auto-generated based on version 1.0.0 of the canonical data.
using Xunit;
public class PrimeFactorsTest
{
[Fact]
public void No_factors()
{
Assert.Empty(PrimeFactors.Factors(1));
}
[Fact]
public void Prime_number()
{
Assert.Equal(new[] { 2 }, PrimeFactors.... | // This file was auto-generated based on version 1.0.0 of the canonical data.
using Xunit;
public class PrimeFactorsTest
{
[Fact]
public void No_factors()
{
Assert.Empty(PrimeFactors.Factors(1));
}
[Fact(Skip = "Remove to run test")]
public void Prime_number()
{
Assert.Equ... | Add skips to prime factors test suite | Add skips to prime factors test suite
| C# | mit | ErikSchierboom/xcsharp,ErikSchierboom/xcsharp,robkeim/xcsharp,exercism/xcsharp,robkeim/xcsharp,GKotfis/csharp,exercism/xcsharp,GKotfis/csharp |
e8532f0ec8b72f94bf700d7d712d8d9a98f0a89b | src/HolzShots.Core.Tests/Net/Custom/CustomUploaderLoaderTests.cs | src/HolzShots.Core.Tests/Net/Custom/CustomUploaderLoaderTests.cs | using HolzShots.Net.Custom;
using Xunit;
namespace HolzShots.Core.Tests.Net.Custom
{
public class CustomUploaderLoaderTests
{
[Theory]
[FileStringContentData("Files/DirectUpload.net.hsjson")]
[FileStringContentData("Files/FotosHochladen.hsjson")]
public void ValidateTest(string ... | using HolzShots.Net.Custom;
using Xunit;
namespace HolzShots.Core.Tests.Net.Custom
{
public class CustomUploaderLoaderTests
{
[Theory]
[FileStringContentData("Files/DirectUpload.net.hsjson")]
[FileStringContentData("Files/FotosHochladen.hsjson")]
public void ValidateTest(string ... | Add Test for SemVer Parsing | Add Test for SemVer Parsing
| C# | agpl-3.0 | nikeee/HolzShots |
a26b0915b4047d61032dc7c0e9fc893502ac70ae | osu.Game.Rulesets.Osu.Tests/TestSceneShaking.cs | osu.Game.Rulesets.Osu.Tests/TestSceneShaking.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Diagnostics;
using osu.Framework.Utils;
using osu.Game.Rulesets.Osu.Objects;
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Osu.Tests
{
pu... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Diagnostics;
using osu.Framework.Threading;
using osu.Framework.Utils;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Osu... | Fix scheduled tasks not being cleaned up between test steps | Fix scheduled tasks not being cleaned up between test steps
| C# | mit | smoogipoo/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,ppy/osu,peppy/osu-new,smoogipooo/osu,peppy/osu,UselessToucan/osu,peppy/osu,ppy/osu |
b9944cce53442e8dc34bf55c49b22fc55ccbd9a9 | SocketHelper.cs | SocketHelper.cs | using System;
using System.Net.Sockets;
using System.Net;
using System.Threading;
namespace NDeproxy
{
public static class SocketHelper
{
static readonly Logger log = new Logger("SocketHelper");
public static Socket Server(int port, int listenQueue=5)
{
var s = new Socket(A... | using System;
using System.Net.Sockets;
using System.Net;
using System.Threading;
namespace NDeproxy
{
public static class SocketHelper
{
static readonly Logger log = new Logger("SocketHelper");
public static Socket Server(int port, int listenQueue=5)
{
var s = new Socket(A... | Add an optional timeout for connection attempts. | Add an optional timeout for connection attempts.
| C# | mit | izrik/NDeproxy |
b3287e7b0d51023c57ffe07665b7e35de6880cf6 | src/Lunet/Core/MetaManager.cs | src/Lunet/Core/MetaManager.cs | // Copyright (c) Alexandre Mutel. All rights reserved.
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.
using System.Collections.Generic;
namespace Lunet.Core
{
/// <summary>
/// Manages the meta information associated to a site (f... | // Copyright (c) Alexandre Mutel. All rights reserved.
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.
using System.Collections.Generic;
using System.IO;
using System.Reflection;
namespace Lunet.Core
{
/// <summary>
/// Manages th... | Add support for builtins directory from the assembly folder/_meta | Add support for builtins directory from the assembly folder/_meta
| C# | bsd-2-clause | lunet-io/lunet,lunet-io/lunet |
77e74c3a10556ec5900db50e03c08a0e06f85a81 | examples/hello/Startup.cs | examples/hello/Startup.cs | using System;
using System.IO;
using System.Collections.Generic;
using System.Threading.Tasks;
using Owin;
namespace Connect.Owin.Examples.Hello
{
// OWIN application delegate
using AppFunc = Func<IDictionary<string, object>, Task>;
public class Startup
{
public void Configuration(IAppBuilde... | using System;
using System.IO;
using System.Collections.Generic;
using System.Threading.Tasks;
using Owin;
namespace Connect.Owin.Examples.Hello
{
// OWIN application delegate
using AppFunc = Func<IDictionary<string, object>, Task>;
public class Startup
{
public void Configuration(IAppBuilde... | Set `Content-Length` in the `hello` sample | Set `Content-Length` in the `hello` sample
| C# | apache-2.0 | bbaia/connect-owin,sebgod/connect-owin,sebgod/connect-owin,bbaia/connect-owin |
706fef3567d4c25e5154238018c0634d3805f68b | src/Smooth.IoC.Dapper.Repository.UnitOfWork/Data/UnitOfWork.cs | src/Smooth.IoC.Dapper.Repository.UnitOfWork/Data/UnitOfWork.cs | using System;
using System.Data;
using Dapper.FastCrud;
namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Data
{
public class UnitOfWork : DbTransaction, IUnitOfWork
{
public SqlDialect SqlDialect { get; set; }
private readonly Guid _guid = Guid.NewGuid();
public UnitOfWork(ID... | using System;
using System.Data;
using Dapper.FastCrud;
namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Data
{
public class UnitOfWork : DbTransaction, IUnitOfWork
{
public SqlDialect SqlDialect { get; set; }
private readonly Guid _guid = Guid.NewGuid();
public UnitOfWork(ID... | Add boolean to figure out is the uow is made with the session | Add boolean to figure out is the uow is made with the session
| C# | mit | generik0/Smooth.IoC.Dapper.Repository.UnitOfWork,generik0/Smooth.IoC.Dapper.Repository.UnitOfWork |
0a3ef1d0e2f27a63d0f9a1e893cf674ea4e37faa | CefSharp/Internals/IBrowserProcess.cs | CefSharp/Internals/IBrowserProcess.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.ServiceModel;
namespace CefSharp.Internals
{
[ServiceContract(CallbackContract = typeof(IRenderProcess), SessionMode = SessionMo... | // 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.Collections.Generic;
using System.ServiceModel;
namespace CefSharp.Internals
{
[ServiceContract(CallbackContract = typeof(IRende... | Add service ServiceKnownTypes for object[] and Dictionary<string, object> so that basic arrays can be passed two and from functions | Add service ServiceKnownTypes for object[] and Dictionary<string, object> so that basic arrays can be passed two and from functions
| C# | bsd-3-clause | NumbersInternational/CefSharp,ruisebastiao/CefSharp,zhangjingpu/CefSharp,jamespearce2006/CefSharp,jamespearce2006/CefSharp,joshvera/CefSharp,joshvera/CefSharp,twxstar/CefSharp,ITGlobal/CefSharp,illfang/CefSharp,rover886/CefSharp,rlmcneary2/CefSharp,yoder/CefSharp,haozhouxu/CefSharp,battewr/CefSharp,rlmcneary2/CefSharp,... |
910f49764db7c9aa42116090b801cd6d8aac1440 | supermarketkata/engine/rules/PercentageDiscount.cs | supermarketkata/engine/rules/PercentageDiscount.cs | using System;
using engine.core;
namespace engine.rules
{
public class PercentageDiscount : Rule
{
private readonly string m_ApplicableItemName;
private readonly double m_Percentage;
public PercentageDiscount(string applicableItemName, int percentage)
{
m_Applicabl... | using System;
using engine.core;
namespace engine.rules
{
public class PercentageDiscount : Rule
{
private readonly string m_ApplicableItemName;
private readonly double m_Percentage;
public PercentageDiscount(string applicableItemName, int percentage)
{
m_Applicabl... | Tidy up sum a bit by moving where we cast and negate to the line below. | Tidy up sum a bit by moving where we cast and negate to the line below.
| C# | mit | lukedrury/super-market-kata |
f3ac49474c9f354c399e8f9d1b487829770b29aa | src/net45/WampSharp.Default/WAMP2/V2/DefaultWampChannelFactory.cs | src/net45/WampSharp.Default/WAMP2/V2/DefaultWampChannelFactory.cs | using WampSharp.Binding;
using WampSharp.V2.Binding;
using WampSharp.V2.Client;
using WampSharp.WebSocket4Net;
namespace WampSharp.V2
{
public class DefaultWampChannelFactory : WampChannelFactory
{
public IWampChannel CreateChannel<TMessage>(string address,
... | using WampSharp.Binding;
using WampSharp.V2.Binding;
using WampSharp.V2.Client;
using WampSharp.WebSocket4Net;
namespace WampSharp.V2
{
public class DefaultWampChannelFactory : WampChannelFactory
{
private readonly MessagePackObjectBinding mMsgpackBinding = new MessagePackObjectBinding();
priv... | Use the same reference for all method calls | Use the same reference for all method calls
| C# | bsd-2-clause | jmptrader/WampSharp,jmptrader/WampSharp,jmptrader/WampSharp |
78df04213b87fde4f41ae7868a7ff3f6ec734cd9 | ParallelWorkshopTests/Ex10WaitHalfWay/LimitedModeCharacterCounterTests.cs | ParallelWorkshopTests/Ex10WaitHalfWay/LimitedModeCharacterCounterTests.cs | using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Lurchsoft.FileData;
using Lurchsoft.ParallelWorkshop.Ex10WaitHalfWay;
using NUnit.Framework;
namespace Lurchsoft.ParallelWorkshopTests.Ex10WaitHalfWay
{
[TestFixture]
public class LimitedModeCharacterCounterTests
{
... | using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Lurchsoft.FileData;
using Lurchsoft.ParallelWorkshop.Ex10WaitHalfWay;
using NUnit.Framework;
namespace Lurchsoft.ParallelWorkshopTests.Ex10WaitHalfWay
{
[TestFixture]
public class LimitedModeCharacterCounterTests
{
... | Add an Explicit test that tries to use AsParallel(). It will hang after the exercise is completed, if the solution is the same as mine. | Add an Explicit test that tries to use AsParallel(). It will hang after the exercise is completed, if the solution is the same as mine.
| C# | apache-2.0 | peterchase/parallel-workshop |
75acaeb22853b5eb82077e11e7f21ec569e1f5cd | Creative/StatoBot/StatoBot.Analytics/AnalyzerBot.cs | Creative/StatoBot/StatoBot.Analytics/AnalyzerBot.cs | using System;
using System.IO;
using System.Timers;
using StatoBot.Core;
namespace StatoBot.Analytics
{
public class AnalyzerBot : TwitchBot
{
public ChatAnalyzer Analyzer;
public AnalyzerBot(Credentials credentials, string channel) : base(credentials, channel)
{
Analyzer ... | using System;
using System.IO;
using System.Timers;
using System.Threading.Tasks;
using StatoBot.Core;
namespace StatoBot.Analytics
{
public class AnalyzerBot : TwitchBot
{
public ChatAnalyzer Analyzer;
public AnalyzerBot(Credentials credentials, string channel) : base(credentials, channel)
... | Use Task.Run instead of .Start() | Use Task.Run instead of .Start()
| C# | mit | FetzenRndy/Creative,FetzenRndy/Creative,FetzenRndy/Creative,FetzenRndy/Creative,FetzenRndy/Creative |
7d76fcf2b64766c14dce7c54c6af03ab0cdb4b37 | osu.Game.Rulesets.Catch/Edit/Blueprints/CatchPlacementBlueprint.cs | osu.Game.Rulesets.Catch/Edit/Blueprints/CatchPlacementBlueprint.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Game.Rulesets.Catch.Objects;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.UI;
using osu.Game.Rulesets.UI.Scrolling;
na... | // 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.Game.Rulesets.Catch.Objects;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.UI;
using osu.Game.Rulesets.UI.Scrolling;
usi... | Fix hit object placement not receiving input when outside playfield | Fix hit object placement not receiving input when outside playfield
The input area is vertical infinite, but horizontally restricted to the playfield due to `CatchPlayfield`'s `ReceivePositionalInputAt` override.
| C# | mit | peppy/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,ppy/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu-new |
8f375dc9eed097d9921deb60d03d829cba7a16ab | WTM.Api/Controllers/UserController.cs | WTM.Api/Controllers/UserController.cs | using System.Web.Http;
using WTM.Core.Services;
using WTM.Crawler;
using WTM.Crawler.Services;
using WTM.Domain;
namespace WTM.Api.Controllers
{
public class UserController : ApiController
{
private readonly IUserService userService;
public UserController()
{
var webClient... | using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
using WTM.Core.Services;
using WTM.Crawler;
using WTM.Crawler.Services;
using WTM.Domain;
namespace WTM.Api.Controllers
{
public class UserController : ApiController
{
private readonly IUserService userService;
public... | Add methods intto User Api | Add methods intto User Api
| C# | mit | skacofonix/WhatTheMovie,skacofonix/WhatTheMovie,skacofonix/WhatTheMovie |
0446d2d14e915956ae9e0d27ea2d229f53ed625d | src/Parsley/ReadOnlySpanExtensions.cs | src/Parsley/ReadOnlySpanExtensions.cs | namespace Parsley;
public static class ReadOnlySpanExtensions
{
public static ReadOnlySpan<char> Peek(this ref ReadOnlySpan<char> input, int length)
=> length >= input.Length
? input.Slice(0)
: input.Slice(0, length);
public static void Advance(this ref ReadOnlySpan<char> input... | namespace Parsley;
public static class ReadOnlySpanExtensions
{
public static ReadOnlySpan<char> Peek(this ref ReadOnlySpan<char> input, int length)
=> length >= input.Length
? input.Slice(0)
: input.Slice(0, length);
public static void Advance(this ref ReadOnlySpan<char> input... | Reduce the number of slice operations performed during an Advance, when those slices were used only for their length. | Reduce the number of slice operations performed during an Advance, when those slices were used only for their length.
| C# | mit | plioi/parsley |
2ef5aa84350f2ae3b72eddf1cecd2c53921d5372 | src/Glimpse.Agent.Web/Framework/DefaultRequestIgnorerManager.cs | src/Glimpse.Agent.Web/Framework/DefaultRequestIgnorerManager.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.Http;
namespace Glimpse.Agent.Web
{
public class DefaultRequestIgnorerManager : IRequestIgnorerManager
{
public DefaultRequestIgnorerManager(IExtensionProvider<IRequestIgnorer> requestIgnorerProvider, IHttpContex... | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.JsonPatch.Helpers;
namespace Glimpse.Agent.Web
{
public class DefaultRequestIgnorerManager : IRequestIgnorerManager
{
public DefaultRequestIgnorerManager(IExtensionProvider<IRequestIg... | Introduce caching of ShouldIgnore request so that the ignorer pipeline is only executed once per request | Introduce caching of ShouldIgnore request so that the ignorer pipeline is only executed once per request
| C# | mit | peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mik... |
e5631bb8ef7657a84529d72b571b9b41448a8b0c | Akavache/Portable/DependencyResolverMixin.cs | Akavache/Portable/DependencyResolverMixin.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Splat;
namespace Akavache
{
internal interface IWantsToRegisterStuff
{
void Register(IMutableDependencyResolver resolverToUse);
}
public static cl... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Splat;
namespace Akavache
{
internal interface IWantsToRegisterStuff
{
void Register(IMutableDependencyResolver resolverToUse);
}
public static cl... | Make sure we register stuff | Make sure we register stuff
| C# | mit | akavache/Akavache,MarcMagnin/Akavache,bbqchickenrobot/Akavache,gimsum/Akavache,jcomtois/Akavache,PureWeen/Akavache,Loke155/Akavache,christer155/Akavache,martijn00/Akavache,ghuntley/AkavacheSandpit,shana/Akavache,mms-/Akavache,shana/Akavache,MathieuDSTP/MyAkavache,kmjonmastro/Akavache |
cad0aed18b445a24a65c1fb699eb8eec12c3d4bf | Krs.Ats.IBNet/Enums/SecurityType.cs | Krs.Ats.IBNet/Enums/SecurityType.cs | using System;
using System.ComponentModel;
namespace Krs.Ats.IBNet
{
/// <summary>
/// Contract Security Types
/// </summary>
[Serializable()]
public enum SecurityType
{
/// <summary>
/// Stock
/// </summary>
[Description("STK")] Stock,
//... | using System;
using System.ComponentModel;
namespace Krs.Ats.IBNet
{
/// <summary>
/// Contract Security Types
/// </summary>
[Serializable()]
public enum SecurityType
{
/// <summary>
/// Stock
/// </summary>
[Description("STK")] Stock,
//... | Add the warrant security type. | Add the warrant security type.
| C# | mit | krs43/ib-csharp,qusma/ib-csharp,sebfia/ib-csharp |
8afeb4d0943688ac267679c10e6c744e167275b2 | Content.Shared/Utility/TemperatureHelpers.cs | Content.Shared/Utility/TemperatureHelpers.cs | using Content.Shared.Maths;
namespace Content.Shared.Utility
{
public static class TemperatureHelpers
{
public static float CelsiusToKelvin(float celsius)
{
return celsius + PhysicalConstants.ZERO_CELCIUS;
}
public static float KelvinToCelsius(float kelvin)
... | using Content.Shared.Maths;
namespace Content.Shared.Utility
{
public static class TemperatureHelpers
{
public static float CelsiusToKelvin(float celsius)
{
return celsius + PhysicalConstants.ZERO_CELCIUS;
}
public static float CelsiusToFahrenheit(float celsius)
... | Add helpers for converting to and from Fahrenheit | Add helpers for converting to and from Fahrenheit
| C# | mit | space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14-content,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14 |
5496e7204acb157c400b15282cbeefa135aef48c | ElectronicCash.Tests/SecretSplittingTests.cs | ElectronicCash.Tests/SecretSplittingTests.cs | using NUnit.Framework;
using SecretSplitting;
namespace ElectronicCash.Tests
{
[TestFixture]
class SecretSplittingTests
{
private static readonly byte[] Message = Helpers.GetBytes("Supersecretmessage");
private static readonly byte[] RandBytes = Helpers.GetRandomBytes(Helpers.GetString(Mes... | using NUnit.Framework;
using SecretSplitting;
namespace ElectronicCash.Tests
{
[TestFixture]
class SecretSplittingTests
{
private static readonly byte[] Message = Helpers.GetBytes("Supersecretmessage");
private static readonly byte[] RandBytes = Helpers.GetRandomBytes(Helpers.GetString(Mes... | Write some more tests for secret splitting | Write some more tests for secret splitting
| C# | mit | 0culus/ElectronicCash |
44af2f94d7bc5d07dc43e7d0f5e63eae8ca47c7e | Plugins/FileTypes/RtfFile/RtfFileExporter.cs | Plugins/FileTypes/RtfFile/RtfFileExporter.cs | #region
using System;
using System.Drawing;
using System.Windows.Forms;
using Tabster.Data;
using Tabster.Data.Processing;
#endregion
namespace RtfFile
{
internal class RtfFileExporter : ITablatureFileExporter
{
private Font _font;
private RichTextBox _rtb;
#region ... | #region
using System;
using System.Drawing;
using System.Windows.Forms;
using Tabster.Data;
using Tabster.Data.Processing;
#endregion
namespace RtfFile
{
internal class RtfFileExporter : ITablatureFileExporter
{
private RichTextBox _rtb;
#region Implementation of ITablatureF... | Use specified font for RTF exporting | Use specified font for RTF exporting
| C# | apache-2.0 | GetTabster/Tabster |
c084fb800a659f41ac7e86dc49d14122c43bd082 | src/BuildingBlocks.CopyManagement/SmartClientApplicationIdentity.cs | src/BuildingBlocks.CopyManagement/SmartClientApplicationIdentity.cs | using System;
namespace BuildingBlocks.CopyManagement
{
public class SmartClientApplicationIdentity : IApplicationIdentity
{
private static readonly Lazy<IApplicationIdentity> _current;
static SmartClientApplicationIdentity()
{
_current = new Lazy<IApplicationIden... | using System;
namespace BuildingBlocks.CopyManagement
{
public class SmartClientApplicationIdentity : IApplicationIdentity
{
private static readonly Lazy<IApplicationIdentity> _current;
static SmartClientApplicationIdentity()
{
_current = new Lazy<IApplicationIden... | Disable adding redundant arguments for getting machine id | Disable adding redundant arguments for getting machine id
| C# | apache-2.0 | ifilipenko/Building-Blocks,ifilipenko/Building-Blocks,ifilipenko/Building-Blocks |
38fcc693c01f0fde2c164e5cca616dd4fc88db38 | ChamberLib.OpenTK/GlslShaderImporter.cs | ChamberLib.OpenTK/GlslShaderImporter.cs | using System;
using ChamberLib.Content;
using System.IO;
namespace ChamberLib.OpenTK
{
public class GlslShaderImporter
{
public GlslShaderImporter(ShaderStageImporter next=null)
{
this.next = next;
}
readonly ShaderStageImporter next;
public ShaderContent ... | using System;
using ChamberLib.Content;
using System.IO;
namespace ChamberLib.OpenTK
{
public class GlslShaderImporter
{
public GlslShaderImporter(ShaderStageImporter next=null)
{
this.next = next;
}
readonly ShaderStageImporter next;
public ShaderContent ... | Set the right shader type. | Set the right shader type.
| C# | lgpl-2.1 | izrik/ChamberLib,izrik/ChamberLib,izrik/ChamberLib |
899942611fcb085fc09226c84a7bbbd47500450f | osu.Game.Tournament.Tests/Screens/TestSceneScheduleScreen.cs | osu.Game.Tournament.Tests/Screens/TestSceneScheduleScreen.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Tournament.Components;
using osu.Game.Tournament.Screens.Schedule;
namespace osu.Game.Tourna... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Tournament.Components;
using osu.Game.Tournament.Screens... | Add tests for time display | Add tests for time display
| C# | mit | ppy/osu,peppy/osu,peppy/osu-new,smoogipoo/osu,peppy/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,UselessToucan/osu,UselessToucan/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,smoogipooo/osu |
4f79d6d63cf6cdabd50f8ebf4e9b6acc709d08f2 | uSync.Core/uSyncCapabilityChecker.cs | uSync.Core/uSyncCapabilityChecker.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Umbraco.Cms.Core.Configuration;
namespace uSync.Core
{
/// <summary>
/// a centralized way of telling if the current version of umbraco has
/// certain features or not.
/// </... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Umbraco.Cms.Core.Configuration;
namespace uSync.Core
{
/// <summary>
/// a centralized way of telling if the current version of umbraco has
/// certain features or not.
/// </... | Update compatibility checks for user language permissions | Update compatibility checks for user language permissions
| C# | mpl-2.0 | KevinJump/uSync,KevinJump/uSync,KevinJump/uSync |
07d9e864506794d93a03bc68efd825d935013e8f | samples/IdentitySample.Mvc/Views/Shared/_LoginPartial.cshtml | samples/IdentitySample.Mvc/Views/Shared/_LoginPartial.cshtml | @using System.Security.Principal
@if (User.IsSignedIn())
{
using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" }))
{
@Html.AntiForgeryToken()
<ul class="nav navbar-nav navbar-right">
<li>
@Html.ActionLink("He... | @using System.Security.Claims
@if (User.IsSignedIn())
{
using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" }))
{
@Html.AntiForgeryToken()
<ul class="nav navbar-nav navbar-right">
<li>
@Html.ActionLink("Hello... | Correct namespace to fix failure | Correct namespace to fix failure
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
7a97c257d80b8e77455ec9ed210d6c7a4898c8ad | Azuria/Middleware/StaticHeaderMiddleware.cs | Azuria/Middleware/StaticHeaderMiddleware.cs | using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Azuria.ErrorHandling;
using Azuria.Requests.Builder;
namespace Azuria.Middleware
{
/// <summary>
/// Adds some static headers to the request. They indicate things like application, version and api key used.
... | using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Azuria.ErrorHandling;
using Azuria.Requests.Builder;
namespace Azuria.Middleware
{
/// <summary>
/// Adds some static headers to the request. They indicate things like application, version and api key used.
... | Make header of header middleware publicly accessible | Make header of header middleware publicly accessible
| C# | mit | InfiniteSoul/Azuria |
fbff56d52482b7739481d7c09118f7f779c60d6a | src/SIM.Pipelines/Install/Containers/InstallContainerArgs.cs | src/SIM.Pipelines/Install/Containers/InstallContainerArgs.cs | using System;
using System.Globalization;
using ContainerInstaller;
using SIM.Pipelines.Processors;
namespace SIM.Pipelines.Install.Containers
{
public enum Topology
{
Xm1,
Xp0,
Xp1
}
public static class StringExtentions
{
public static Topology ToTopology(this string tpl)
{
if (t... | using System;
using System.Globalization;
using ContainerInstaller;
using SIM.Pipelines.Processors;
namespace SIM.Pipelines.Install.Containers
{
public enum Topology
{
Xm1,
Xp0,
Xp1
}
public class InstallContainerArgs : ProcessorArgs
{
public InstallContainerArgs(EnvModel model, string des... | Simplify parsing string to Topology enum | Simplify parsing string to Topology enum
| C# | mit | Sitecore/Sitecore-Instance-Manager |
4d854ee10073b7f91985c35298f1c81a580543f4 | EDDiscovery/EliteDangerous/JournalEvents/JournalFileHeader.cs | EDDiscovery/EliteDangerous/JournalEvents/JournalFileHeader.cs | using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace EDDiscovery.EliteDangerous.JournalEvents
{
public class JournalFileHeader : JournalEntry
{
public JournalFileHeader(JObject evt ) : base(evt, JournalTypeEnum.FileHeader)
... | using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace EDDiscovery.EliteDangerous.JournalEvents
{
public class JournalFileHeader : JournalEntry
{
public JournalFileHeader(JObject evt ) : base(evt, JournalTypeEnum.FileHeader)
... | Add Beta property on FleaHeader event | Add Beta property on FleaHeader event
| C# | apache-2.0 | EDDiscovery/EDDiscovery,andreaspada/EDDiscovery,klightspeed/EDDiscovery,EDDiscovery/EDDiscovery,EDDiscovery/EDDiscovery,andreaspada/EDDiscovery,klightspeed/EDDiscovery,klightspeed/EDDiscovery |
2854b9e8ad075e99f9915493ed99ba078bde5302 | Ets.Mobile/Ets.Mobile.Shared/Views/Pages/Account/LoginPage.cs | Ets.Mobile/Ets.Mobile.Shared/Views/Pages/Account/LoginPage.cs | using Ets.Mobile.ViewModel.Pages.Account;
using ReactiveUI;
using System;
using System.Reactive.Linq;
using Windows.UI.Xaml;
namespace Ets.Mobile.Pages.Account
{
public partial class LoginPage : IViewFor<LoginViewModel>
{
#region IViewFor<T>
public LoginViewModel ViewModel
... | using Ets.Mobile.ViewModel.Pages.Account;
using ReactiveUI;
using System;
using System.Reactive.Linq;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
namespace Ets.Mobile.Pages.Account
{
public partial class LoginPage : IViewFor<LoginViewModel>
{
... | Use ReactiveUI Events for Click Handler | Use ReactiveUI Events for Click Handler
| C# | apache-2.0 | ApplETS/ETSMobile-WindowsPlatforms,ApplETS/ETSMobile-WindowsPlatforms |
d5af3177ac0a82410dac85f5ffd25cd250ee6a74 | AllReadyApp/Web-App/AllReady.UnitTest/TestBase.cs | AllReadyApp/Web-App/AllReady.UnitTest/TestBase.cs | using AllReady.Models;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.Http.Features.Authentication;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using System;
using Microsoft.Entit... | using AllReady.Models;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.Http.Features.Authentication;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using System;
using Microsoft.Entit... | Fix for EFCore using the same InMemoryDatabase Instance when running tests. | Fix for EFCore using the same InMemoryDatabase Instance when running tests.
| C# | mit | timstarbuck/allReady,GProulx/allReady,binaryjanitor/allReady,jonatwabash/allReady,HamidMosalla/allReady,colhountech/allReady,HamidMosalla/allReady,HTBox/allReady,gitChuckD/allReady,gitChuckD/allReady,forestcheng/allReady,pranap/allReady,chinwobble/allReady,VishalMadhvani/allReady,mheggeseth/allReady,mheggeseth/allReady... |
10e1701ef0457c09d918d63c5c053bf60546cb66 | src/SpaFallback/SpaFallbackOptions.cs | src/SpaFallback/SpaFallbackOptions.cs | using System;
using Microsoft.AspNetCore.Http;
namespace Hellang.Middleware.SpaFallback
{
public class SpaFallbackOptions
{
public Func<HttpContext, PathString> FallbackPathFactory { get; set; } = _ => "/index.html";
public bool AllowFileExtensions { get; set; } = false;
public bool ... | using System;
using Microsoft.AspNetCore.Http;
namespace Hellang.Middleware.SpaFallback
{
public class SpaFallbackOptions
{
private static readonly Func<HttpContext, PathString> DefaultFallbackPathFactory = _ => "/index.html";
public Func<HttpContext, PathString> FallbackPathFactory { get; se... | Make default fallback path factory static | Make default fallback path factory static
| C# | mit | khellang/Middleware,khellang/Middleware |
4cb2ff87b980506afa7e4dab269029cacd8a505e | src/NHibernate.Test/CfgTest/ConfigurationFixture.cs | src/NHibernate.Test/CfgTest/ConfigurationFixture.cs | using System;
using NHibernate.Cfg;
using NUnit.Framework;
namespace NHibernate.Test.CfgTest
{
/// <summary>
/// Summary description for ConfigurationFixture.
/// </summary>
[TestFixture]
public class ConfigurationFixture
{
[SetUp]
public void SetUp()
{
System.IO.File.Copy("..\\..\\hibernate.cfg.xml"... | using System;
using NHibernate.Cfg;
using NUnit.Framework;
namespace NHibernate.Test.CfgTest
{
/// <summary>
/// Summary description for ConfigurationFixture.
/// </summary>
[TestFixture]
public class ConfigurationFixture
{
[SetUp]
public void SetUp()
{
System.IO.File.Copy("..\\..\\hibernate.cfg.x... | Test now restores Environment properties back to their original values. | Test now restores Environment properties back to their original values.
SVN: 488784591515bd4cdaa016be4ec9b172dc4e7caf@707
| C# | lgpl-2.1 | ManufacturingIntelligence/nhibernate-core,alobakov/nhibernate-core,gliljas/nhibernate-core,nhibernate/nhibernate-core,fredericDelaporte/nhibernate-core,livioc/nhibernate-core,lnu/nhibernate-core,ManufacturingIntelligence/nhibernate-core,ngbrown/nhibernate-core,hazzik/nhibernate-core,livioc/nhibernate-core,fredericDelap... |
f358778ec834576b199d7c7f4cd5a42deb2d9a49 | src/Pioneer.Blog/Views/Home/_HomeLatestPosts.cshtml | src/Pioneer.Blog/Views/Home/_HomeLatestPosts.cshtml | @model List<Post>
<section class="home-latest-posts">
<h3 class="header-surround-bar"><span>Latest Posts</span></h3>
<div class="row width-100">
@foreach (var post in Model.Take(4))
{
<div class="large-3 columns end">
@Html.Partial("_HomePostCard", post)
</div>
}
</div>
<div cla... | @model List<Post>
<section class="home-latest-posts">
<h3 class="header-surround-bar"><span>Latest Posts</span></h3>
<div class="row width-100">
@foreach (var post in Model.Take(4))
{
<div class="large-3 medium-6 columns end">
@Html.Partial("_HomePostCard", post)
</div>
}
</div>
... | Add medium breakpoint to home latests posts. | Add medium breakpoint to home latests posts.
| C# | mit | PioneerCode/pioneer-blog,PioneerCode/pioneer-blog,PioneerCode/pioneer-blog,PioneerCode/pioneer-blog |
01dd90dad43bb8e87b7c6ad87c0c8a01dd2c8ebd | src/GitTools.IssueTrackers/IssueTrackers/Jira/Extensions/StringExtensions.cs | src/GitTools.IssueTrackers/IssueTrackers/Jira/Extensions/StringExtensions.cs | namespace GitTools.IssueTrackers.Jira
{
public static class StringExtensions
{
public static string AddJiraFilter(this string value, string additionalValue, string joinText = "AND")
{
if (!string.IsNullOrWhiteSpace(value))
{
value += string.Format(" {0} "... | namespace GitTools.IssueTrackers.Jira
{
internal static class StringExtensions
{
public static string AddJiraFilter(this string value, string additionalValue, string joinText = "AND")
{
if (!string.IsNullOrWhiteSpace(value))
{
value += string.Format(" {0}... | Change class visibility from public to internal for Jira string extensions | Change class visibility from public to internal for Jira string extensions
| C# | mit | GitTools/GitTools.IssueTrackers |
965d0603ce4346f6be847568336eff24c4b469e0 | osu.Game.Rulesets.Osu/Skinning/Argon/ArgonSliderScorePoint.cs | osu.Game.Rulesets.Osu/Skinning/Argon/ArgonSliderScorePoint.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;... | // 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.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;... | Fix slider tick colour not being applied properly | Fix slider tick colour not being applied properly
| C# | mit | peppy/osu,ppy/osu,peppy/osu,ppy/osu,ppy/osu,peppy/osu |
3cf6834b495ed68f433e6de8289b30cd3efcd7d7 | test/Zuehlke.Eacm.Web.Backend.Tests/CQRS/EventAggregatorExtensionsFixture.cs | test/Zuehlke.Eacm.Web.Backend.Tests/CQRS/EventAggregatorExtensionsFixture.cs | using System;
using Xunit;
using Zuehlke.Eacm.Web.Backend.CQRS;
namespace Zuehlke.Eacm.Web.Backend.Tests.DomainModel
{
public class EventAggregatorExtensionsFixture
{
[Fact]
public void PublishEvent_()
{
// arrange
// act
// assert
... | using System;
using Xunit;
using Zuehlke.Eacm.Web.Backend.CQRS;
using Zuehlke.Eacm.Web.Backend.Utils.PubSubEvents;
namespace Zuehlke.Eacm.Web.Backend.Tests.DomainModel
{
public class EventAggregatorExtensionsFixture
{
[Fact]
public void PublishEvent_EventAggregatorIsNull_ThrowsExcepti... | Implement tests for the EventAggregatorExtensions class. | refactor(configurationproject): Implement tests for the EventAggregatorExtensions class.
| C# | mit | lehmamic/EnterpriseApplicationConfigurationManager,lehmamic/EnterpriseApplicationConfigurationManager,lehmamic/EnterpriseApplicationConfigurationManager,lehmamic/EnterpriseApplicationConfigurationManager |
9bc830cacc57dd6e197e3235df614d70419d8250 | Project-Aurora/Project-Aurora/Profiles/TModLoader/GSI/GameState_TModLoader.cs | Project-Aurora/Project-Aurora/Profiles/TModLoader/GSI/GameState_TModLoader.cs | using Aurora.Profiles.Generic.GSI.Nodes;
using Aurora.Profiles.TModLoader.GSI.Nodes;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Aurora.Profiles.TModLoader.GSI {
public class GameState_TModLoader : GameSta... | using Aurora.Profiles.Generic.GSI.Nodes;
using Aurora.Profiles.TModLoader.GSI.Nodes;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Aurora.Profiles.TModLoader.GSI {
public class GameState_TModLoader : GameSta... | Fix error with merge on TModLoader GameState. | Fix error with merge on TModLoader GameState.
| C# | mit | antonpup/Aurora,antonpup/Aurora,antonpup/Aurora,antonpup/Aurora,antonpup/Aurora |
9b3afdfca1db4a1a204d8c0fb472cab102b0ee0e | TechProFantasySoccer/TechProFantasySoccer/App_Start/RouteConfig.cs | TechProFantasySoccer/TechProFantasySoccer/App_Start/RouteConfig.cs | using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Routing;
using Microsoft.AspNet.FriendlyUrls;
namespace TechProFantasySoccer
{
public static class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
/*var settings = new Friend... | using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Routing;
using Microsoft.AspNet.FriendlyUrls;
namespace TechProFantasySoccer
{
public static class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
var settings = new Friendly... | Switch the settings back for the mobile site. Fix this later | Switch the settings back for the mobile site. Fix this later
| C# | mit | GeraldBecker/TechProFantasySoccer,GeraldBecker/TechProFantasySoccer,GeraldBecker/TechProFantasySoccer |
e6c3f72d32df17e8a1e49940f4797fca28a49479 | exercises/simple-linked-list/Example.cs | exercises/simple-linked-list/Example.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
public class SimpleLinkedList<T> : IEnumerable<T>
{
public SimpleLinkedList(T value) :
this(new[] { value })
{
}
public SimpleLinkedList(IEnumerable<T> values)
{
var array = values.ToArray... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
public class SimpleLinkedList<T> : IEnumerable<T>
{
public SimpleLinkedList(T value) :
this(new[] { value })
{
}
public SimpleLinkedList(IEnumerable<T> values)
{
var array = values.ToArray... | Remove unnecessary Reverse() method in simple-linked-list | Remove unnecessary Reverse() method in simple-linked-list
| C# | mit | GKotfis/csharp,robkeim/xcsharp,exercism/xcsharp,robkeim/xcsharp,ErikSchierboom/xcsharp,ErikSchierboom/xcsharp,exercism/xcsharp,GKotfis/csharp |
fabb0eeb29a35c7e0d212d9c7be9f1aad8e90c35 | osu.Game/Online/Rooms/BeatmapAvailability.cs | osu.Game/Online/Rooms/BeatmapAvailability.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 MessagePack;
using Newtonsoft.Json;
namespace osu.Game.Online.Rooms
{
/// <summary>
/// The local availability information about a certain be... | // 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 MessagePack;
using Newtonsoft.Json;
namespace osu.Game.Online.Rooms
{
/// <summary>
/// The local availability information about a certain be... | Add signalr messagepack key attribute | Add signalr messagepack key attribute
| C# | mit | peppy/osu,peppy/osu,peppy/osu,UselessToucan/osu,ppy/osu,smoogipooo/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu-new,smoogipoo/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu |
b406ab3eea9a36c5369eba81417af7899c3d0ac5 | EpubSharp.Tests/EpubWriterTests.cs | EpubSharp.Tests/EpubWriterTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace EpubSharp.Tests
{
[TestClass]
public class EpubWriterTests
{
[TestMethod]
public void SaveTest()
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace EpubSharp.Tests
{
[TestClass]
public class EpubWriterTests
{
[TestMethod]
public void SaveTest()
{
... | Use smaller epub for saving test, so that online validators accept the size. | Use smaller epub for saving test, so that online validators accept the size.
| C# | mpl-2.0 | Asido/EpubSharp,pgung/EpubSharp |
68cf269af067a2959685e93111f594fbc29b4377 | CefSharp.BrowserSubprocess/CefRenderProcess.cs | CefSharp.BrowserSubprocess/CefRenderProcess.cs | using CefSharp.Internals;
using System.Collections.Generic;
using System.ServiceModel;
namespace CefSharp.BrowserSubprocess
{
public class CefRenderProcess : CefSubProcess, IRenderProcess
{
private DuplexChannelFactory<IBrowserProcess> channelFactory;
private CefBrowserBase browser;
pu... | using CefSharp.Internals;
using System.Collections.Generic;
using System.ServiceModel;
namespace CefSharp.BrowserSubprocess
{
public class CefRenderProcess : CefSubProcess, IRenderProcess
{
private DuplexChannelFactory<IBrowserProcess> channelFactory;
private CefBrowserBase browser;
pu... | Move serviceName to variable - makes for easier debugging | Move serviceName to variable - makes for easier debugging
| C# | bsd-3-clause | battewr/CefSharp,twxstar/CefSharp,dga711/CefSharp,NumbersInternational/CefSharp,joshvera/CefSharp,battewr/CefSharp,VioletLife/CefSharp,haozhouxu/CefSharp,wangzheng888520/CefSharp,jamespearce2006/CefSharp,gregmartinhtc/CefSharp,Livit/CefSharp,jamespearce2006/CefSharp,twxstar/CefSharp,yoder/CefSharp,twxstar/CefSharp,Octo... |
ad297f0b9ef1dce9fd78f5eb6a2ff8dbe47fbc6d | Solution/App/Infrastructure/UWPBootstrapper.cs | Solution/App/Infrastructure/UWPBootstrapper.cs | using System;
using App.Services;
using App.Services.Contracts;
using App.ViewModels;
using App.ViewModels.Contracts;
using Microsoft.Practices.Unity;
namespace App.Infrastructure
{
// ReSharper disable once InconsistentNaming
public sealed class UWPBootstrapper : CaliburnBootstrapper
{
public UWP... | using System;
using App.Services;
using App.Services.Contracts;
using App.ViewModels;
using App.ViewModels.Contracts;
using Microsoft.Practices.Unity;
namespace App.Infrastructure
{
// ReSharper disable once InconsistentNaming
public sealed class UWPBootstrapper : CaliburnBootstrapper
{
public UWP... | Use the chain way for registering services and view models. | Use the chain way for registering services and view models.
| C# | mit | minidfx/BulkRename |
28a4cde5dd7568b7c91602d9822db16d3a4119f1 | osu.Framework.Benchmarks/BenchmarkTabletDriver.cs | osu.Framework.Benchmarks/BenchmarkTabletDriver.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.
#if NET5_0
using BenchmarkDotNet.Attributes;
using Microsoft.Extensions.DependencyInjection;
using OpenTabletDriver;
using osu.Framework.Input.Handlers.Tablet;
namespace... | // 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.
#if NET5_0
using BenchmarkDotNet.Attributes;
using osu.Framework.Input.Handlers.Tablet;
namespace osu.Framework.Benchmarks
{
public class BenchmarkTabletDriver : Ben... | Fix remaining usage of DI instead of direct `Create()` call | Fix remaining usage of DI instead of direct `Create()` call
| C# | mit | ppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework |
55607634b4cebcd74c1130293222845923099525 | osu.Game/Beatmaps/Drawables/UpdateableBeatmapBackgroundSprite.cs | osu.Game/Beatmaps/Drawables/UpdateableBeatmapBackgroundSprite.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Configuration;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Beatmaps.Dr... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Configuration;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Beatmaps.Dr... | Fix covers being loaded even when off-screen | Fix covers being loaded even when off-screen
| C# | mit | 2yangk23/osu,DrabWeb/osu,peppy/osu,UselessToucan/osu,2yangk23/osu,DrabWeb/osu,ppy/osu,naoey/osu,johnneijzen/osu,ZLima12/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,EVAST9919/osu,UselessToucan/osu,johnneijzen/osu,smoogipooo/osu,peppy/osu-new,smoogipoo/osu,DrabWeb/osu,ZLima12/osu,smoogipoo/osu,naoey/osu,smoogipoo/osu,NeoAdon... |
330ec127adf7276f9235d50f089892b5719e434f | Nerdle.AutoConfig.Tests.Integration/UsingDefaultConfigFilePath.cs | Nerdle.AutoConfig.Tests.Integration/UsingDefaultConfigFilePath.cs | using FluentAssertions;
using NUnit.Framework;
namespace Nerdle.AutoConfig.Tests.Integration
{
[TestFixture]
public class UsingDefaultConfigFilePath
{
[Test]
#if NETCOREAPP
[Ignore("Buggy interaction between the test runner and System.Configuration.ConfigurationManager, see https://github.... | using FluentAssertions;
using NUnit.Framework;
namespace Nerdle.AutoConfig.Tests.Integration
{
[TestFixture]
public class UsingDefaultConfigFilePath
#if NETCOREAPP
: System.IDisposable
{
private readonly string _configFilePath;
// In order to workaround flaky interaction between t... | Use a workaround to make Mapping_from_the_default_file_path pass on .NET Core | Use a workaround to make Mapping_from_the_default_file_path pass on .NET Core
See https://github.com/nunit/nunit3-vs-adapter/issues/356#issuecomment-700754225 | C# | mit | edpollitt/Nerdle.AutoConfig |
bdaa15dbfbbb26805795f5abf63e0db56aadb12e | Calculator/Calculator.cs | Calculator/Calculator.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Antlr4;
using Antlr4.Runtime;
namespace Rubberduck.Math
{
public static class Calculator
{
public static int Evaluate(string expression)
{
var lexer = new Basic... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Antlr4;
using Antlr4.Runtime;
namespace Rubberduck.Math
{
public static class Calculator
{
public static int Evaluate(string expression)
{
var lexer = new Basic... | Throw exception if more than one expression is passed to Evaluate | Throw exception if more than one expression is passed to Evaluate
| C# | mit | ckuhn203/Antlr4Calculator |
e33c778ad8633864afc3c8587b6acb11a8dc18e4 | Editor/GameObjectCommand/GameObjectCommand.cs | Editor/GameObjectCommand/GameObjectCommand.cs | using System.IO;
using UnityEditor;
using UnityEngine;
namespace DTCommandPalette {
public abstract class GameObjectCommand : ICommand {
// PRAGMA MARK - ICommand
public string DisplayTitle {
get {
return _obj.name;
}
}
public string DisplayD... | using System.IO;
using UnityEditor;
using UnityEngine;
namespace DTCommandPalette {
public abstract class GameObjectCommand : ICommand {
// PRAGMA MARK - ICommand
public string DisplayTitle {
get {
if (!IsValid()) {
return "";
}
... | Fix null references when game object is destroyed | Fix null references when game object is destroyed
| C# | mit | DarrenTsung/DTCommandPalette |
bd7e87553c93021f3a9ee5edb414c2a4b07a3401 | Pixie/MarkupNode.cs | Pixie/MarkupNode.cs | using System;
namespace Pixie
{
/// <summary>
/// A base class for markup nodes: composable elements that can
/// be rendered.
/// </summary>
public abstract class MarkupNode
{
/// <summary>
/// Gets a fallback version of this node for when the renderer
/// doesn't know ... | using System;
using Pixie.Markup;
namespace Pixie
{
/// <summary>
/// A base class for markup nodes: composable elements that can
/// be rendered.
/// </summary>
public abstract class MarkupNode
{
/// <summary>
/// Gets a fallback version of this node for when the renderer
... | Define an implicit conversion from strings to markup nodes | Define an implicit conversion from strings to markup nodes
| C# | mit | jonathanvdc/Pixie,jonathanvdc/Pixie |
4688f63632324d54c8f7e2b471f795babb050e60 | src/Avalonia.Styling/ClassBindingManager.cs | src/Avalonia.Styling/ClassBindingManager.cs | using System;
using System.Collections.Generic;
using Avalonia.Data;
namespace Avalonia
{
internal static class ClassBindingManager
{
private static readonly Dictionary<string, AvaloniaProperty> s_RegisteredProperties =
new Dictionary<string, AvaloniaProperty>();
public sta... | using System;
using System.Collections.Generic;
using Avalonia.Data;
namespace Avalonia
{
internal static class ClassBindingManager
{
private static readonly Dictionary<string, AvaloniaProperty> s_RegisteredProperties =
new Dictionary<string, AvaloniaProperty>();
public sta... | Simplify the code a bit | Simplify the code a bit
| C# | mit | SuperJMN/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,grokys/Perspex,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,jkoritzinsky/Avalonia,A... |
605f9d62a16a536f3ddfcdfac0a654983d2b6e7b | src/Snowflake.Framework.Tests/Scraping/ScraperIntegrationTests.cs | src/Snowflake.Framework.Tests/Scraping/ScraperIntegrationTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Snowflake.Plugin.Scraping.TheGamesDb;
using Snowflake.Scraping;
using Snowflake.Scraping.Extensibility;
using Xunit;
namespace Snowflake.Scraping.Tests
{
public class ScraperIntegrationTests
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Snowflake.Plugin.Scraping.TheGamesDb;
using Snowflake.Scraping;
using Snowflake.Scraping.Extensibility;
using Xunit;
namespace Snowflake.Scraping.Tests
{
public class ScraperIntegrationTests
... | Disable TGDB Tests for now | Tests: Disable TGDB Tests for now
| C# | mpl-2.0 | RonnChyran/snowflake,RonnChyran/snowflake,SnowflakePowered/snowflake,RonnChyran/snowflake,SnowflakePowered/snowflake,SnowflakePowered/snowflake |
848c32ca77fa46aa0efb8d49c413a191777dcdc9 | alert-roster.web/Migrations/Configuration.cs | alert-roster.web/Migrations/Configuration.cs | namespace alert_roster.web.Migrations
{
using alert_roster.web.Models;
using System;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
internal sealed class Configuration : DbMigrationsConfiguration<alert_roster.web.Models.AlertRosterDbContext>
{
publ... | namespace alert_roster.web.Migrations
{
using alert_roster.web.Models;
using System;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
internal sealed class Configuration : DbMigrationsConfiguration<alert_roster.web.Models.AlertRosterDbContext>
{
publ... | Allow dataloss... shouldn't be necesssary? | Allow dataloss... shouldn't be necesssary?
| C# | mit | mattgwagner/alert-roster |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.