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 |
|---|---|---|---|---|---|---|---|---|---|
f8402f0c29128e2347d382193b84a21ab7a2fe84 | dot10/PE/ImageDataDirectory.cs | dot10/PE/ImageDataDirectory.cs | using System;
using System.IO;
namespace dot10.PE {
/// <summary>
/// Represents the IMAGE_DATA_DIRECTORY PE section
/// </summary>
public class ImageDataDirectory : FileSection {
RVA virtualAddress;
uint dataSize;
/// <summary>
/// Default constructor
/// </summary>
public ImageDataDirectory() {
}... | using System;
using System.IO;
namespace dot10.PE {
/// <summary>
/// Represents the IMAGE_DATA_DIRECTORY PE section
/// </summary>
public class ImageDataDirectory : FileSection {
RVA virtualAddress;
uint dataSize;
/// <summary>
/// Returns the IMAGE_DATA_DIRECTORY.VirtualAddress field
/// </summary>
... | Add read only props to access RVA and size | Add read only props to access RVA and size
| C# | mit | jorik041/dnlib,Arthur2e5/dnlib,0xd4d/dnlib,modulexcite/dnlib,ilkerhalil/dnlib,kiootic/dnlib,ZixiangBoy/dnlib,yck1509/dnlib,picrap/dnlib |
0b7c1f5205487e10d11672fe424081e29c20cf3b | NeuralNetTypes/NeuralNetBooleanFormatter.cs | NeuralNetTypes/NeuralNetBooleanFormatter.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NeuralNet.Configuration;
namespace NeuralNetTypes
{
class NeuralNetBooleanFormatter : NetInputOutputFormatter
{
private const double high = 0.9, low = 0.1, maxError = 0.1;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NeuralNet.Configuration;
namespace NeuralNetTypes
{
class NeuralNetBooleanFormatter : NetInputOutputFormatter
{
private const double high = 0.9, low = 0.1, maxError = 0.1;
... | Improve the way Booleans are shown if they are not within the maximum allowable limit | Improve the way Booleans are shown if they are not within the maximum allowable limit
| C# | mit | ddashwood/NeuralNet |
9b3c908b5acb945756006d913b650ddc858338fd | MultiMiner.Xgminer.Api/DeviceInformation.cs | MultiMiner.Xgminer.Api/DeviceInformation.cs | namespace MultiMiner.Xgminer.Api
{
public class DeviceInformation
{
public string Kind { get; set; }
public int Index { get; set; }
public bool Enabled { get; set; }
public string Status { get; set; }
public double Temperature { get; set; }
public int FanSpeed { ... | using System;
namespace MultiMiner.Xgminer.Api
{
public class DeviceInformation
{
public DeviceInformation()
{
Status = String.Empty;
}
public string Kind { get; set; }
public int Index { get; set; }
public bool Enabled { get; set; }
public s... | Fix null ref error if bfgminer returns no Status w / the devs API | Fix null ref error if bfgminer returns no Status w / the devs API
| C# | mit | nwoolls/MultiMiner,IWBWbiz/MultiMiner,nwoolls/MultiMiner,IWBWbiz/MultiMiner |
e19cbd78c5fcd503dc8c81eb09df2b11eeb4bbca | DiffPlex/DiffBuilder/Model/DiffPiece.cs | DiffPlex/DiffBuilder/Model/DiffPiece.cs | using System.Collections.Generic;
namespace DiffPlex.DiffBuilder.Model
{
public enum ChangeType
{
Unchanged,
Deleted,
Inserted,
Imaginary,
Modified
}
public class DiffPiece
{
public ChangeType Type { get; set; }
public int? Position { get; s... | using System.Collections.Generic;
namespace DiffPlex.DiffBuilder.Model
{
public enum ChangeType
{
Unchanged,
Deleted,
Inserted,
Imaginary,
Modified
}
public class DiffPiece
{
public ChangeType Type { get; set; }
public int? Position { get; s... | Remove overload by using default value | Remove overload by using default value
| C# | apache-2.0 | mmanela/diffplex,mmanela/diffplex,mmanela/diffplex,mmanela/diffplex |
72b49d199ab5e4e615530a19c18807b2d818be58 | Rock.Core/AppSettingsApplicationInfo.cs | Rock.Core/AppSettingsApplicationInfo.cs | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Rock
{
/// <summary>
/// An implementation of <see cref="IApplicationInfo"/> that uses a config
/// file's appSettings section.
/// </summary>
p... | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Rock
{
/// <summary>
/// An implementation of <see cref="IApplicationInfo"/> that uses a config
/// file's appSettings section.
/// </summary>
p... | Add more detail in documentation comment. | Add more detail in documentation comment.
| C# | mit | bfriesen/Rock.Core,peteraritchie/Rock.Core,RockFramework/Rock.Core |
dfc3e56eb79965117c4ebfb489d9e71779878b39 | src/Umbraco.Web/WebApi/EnableDetailedErrorsAttribute.cs | src/Umbraco.Web/WebApi/EnableDetailedErrorsAttribute.cs | using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
namespace Umbraco.Web.WebApi
{
/// <summary>
/// Ensures controllers have detailed error messages even when debug mode is off
/// </summary>
public class EnableDetailedErrorsAttribute : ActionFilterAttribute
{... | using System.Web;
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
namespace Umbraco.Web.WebApi
{
/// <summary>
/// Ensures controllers have detailed error messages even when debug mode is off
/// </summary>
public class EnableDetailedErrorsAttribute : ActionFil... | Check if we're in debug and set IncludeErrorPolicy accordingly | Check if we're in debug and set IncludeErrorPolicy accordingly
| C# | mit | marcemarc/Umbraco-CMS,marcemarc/Umbraco-CMS,KevinJump/Umbraco-CMS,marcemarc/Umbraco-CMS,robertjf/Umbraco-CMS,KevinJump/Umbraco-CMS,KevinJump/Umbraco-CMS,arknu/Umbraco-CMS,umbraco/Umbraco-CMS,abryukhov/Umbraco-CMS,arknu/Umbraco-CMS,robertjf/Umbraco-CMS,KevinJump/Umbraco-CMS,abryukhov/Umbraco-CMS,dawoe/Umbraco-CMS,dawoe/... |
43ea1f5d59be11669c6c08c86ee6ecea48796096 | src/Exceptionless.Core/Extensions/UriExtensions.cs | src/Exceptionless.Core/Extensions/UriExtensions.cs | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
namespace Exceptionless.Core.Extensions {
public static class UriExtensions {
public static string ToQueryString(this NameValueCollection collection) {
return collection.AsKeyValuePairs().T... | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
namespace Exceptionless.Core.Extensions {
public static class UriExtensions {
public static string ToQueryString(this NameValueCollection collection) {
return collection.AsKeyValuePairs().T... | Change the HttpUtility.UrlEncode to Uri.EscapeDataString method. | Change the HttpUtility.UrlEncode to Uri.EscapeDataString method.
| C# | apache-2.0 | exceptionless/Exceptionless,exceptionless/Exceptionless,exceptionless/Exceptionless,exceptionless/Exceptionless |
d9e86ff97a08467c721955ca71a8ee2fda5ca9cd | Website/Infrastructure/HttpHeaderValueProviderFactory.cs | Website/Infrastructure/HttpHeaderValueProviderFactory.cs | using System;
using System.Web.Mvc;
namespace NuGetGallery
{
public class HttpHeaderValueProviderFactory : ValueProviderFactory
{
public override IValueProvider GetValueProvider(ControllerContext controllerContext)
{
var request = controllerContext.RequestContext.HttpContext.Reques... | using System;
using System.Web.Mvc;
namespace NuGetGallery
{
public class HttpHeaderValueProviderFactory : ValueProviderFactory
{
public override IValueProvider GetValueProvider(ControllerContext controllerContext)
{
var request = controllerContext.RequestContext.HttpContext.Reques... | Fix issue with API header binding when running under a subdirectory | Fix issue with API header binding when running under a subdirectory | C# | apache-2.0 | KuduApps/NuGetGallery,projectkudu/SiteExtensionGallery,projectkudu/SiteExtensionGallery,ScottShingler/NuGetGallery,ScottShingler/NuGetGallery,projectkudu/SiteExtensionGallery,mtian/SiteExtensionGallery,JetBrains/ReSharperGallery,KuduApps/NuGetGallery,mtian/SiteExtensionGallery,skbkontur/NuGetGallery,skbkontur/NuGetGall... |
74ee2848fd83438e1a1f86a8dd742092b28f172c | Assets/Scripts/Behaviors/NecrophageBehavior.cs | Assets/Scripts/Behaviors/NecrophageBehavior.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class NecrophageBehavior : AgentBehavior
{
// "pursue" nearest corpse
public override bool updatePlan(List<AgentPercept> percepts, int allottedWorkUnits)
{
Action newMoveAction;
Action newLookAction;
Agent tempAgent;
boo... | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class NecrophageBehavior : AgentBehavior
{
// "pursue" nearest corpse
public override bool updatePlan(List<AgentPercept> percepts, int allottedWorkUnits)
{
Action newMoveAction;
Action newLookAction;
Agent tempAgent;
boo... | Make necrophage require Look faculty | Make necrophage require Look faculty
| C# | mit | futurechris/zombai |
8f70c3cd7f8d2dca39c3a2153ad8701ff4c67f55 | wasm-dump/Program.cs | wasm-dump/Program.cs | using System;
using System.IO;
using Wasm.Binary;
namespace Wasm.Dump
{
public static class Program
{
public static void Main(string[] args)
{
if (args.Length != 1)
Console.WriteLine("usage: wasm-dump file.wasm");
WasmFile file;
using (var f... | using System;
using System.IO;
using Wasm.Binary;
namespace Wasm.Dump
{
public static class Program
{
public static void Main(string[] args)
{
if (args.Length != 1)
{
Console.WriteLine("usage: wasm-dump file.wasm");
return;
}
... | Return after printing wasm-dump usage | Return after printing wasm-dump usage
| C# | mit | jonathanvdc/cs-wasm,jonathanvdc/cs-wasm |
eadba462fdc4659b2025b0d64aecfe8c7acd65b4 | Assets/Scripts/Stage/MicrogameStage.cs | Assets/Scripts/Stage/MicrogameStage.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MicrogameStage : Stage
{
public static string microgameId;
[SerializeField]
private string forceMicrogame;
public override Microgame getMicrogame(int num)
{
Microgame microgame = new Microgame(microgameId);
microgam... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MicrogameStage : Stage
{
public static string microgameId;
[SerializeField]
private string forceMicrogame;
public override void onStageStart()
{
//Update collection if microgame is forced, in case it's in ... | Add check for microgames when forced in Practice | Add check for microgames when forced in Practice
| C# | mit | Barleytree/NitoriWare,Barleytree/NitoriWare,NitorInc/NitoriWare,NitorInc/NitoriWare |
5d736397e3c89e5ddfca3fb553023528cf32494a | csla20cs/Csla/Core/RemovingItemEventArgs.cs | csla20cs/Csla/Core/RemovingItemEventArgs.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Csla.Core
{
/// <summary>
/// Contains event data for the RemovingItem
/// event.
/// </summary>
[Serializable]
public class RemovingItemEventArgs : EventArgs
{
private object _removingItem;
/// <summary>
/// Gets a... | using System;
using System.Collections.Generic;
using System.Text;
namespace Csla.Core
{
/// <summary>
/// Contains event data for the RemovingItem
/// event.
/// </summary>
public class RemovingItemEventArgs : EventArgs
{
private object _removingItem;
/// <summary>
/// Gets a reference to the... | Remove Serializable attribute to achieve parity with the VB code. | Remove Serializable attribute to achieve parity with the VB code.
| C# | mit | rockfordlhotka/csla,ronnymgm/csla-light,ronnymgm/csla-light,MarimerLLC/csla,jonnybee/csla,JasonBock/csla,JasonBock/csla,jonnybee/csla,rockfordlhotka/csla,BrettJaner/csla,rockfordlhotka/csla,jonnybee/csla,MarimerLLC/csla,BrettJaner/csla,BrettJaner/csla,JasonBock/csla,MarimerLLC/csla,ronnymgm/csla-light |
9bd65323db51a995b10206a960720d65fb286ebd | src/Venue/CostCenter.cs | src/Venue/CostCenter.cs | using Newtonsoft.Json;
namespace Ivvy.API.Venue
{
public class CostCenter
{
public enum DefaultTypes
{
Other = 1,
VenueFood = 2,
VenueBeverage = 3,
VenueAudioVisual = 4,
VenueRoomHire = 5,
VenueAccommodation = 6,
}
... | using Newtonsoft.Json;
namespace Ivvy.API.Venue
{
public class CostCenter : Account.CostCenter
{
[JsonProperty("parentId")]
public int? ParentId
{
get; set;
}
}
} | Refactor the Venue level cost centre to inherit from the Account level cost centre to allow sharing of data structures. | Refactor the Venue level cost centre to inherit from the Account level cost centre to allow sharing of data structures.
| C# | mit | ivvycode/ivvy-sdk-net |
88d55b796b6c2dd99301031d5ed7d343bfc035d8 | osu.Framework/Audio/Track/TrackAmplitudes.cs | osu.Framework/Audio/Track/TrackAmplitudes.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
namespace osu.Framework.Audio.Track
{
public struct TrackAmplitudes
{
public float LeftChannel;
public float RightChannel;
... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
namespace osu.Framework.Audio.Track
{
public struct TrackAmplitudes
{
public float LeftChannel;
public float R... | Add Maximum/Average aggregate functions for amplitudes | Add Maximum/Average aggregate functions for amplitudes
| C# | mit | peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,naoey/osu-framework,ZLima12/osu-framework,ppy/osu-framework,paparony03/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,default0/osu-framework,default0/osu-framework,paparony03/osu-framework,smoogipooo/osu-f... |
0e20c3ca88825bf27c1f8a38d79d6fa3331a1972 | Source/Lib/TraktApiSharp/Core/TraktConfiguration.cs | Source/Lib/TraktApiSharp/Core/TraktConfiguration.cs | namespace TraktApiSharp.Core
{
using System.Net.Http;
public class TraktConfiguration
{
internal TraktConfiguration()
{
ApiVersion = 2;
UseStagingUrl = false;
}
internal static HttpClient HTTP_CLIENT = null;
public int ApiVersion { get; set... | namespace TraktApiSharp.Core
{
using System.Net.Http;
/// <summary>Provides global client settings.</summary>
public class TraktConfiguration
{
internal TraktConfiguration()
{
ApiVersion = 2;
UseStagingUrl = false;
}
internal static HttpClient H... | Add source documentation for configuration class. | Add source documentation for configuration class.
| C# | mit | henrikfroehling/TraktApiSharp |
5d04ff79915d1acd301313acebfe53629ec96e7a | src/MonoDevelop.Dnx/Properties/AddinInfo.cs | src/MonoDevelop.Dnx/Properties/AddinInfo.cs | using Mono.Addins;
[assembly:Addin ("Dnx",
Namespace = "MonoDevelop",
Version = "0.5",
Category = "IDE extensions")]
[assembly:AddinName ("DNX")]
[assembly:AddinDescription ("Adds .NET Core and ASP.NET Core support.")]
[assembly:AddinDependency ("Core", "6.0")]
[assembly:AddinDependency ("Ide", "6.0")]
[assembly... | using Mono.Addins;
[assembly:Addin ("Dnx",
Namespace = "MonoDevelop",
Version = "0.5",
Category = "IDE extensions")]
[assembly:AddinName ("DNX")]
[assembly:AddinDescription ("Adds .NET Core and ASP.NET Core support.\n\nPlease uninstall any older version of the addin and restart the application before installing t... | Add info to addin description about uninstalling old addin | Add info to addin description about uninstalling old addin
When the new version of the addin is installed without the old
version being uninstalled an error about the test provider class being
missing is reported. The addin will then not properly load.
Uninstalling the old addin, restarting the IDE, then installing th... | C# | mit | mrward/monodevelop-dnx-addin |
7a00fd84f86bcddaec8e01c9af8d12d6f1e39bab | LiteDB.Tests/Engine/Shell_Tests.cs | LiteDB.Tests/Engine/Shell_Tests.cs | using System.IO;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace LiteDB.Tests.Engine
{
[TestClass]
public class Shell_Tests
{
[TestMethod]
public void Shell_Commands()
{
using (var db = new LiteEngine(new MemoryStream()))
{
... | using System.IO;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace LiteDB.Tests.Engine
{
[TestClass]
public class Shell_Tests
{
[TestMethod]
public void Shell_Commands()
{
using (var db = new LiteEngine(new MemoryStream()))
{
... | Add more shell unit test | Add more shell unit test
| C# | mit | falahati/LiteDB,89sos98/LiteDB,89sos98/LiteDB,falahati/LiteDB,mbdavid/LiteDB |
36ae4dd2715f911d0d649c7e133ae7392b0f6558 | osu.Game/GameModes/Play/Osu/OsuPlayfield.cs | osu.Game/GameModes/Play/Osu/OsuPlayfield.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 osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Drawables;
using OpenTK;
namespace osu.Game.GameModes.Play.Os... | //Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Drawables;
using OpenTK;
namespace osu.Game.GameModes.Play.Os... | Fix osu! playfield (was using inheriting sizemode when it shouldn't). | Fix osu! playfield (was using inheriting sizemode when it shouldn't).
| C# | mit | naoey/osu,ppy/osu,Frontear/osuKyzer,DrabWeb/osu,ppy/osu,UselessToucan/osu,johnneijzen/osu,peppy/osu-new,nyaamara/osu,peppy/osu,NeoAdonis/osu,theguii/osu,NeoAdonis/osu,smoogipooo/osu,NotKyon/lolisu,Damnae/osu,2yangk23/osu,RedNesto/osu,osu-RP/osu-RP,DrabWeb/osu,smoogipoo/osu,naoey/osu,EVAST9919/osu,tacchinotacchi/osu,Nab... |
bdf506766a8a1c3a67658005494a01b5796f3bef | Mond/VirtualMachine/Object.cs | Mond/VirtualMachine/Object.cs | using System.Collections.Generic;
namespace Mond.VirtualMachine
{
class Object
{
public readonly Dictionary<MondValue, MondValue> Values;
public bool Locked;
public MondValue Prototype;
public object UserData;
private MondState _dispatcherState;
public MondSta... | using System.Collections.Generic;
namespace Mond.VirtualMachine
{
class Object
{
public readonly Dictionary<MondValue, MondValue> Values;
public bool Locked;
public MondValue Prototype;
public object UserData;
private MondState _dispatcherState;
public MondSta... | Fix silent failure when using metamethods on an object without an attached state | Fix silent failure when using metamethods on an object without an attached state
| C# | mit | Rohansi/Mond,Rohansi/Mond,Rohansi/Mond,SirTony/Mond,SirTony/Mond,SirTony/Mond |
6c4c02289c236a5a9eab38e602eff164530f93dd | qed/Functions/CreateRavenStore.cs | qed/Functions/CreateRavenStore.cs | using Raven.Client;
using Raven.Client.Embedded;
using fn = qed.Functions;
namespace qed
{
public static partial class Functions
{
public static IDocumentStore GetRavenStore()
{
var ravenStore = GetConfiguration<IDocumentStore>(Constants.Configuration.RavenStoreKey);
if... | using Raven.Client;
using Raven.Client.Document;
using Raven.Client.Embedded;
using fn = qed.Functions;
namespace qed
{
public static partial class Functions
{
public static IDocumentStore GetRavenStore()
{
var ravenStore = GetConfiguration<IDocumentStore>(Constants.Configuration.R... | Create doc store or embedded doc | Create doc store or embedded doc
| C# | mit | half-ogre/qed,Haacked/qed |
7925750e5a58575e77e825d3ef33711e2a2733d7 | Networking/INetworkingProxy.cs | Networking/INetworkingProxy.cs | using System.IO;
using System.Net.Sockets;
namespace ItzWarty.Networking {
public interface INetworkingProxy {
IConnectedSocket CreateConnectedSocket(string host, int port);
IConnectedSocket CreateConnectedSocket(ITcpEndPoint endpoint);
IListenerSocket CreateListenerSocket(int port);
IConn... | using System.IO;
using System.Net.Sockets;
namespace ItzWarty.Networking {
public interface INetworkingProxy {
IConnectedSocket CreateConnectedSocket(string host, int port);
IConnectedSocket CreateConnectedSocket(ITcpEndPoint endpoint);
IListenerSocket CreateListenerSocket(int port);
IList... | Extend NetworkingProxy to support listener socket endpoints besides "any". | Extend NetworkingProxy to support listener socket endpoints besides "any".
| C# | bsd-2-clause | the-dargon-project/ItzWarty.Proxies.Api,ItzWarty/ItzWarty.Proxies.Api |
e14672eac4f80683aaa1255a0e5eb8c75320bd20 | Components/FFplay.cs | Components/FFplay.cs | using System;
using System.Diagnostics;
using System.IO;
namespace WebMConverter
{
class FFplay : Process
{
public string FFplayPath = Path.Combine(Environment.CurrentDirectory, "Binaries", "Win32", "ffplay.exe");
public FFplay(string argument)
{
this.StartInfo.FileName = ... | using System;
using System.Diagnostics;
using System.IO;
namespace WebMConverter
{
class FFplay : Process
{
public string FFplayPath = Path.Combine(Environment.CurrentDirectory, "Binaries", "Win32", "ffplay.exe");
public FFplay(string argument)
{
this.StartInfo.FileName = ... | Print ffplay output to the console in debug builds | Print ffplay output to the console in debug builds
| C# | mit | o11c/WebMConverter,Yuisbean/WebMConverter,nixxquality/WebMConverter |
a52f7aaca22e692aa93de0aaf142b422592e7ae4 | src/ZeroLog.Benchmarks/Tools/Log4NetTestAppender.cs | src/ZeroLog.Benchmarks/Tools/Log4NetTestAppender.cs | using System.Collections.Generic;
using System.Threading;
using log4net.Appender;
using log4net.Core;
namespace ZeroLog.Benchmarks
{
internal class Log4NetTestAppender : AppenderSkeleton
{
private readonly bool _captureLoggedMessages;
private int _messageCount;
private ManualResetEvent... | using System.Collections.Generic;
using System.Threading;
using log4net.Appender;
using log4net.Core;
namespace ZeroLog.Benchmarks
{
internal class Log4NetTestAppender : AppenderSkeleton
{
private readonly bool _captureLoggedMessages;
private int _messageCount;
private ManualResetEvent... | Make log4net appender render the log event (as zero log is rendering it, the comparison wouldn't be fair otherwise) | Make log4net appender render the log event (as zero log is rendering it, the comparison wouldn't be fair otherwise)
| C# | mit | Abc-Arbitrage/ZeroLog |
19fd3c0dc9adb8ff6ce74a6df7d6294e82c9c97c | Skoodle/App_Start/CustomInitializer.cs | Skoodle/App_Start/CustomInitializer.cs | using Skoodle.Models;
using System.Data.Entity;
namespace Skoodle.App_Start
{
public class CustomInitializer: DropCreateDatabaseAlways<ApplicationDbContext>
{
protected override void Seed(ApplicationDbContext context)
{
context.Topics.Add(new Topic { Name = "Topic1", Category = "Ca... | using Skoodle.Models;
using System.Data.Entity;
namespace Skoodle.App_Start
{
public class CustomInitializer: DropCreateDatabaseAlways<ApplicationDbContext>
{
protected override void Seed(ApplicationDbContext context)
{
Cathegory Category1 = new Cathegory { CathegoryName = "Categor... | Change seeding of topic categories | Change seeding of topic categories
| C# | mit | SkoodleNinjas/Skoodle,SkoodleNinjas/Skoodle |
83b6018f2d5b7d6345e26007bc28edc7e14ed582 | Training.CSharpWorkshop.Tests/ProgramTests.cs | Training.CSharpWorkshop.Tests/ProgramTests.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Training.CSharpWorkshop.Tests
{
[TestClass]
public class ProgramTests
{
[Ignore]
[TestMethod]
public void IgnoreTest()
{
Assert.Fail();
}
[TestMethod()]
public v... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Training.CSharpWorkshop.Tests
{
[TestClass]
public class ProgramTests
{
[Ignore]
[TestMethod]
public void IgnoreTest()
{
Assert.Fail();
}
[TestMethod()]
public v... | Update Console Program with a Condition - Rename GetRoleMessageTest to GetRoleMessageForAdminTest so it is more specific | Update Console Program with a Condition - Rename GetRoleMessageTest to GetRoleMessageForAdminTest so it is more specific
| C# | mit | penblade/Training.CSharpWorkshop |
616aeba156d617c98955e437f3283ae66206c2ba | test/Kestrel.Transport.FunctionalTests/ChromeConstants.cs | test/Kestrel.Transport.FunctionalTests/ChromeConstants.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.IO;
using System.Runtime.InteropServices;
namespace Interop.FunctionalTests
{
public static class ChromeConstants
{... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.IO;
using System.Runtime.InteropServices;
namespace Interop.FunctionalTests
{
public static class ChromeConstants
{... | Use chrome instead of chromium on Ubuntu | Use chrome instead of chromium on Ubuntu
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
b327a362b153faf5e4fa856b3cf911b14100aaa0 | LabWsKiatnakin/DemoWcfRest/DemoService.svc.cs | LabWsKiatnakin/DemoWcfRest/DemoService.svc.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Text;
namespace DemoWcfRest
{
[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(R... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Text;
namespace DemoWcfRest
{
[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(R... | Add WebInvoke to demonstrate how to post. | Add WebInvoke to demonstrate how to post.
| C# | mit | tlaothong/lab-swp-ws-kiatnakin,tlaothong/lab-swp-ws-kiatnakin,tlaothong/lab-swp-ws-kiatnakin |
59da22a80e9549e5ee7e7307a70e1fbc964fbc5e | LmpClient/Systems/Motd/MotdMessageHandler.cs | LmpClient/Systems/Motd/MotdMessageHandler.cs | using System.Collections.Concurrent;
using LmpClient.Base;
using LmpClient.Base.Interface;
using LmpClient.Systems.Chat;
using LmpCommon.Message.Data.Motd;
using LmpCommon.Message.Interface;
namespace LmpClient.Systems.Motd
{
public class MotdMessageHandler : SubSystem<MotdSystem>, IMessageHandler
{
p... | using LmpClient.Base;
using LmpClient.Base.Interface;
using LmpCommon.Message.Data.Motd;
using LmpCommon.Message.Interface;
using System.Collections.Concurrent;
namespace LmpClient.Systems.Motd
{
public class MotdMessageHandler : SubSystem<MotdSystem>, IMessageHandler
{
public ConcurrentQueue<IServerM... | Print MOTD in the screen only | Print MOTD in the screen only
| C# | mit | DaggerES/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer |
72aedf32a280b88aff715e1ee819f09de9ff310c | Assets/Scripts/Planet.cs | Assets/Scripts/Planet.cs | using UnityEngine;
public class Planet : MonoBehaviour {
[SerializeField]
private float _radius;
public float Radius {
get { return _radius; }
set { _radius = value; }
}
public float Permieter {
get { return 2 * Mathf.PI * Radius; }
}
public float Volume {
... | using UnityEngine;
[ExecuteInEditMode]
public class Planet : MonoBehaviour {
[SerializeField]
private float _radius;
public float Radius {
get { return _radius; }
set { _radius = value; }
}
public float Permieter {
get { return 2 * Mathf.PI * Radius; }
}
public f... | Make planet update dependent components. | Make planet update dependent components.
| C# | mit | dirty-casuals/LD38-A-Small-World |
819439edad3497839f8c3b396725609310d91391 | Battery-Commander.Web/Controllers/AdminController.cs | Battery-Commander.Web/Controllers/AdminController.cs | using BatteryCommander.Web.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.IO;
namespace BatteryCommander.Web.Controllers
{
[Authorize, ApiExplorerSettings(IgnoreApi = true)]
public class AdminController : Controller
{
// Admin Tasks:
... | using BatteryCommander.Web.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.IO;
namespace BatteryCommander.Web.Controllers
{
[Authorize, ApiExplorerSettings(IgnoreApi = true)]
public class AdminController : Controller
{
// Admin Tasks:
... | Remove logs link, never worked right | Remove logs link, never worked right
| C# | mit | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander |
fccd8e8ee7e6699520d82def971efb3e445576bd | src/Zinc.WebServices.Swashbuckle/ZincSchemaFilter.cs | src/Zinc.WebServices.Swashbuckle/ZincSchemaFilter.cs | using Newtonsoft.Json;
using Swashbuckle.Swagger;
using System;
using System.Globalization;
using System.Linq;
using System.Reflection;
using Zinc.Json;
namespace Zinc.WebServices
{
/// <summary />
public class ZincSchemaFilter : ISchemaFilter
{
/// <summary />
public void Apply( Schema sc... | using Newtonsoft.Json;
using Swashbuckle.Swagger;
using System;
using System.Globalization;
using System.Linq;
using System.Reflection;
using Zinc.Json;
namespace Zinc.WebServices
{
/// <summary />
public class ZincSchemaFilter : ISchemaFilter
{
/// <summary />
public void Apply( Schema sc... | Fix incorrect formatting of time stamps | Fix incorrect formatting of time stamps
| C# | bsd-3-clause | filipetoscano/Zinc |
878213887fc72ec4aaaf211fbd028bcd9e5e576c | Wox.Core/i18n/AvailableLanguages.cs | Wox.Core/i18n/AvailableLanguages.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Wox.Core.i18n
{
internal static class AvailableLanguages
{
public static Language English = new Language("en", "English");
public static Language Chinese = new Language("zh-cn", "中文");
publi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Wox.Core.i18n
{
internal static class AvailableLanguages
{
public static Language English = new Language("en", "English");
public static Language Chinese = new Language("zh-cn", "中文");
publi... | Change Russian to Русский for the language selector | Change Russian to Русский for the language selector
| C# | mit | qianlifeng/Wox,Wox-launcher/Wox,Wox-launcher/Wox,lances101/Wox,lances101/Wox,qianlifeng/Wox,qianlifeng/Wox |
5ff47467a3e9a1c618e1bde53a95b174be1f7d99 | NDC2015/ViewModelBase.cs | NDC2015/ViewModelBase.cs | using System.ComponentModel;
using System.Runtime.CompilerServices;
using NDC2015.Annotations;
namespace NDC2015
{
public class ViewModelBase : INotifyPropertyChanged
{
protected void Set<T>(ref T member, T value, [CallerMemberName] string propertyName = null)
{
member = value;
... | using System.ComponentModel;
using System.Runtime.CompilerServices;
using NDC2015.Annotations;
namespace NDC2015
{
public class ViewModelBase : INotifyPropertyChanged
{
protected void Set<T>(ref T member, T value, [CallerMemberName] string propertyName = null)
{
member = value;
... | Fix potential thread safety issue in viewmodelbase.cs | Fix potential thread safety issue in viewmodelbase.cs
| C# | mit | Sankra/NDC2015,Hammerstad/NDC2015 |
a9ef42c8891a7d06425de4a2627c21658b948cac | CefSharp/IDialogHandler.cs | CefSharp/IDialogHandler.cs | using System.Collections.Generic;
namespace CefSharp
{
public interface IDialogHandler
{
bool OnOpenFile(IWebBrowser browser, string title, string default_file_name, List<string> accept_types, out List<string> result);
}
}
| using System.Collections.Generic;
namespace CefSharp
{
public interface IDialogHandler
{
bool OnOpenFile(IWebBrowser browser, string title, string defaultFileName, List<string> acceptTypes, out List<string> result);
}
}
| Rename params to match convention | Rename params to match convention
| C# | bsd-3-clause | Livit/CefSharp,Haraguroicha/CefSharp,dga711/CefSharp,gregmartinhtc/CefSharp,ruisebastiao/CefSharp,yoder/CefSharp,Livit/CefSharp,ITGlobal/CefSharp,ruisebastiao/CefSharp,jamespearce2006/CefSharp,AJDev77/CefSharp,NumbersInternational/CefSharp,illfang/CefSharp,jamespearce2006/CefSharp,rover886/CefSharp,joshvera/CefSharp,il... |
95ca5ddbc0165a6fa928c570961621a490f20227 | Debugger/Utils/FileUtil.cs | Debugger/Utils/FileUtil.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using ColossalFramework.Plugins;
using ICities;
namespace ModTools
{
public static class FileUtil
{
public static List<string> ListFilesInDirectory(string path, List<string> _file... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using ColossalFramework.Plugins;
using ICities;
namespace ModTools
{
public static class FileUtil
{
public static List<string> ListFilesInDirectory(string path, List<string> _file... | Add datetime prefix to dumped file name if texture didn't have name | Add datetime prefix to dumped file name if texture didn't have name
| C# | mit | earalov/Skylines-ModTools |
74ab5cd8d1f77eefa64540a71719bf892e6c7cda | ShellHelpers.cs | ShellHelpers.cs | //using UnityEditor;
//using UnityEngine;
//using System.Collections;
using System.Diagnostics;
public class ShellHelpers {
public static Process StartProcess(string filename, string arguments) {
Process p = new Process();
p.StartInfo.Arguments = arguments;
p.StartInfo.CreateNoWindow = true;
p.StartI... | #define DEBUG_COMMANDS
//using UnityEditor;
//using UnityEngine;
//using System.Collections;
using System.Diagnostics;
public class ShellHelpers {
public static Process StartProcess(string filename, string arguments) {
#if DEBUG_COMMANDS
UnityEngine.Debug.Log("Running: " + filename + " " + arguments);
#endif
... | Add a diagnostic tool for myself. | Add a diagnostic tool for myself.
| C# | mit | MrJoy/UnityGit |
466487589acff3118a9f9475428c625bc31a4075 | src/MR.AspNet.Deps/OutputHelper.cs | src/MR.AspNet.Deps/OutputHelper.cs | using System.Collections.Generic;
namespace MR.AspNet.Deps
{
public class OutputHelper
{
private List<Element> _elements = new List<Element>();
public void Add(Element element)
{
_elements.Add(element);
}
public void Add(List<Element> elements)
{
_elements.AddRange(elements);
}
public List<... | using System.Collections.Generic;
namespace MR.AspNet.Deps
{
public class OutputHelper
{
private List<Element> _elements = new List<Element>();
public void Add(Element element)
{
_elements.Add(element);
}
public void Add(List<Element> elements)
{
_elements.AddRange(elements);
}
public List<... | Make the "type" attribute available from GenerateScript | Make the "type" attribute available from GenerateScript
| C# | mit | mrahhal/MR.AspNet.Deps,mrahhal/MR.AspNet.Deps |
9a08c25609cef05db7b375403a0b1e289e9fd638 | src/Glimpse.Server.Web/Resources/MessageHistoryResource.cs | src/Glimpse.Server.Web/Resources/MessageHistoryResource.cs | using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.Net.Http.Headers;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Glimpse.Server.Web
{
public class MessageHistoryResource : IResource
{
private readonly InMemoryStorage _... | using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.Net.Http.Headers;
namespace Glimpse.Server.Web
{
public class MessageHistoryResource : IResource
{
private readonly InMemoryStorage _store;
public MessageHistoryReso... | Update resource to handle message strings | Update resource to handle message strings
| C# | mit | mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.... |
5913e07fa2c78f58525aec30df0897eac61aede9 | InvokePostgreSqlQuery.cs | InvokePostgreSqlQuery.cs | using System.Data.Common;
using System.Management.Automation;
using Npgsql;
namespace InvokeQuery
{
[Cmdlet("Invoke", "PostgreSqlQuery", SupportsTransactions = true, SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Low)]
public class InvokePostgreSqlQuery : InvokeQueryBase
{
pr... | using Npgsql;
using System.Data.Common;
using System.Management.Automation;
namespace InvokeQuery
{
[Cmdlet("Invoke", "PostgreSqlQuery", SupportsTransactions = true, SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Low)]
public class InvokePostgreSqlQuery : InvokeQueryBase
{
pro... | Fix connection bug to PGSQL | Fix connection bug to PGSQL
When try to connect to PGSQL without custom ConnectionString parameter, you get error: "Keyword not supported: data source."
Made changes according to Npgsql documentation:
http://www.npgsql.org/doc/connection-string-parameters.html
http://www.npgsql.org/api/Npgsql.NpgsqlConnec... | C# | mit | ctigeek/InvokeQueryPowershellModule |
46b6e0a67fc615f2ef0b264ced88fb7c5f27757d | src/AppHarbor/CompressionExtensions.cs | src/AppHarbor/CompressionExtensions.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using ICSharpCode.SharpZipLib.Tar;
namespace AppHarbor
{
public static class CompressionExtensions
{
public static void ToTar(this DirectoryInfo sourceDirectory, Stream output, string[] excludedDirectoryNames)
{
var archive =... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using ICSharpCode.SharpZipLib.Tar;
namespace AppHarbor
{
public static class CompressionExtensions
{
public static void ToTar(this DirectoryInfo sourceDirectory, Stream output, string[] excludedDirectoryNames)
{
var archive =... | Write new progress bar on top of the old one | Write new progress bar on top of the old one
| C# | mit | appharbor/appharbor-cli |
a3ebd246f7f6a2a0895fe7fa997f578ae82ceba5 | Program.cs | Program.cs | using System;
using System.IO;
namespace Hangman {
public class Hangman {
public static void Main(string[] args) {
var wordGenerator = new RandomWord();
var word = wordGenerator.Word();
var game = new Game(word);
var width = Math.Min(81, Console.WindowWidth);
string titleText;
... | using System;
using System.IO;
namespace Hangman {
public class Hangman {
public static void Main(string[] args) {
var wordGenerator = new RandomWord();
var word = wordGenerator.Word();
var game = new Game(word);
var width = Math.Min(81, Console.WindowWidth);
string titleText;
... | Clear console before game starts | Clear console before game starts
| C# | unlicense | 12joan/hangman |
1513a68353c2a573201cd5057bd1ba23e5e07a65 | osu!StreamCompanion/Code/Misc/FileChecker.cs | osu!StreamCompanion/Code/Misc/FileChecker.cs | using System;
using System.IO;
using System.Windows.Forms;
namespace osu_StreamCompanion.Code.Misc
{
class FileChecker
{
private string[] _requiredFiles = new[] { "SQLite.Interop.dll", "System.Data.SQLite.dll" };
private string caption = "StreamCompanion Error";
private string errorMes... | using System;
using System.IO;
using System.Windows.Forms;
namespace osu_StreamCompanion.Code.Misc
{
class FileChecker
{
private string[] _requiredFiles = new string[0];
private string caption = "StreamCompanion Error";
private string errorMessage =
"It seems that you are m... | Remove dlls from startup check. | Remove dlls from startup check.
these are now embedded in exe | C# | mit | Piotrekol/StreamCompanion,Piotrekol/StreamCompanion |
62d0036c819c0516005f9b5b3938d359e0cac987 | 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... | Fix using private constructor on MessagePack object | Fix using private constructor on MessagePack object
| C# | mit | UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu-new,peppy/osu,UselessToucan/osu,UselessToucan/osu,peppy/osu,smoogipooo/osu,NeoAdonis/osu |
38050e8c3d202fc3262c25dd21cb06a578701e66 | examples/Protractor.Samples/Basic/BasicTests.cs | examples/Protractor.Samples/Basic/BasicTests.cs | using System;
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.PhantomJS;
using OpenQA.Selenium.Chrome;
namespace Protractor.Samples.Basic
{
[TestFixture]
public class BasicTests
{
private IWebDriver driver;
[SetUp]
public void SetUp()
{
// U... | using System;
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.PhantomJS;
using OpenQA.Selenium.Chrome;
namespace Protractor.Samples.Basic
{
[TestFixture]
public class BasicTests
{
private IWebDriver driver;
[SetUp]
public void SetUp()
{
// U... | Fix Basic tests (angularjs.org site has been updated) | Fix Basic tests
(angularjs.org site has been updated)
| C# | mit | sergueik/protractor-net,JonWang0/protractor-net,bbaia/protractor-net |
a2217e4874ebda61dca1ed1e276107714bad73bf | src/Stripe/Infrastructure/SourceConverter.cs | src/Stripe/Infrastructure/SourceConverter.cs | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Stripe.Infrastructure
{
internal class SourceConverter : JsonConverter
{
public override bool CanConvert(Type objectType)
{
throw new NotImplementedException();
}
... | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Stripe.Infrastructure
{
internal class SourceConverter : JsonConverter
{
public override bool CanConvert(Type objectType)
{
throw new NotImplementedException();
}
... | Fix ios throwing NotImplementedException when deserializing StripeCharge | Fix ios throwing NotImplementedException when deserializing StripeCharge
| C# | apache-2.0 | richardlawley/stripe.net,stripe/stripe-dotnet,duckwaffle/stripe.net,brentdavid2008/stripe.net |
edd04a448a38f3f389ddaa241ebd50e7802e9ab0 | table.cs | table.cs | using System;
namespace Hangman {
public class Table {
public int Width;
public int Spacing;
public Row[] Rows;
public Table(int width, int spacing, Row[] rows) {
Width = width;
Spacing = spacing;
Rows = rows;
}
public string Draw() {
return "Hello World";
}
}
... | using System;
using System.Collections.Generic;
using System.Text;
namespace Hangman {
public class Table {
public int Width;
public int Spacing;
public Row[] Rows;
public Table(int width, int spacing, Row[] rows) {
Width = width;
Spacing = spacing;
Rows = rows;
}
public s... | Print the texts of each row | Print the texts of each row
| C# | unlicense | 12joan/hangman |
c709932bf3a612531619a67e43f27ce479f2edb6 | MotivateMe/MotivateMe.Web/Global.asax.cs | MotivateMe/MotivateMe.Web/Global.asax.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace MotivateMe.Web
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace MotivateMe.Web
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
... | Make Razor the only ViewEngine | Make Razor the only ViewEngine
| C# | mit | pepinho24/MotivateMe,pepinho24/MotivateMe |
c96692d7325f163d38d686b874977483fd62d0ba | Xwt/Xwt.Backends/IMarkdownViewBackend.cs | Xwt/Xwt.Backends/IMarkdownViewBackend.cs | //
// IMarkdownViewBackend.cs
//
// Author:
// Jérémie Laval <jeremie.laval@xamarin.com>
//
// Copyright (c) 2012 Xamarin, Inc.
using System;
namespace Xwt.Backends
{
[Flags]
enum MarkdownInlineStyle
{
Italic,
Bold,
Monospace
}
public interface IMarkdownViewBackend : IWidgetBackend
{
object Create... | //
// IMarkdownViewBackend.cs
//
// Author:
// Jérémie Laval <jeremie.laval@xamarin.com>
//
// Copyright (c) 2012 Xamarin, Inc.
using System;
namespace Xwt.Backends
{
[Flags]
enum MarkdownInlineStyle
{
Italic,
Bold,
Monospace
}
public interface IMarkdownViewBackend : IWidgetBackend
{
object Create... | Add missing EmitCloseList to backend | [MarkdownView] Add missing EmitCloseList to backend
| C# | mit | akrisiun/xwt,mminns/xwt,hamekoz/xwt,mminns/xwt,residuum/xwt,lytico/xwt,mono/xwt,directhex/xwt,TheBrainTech/xwt,antmicro/xwt,cra0zy/xwt,iainx/xwt,hwthomas/xwt,steffenWi/xwt,sevoku/xwt |
e191b4e5a7d64f776e998d559c30c4782dc88a60 | Kooboo.CMS/Kooboo.CMS.ModuleArea/Areas/Empty/ModuleAction.cs | Kooboo.CMS/Kooboo.CMS.ModuleArea/Areas/Empty/ModuleAction.cs | #region License
//
// Copyright (c) 2013, Kooboo team
//
// Licensed under the BSD License
// See the file LICENSE.txt for details.
//
#endregion
using Kooboo.CMS.Sites.Extension.ModuleArea;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using Kooboo.CMS.... | #region License
//
// Copyright (c) 2013, Kooboo team
//
// Licensed under the BSD License
// See the file LICENSE.txt for details.
//
#endregion
using Kooboo.CMS.Sites.Extension.ModuleArea;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using Kooboo.CMS.... | Update the Empty module template. | Update the Empty module template.
| C# | bsd-3-clause | techwareone/Kooboo-CMS,jtm789/CMS,andyshao/CMS,andyshao/CMS,jtm789/CMS,andyshao/CMS,lingxyd/CMS,jtm789/CMS,Kooboo/CMS,Kooboo/CMS,lingxyd/CMS,techwareone/Kooboo-CMS,lingxyd/CMS,techwareone/Kooboo-CMS,Kooboo/CMS |
17d485e3c8d5b192c83f3df2cad1c6ff0d4f9f1f | MultiMiner.Blockchain/ApiContext.cs | MultiMiner.Blockchain/ApiContext.cs | using MultiMiner.Blockchain.Data;
using MultiMiner.ExchangeApi;
using MultiMiner.ExchangeApi.Data;
using MultiMiner.Utility.Net;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
namespace MultiMiner.Blockchain
{
public class ApiContext : IApiContext
{... | using MultiMiner.Blockchain.Data;
using MultiMiner.ExchangeApi;
using MultiMiner.ExchangeApi.Data;
using MultiMiner.Utility.Net;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
namespace MultiMiner.Blockchain
{
public class ApiContext : IApiContext
{... | Disable SSL (for now) - attempting to diagnose SSL/TLS error | Disable SSL (for now) - attempting to diagnose SSL/TLS error
| C# | mit | IWBWbiz/MultiMiner,IWBWbiz/MultiMiner,nwoolls/MultiMiner,nwoolls/MultiMiner |
7e852e9865f69338a735497466e0b7d6151eddb9 | source/OpenMagic/Extensions/LazyExtensions.cs | source/OpenMagic/Extensions/LazyExtensions.cs | using System;
namespace OpenMagic.Extensions
{
public static class LazyExtensions
{
public static void DisposeValueIfCreated<T>(Lazy<T> obj) where T : IDisposable
{
if (obj.IsValueCreated)
{
obj.Value.Dispose();
}
}
}
} | using System;
namespace OpenMagic.Extensions
{
public static class LazyExtensions
{
public static void DisposeValueIfCreated<T>(this Lazy<T> obj) where T : IDisposable
{
if (obj.IsValueCreated)
{
obj.Value.Dispose();
}
}
}
} | Fix DisposeValueIfCreated to be extension method | Fix DisposeValueIfCreated to be extension method
| C# | mit | OpenMagic/OpenMagic |
a7864c36b2e882680b5aef8f7c9b8840271873c7 | LogicalShift.Reason.Tests/Truthiness.cs | LogicalShift.Reason.Tests/Truthiness.cs | using LogicalShift.Reason.Api;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
namespace LogicalShift.Reason.Tests
{
[TestFixture]
public class Truthiness
{
[Test]
public void TrueIsTrue()
{
Assert.IsTrue(Equals(Literal.True(), ... | using LogicalShift.Reason.Api;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
namespace LogicalShift.Reason.Tests
{
[TestFixture]
public class Truthiness
{
[Test]
public void TrueIsTrue()
{
Assert.IsTrue(Equals(Literal.True(), ... | Test that 'true' unifies correctly | Test that 'true' unifies correctly
| C# | apache-2.0 | Logicalshift/Reason |
91df543bb4226115565dcf56e943657049f6ea1d | Mindscape.Raygun4Net.WebApi/RaygunWebApiDelegatingHandler.cs | Mindscape.Raygun4Net.WebApi/RaygunWebApiDelegatingHandler.cs | using System.Net.Http;
namespace Mindscape.Raygun4Net.WebApi
{
public class RaygunWebApiDelegatingHandler : DelegatingHandler
{
public const string RequestBodyKey = "Raygun.RequestBody";
protected override async System.Threading.Tasks.Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, System... | using System.Linq;
using System.Net.Http;
namespace Mindscape.Raygun4Net.WebApi
{
public class RaygunWebApiDelegatingHandler : DelegatingHandler
{
public const string RequestBodyKey = "Raygun.RequestBody";
protected override async System.Threading.Tasks.Task<HttpResponseMessage> SendAsync(HttpRequestMess... | Trim Request Body to 4096 characters if it is longer. | Trim Request Body to 4096 characters if it is longer.
| C# | mit | tdiehl/raygun4net,ddunkin/raygun4net,MindscapeHQ/raygun4net,articulate/raygun4net,nelsonsar/raygun4net,tdiehl/raygun4net,articulate/raygun4net,MindscapeHQ/raygun4net,nelsonsar/raygun4net,ddunkin/raygun4net,MindscapeHQ/raygun4net |
ad78b2aa4e182770671a101209173240c6e57422 | Tests/IntegrationTests.Shared/StandAloneObjectTests.cs | Tests/IntegrationTests.Shared/StandAloneObjectTests.cs | using NUnit.Framework;
using RealmNet;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace IntegrationTests.Shared
{
[TestFixture]
public class StandAloneObjectTests
{
private Person _person;
[SetUp]
public void SetUp()
... | using NUnit.Framework;
using RealmNet;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace IntegrationTests.Shared
{
[TestFixture]
public class StandAloneObjectTests
{
private Person _person;
[SetUp]
public void SetUp()
... | Fix test to run with the NUnitLite in our Integration Tests on IOS | Fix test to run with the NUnitLite in our Integration Tests on IOS
| C# | apache-2.0 | Shaddix/realm-dotnet,realm/realm-dotnet,realm/realm-dotnet,Shaddix/realm-dotnet,Shaddix/realm-dotnet,realm/realm-dotnet,Shaddix/realm-dotnet |
683e1f5be648ba18e6727af0f917e0e15493dadb | src/Core2D.Wpf/Importers/FileImageImporter.cs | src/Core2D.Wpf/Importers/FileImageImporter.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Threading.Tasks;
using Core2D.Editor;
using Core2D.Interfaces;
using Core2D.Wpf.Windows;
using Microsoft.Win32;
namespace Core2D.Wpf.Im... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Threading.Tasks;
using Core2D.Editor;
using Core2D.Interfaces;
using Core2D.Wpf.Windows;
using Microsoft.Win32;
namespace Core2D.Wpf.Im... | Move OpenFileDialog initialization inside try block | Move OpenFileDialog initialization inside try block
| C# | mit | wieslawsoltes/Core2D,Core2D/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D |
38b5066a32278de2dd8cb63a850929d86a89a8dd | src/Huxley/Models/DelaysResponse.cs | src/Huxley/Models/DelaysResponse.cs | using System;
namespace Huxley.Models {
public class DelaysResponse {
public DateTime GeneratedAt { get; set; }
public string LocationName { get; set; }
public string Crs { get; set; }
public string FilterLocationName { get; set; }
// Yes this is a typo but it match... | /*
Huxley - a JSON proxy for the UK National Rail Live Departure Board SOAP API
Copyright (C) 2015 James Singleton
* http://huxley.unop.uk
* https://github.com/jpsingleton/Huxley
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License a... | Add license to new file | Add license to new file
| C# | agpl-3.0 | Newsworthy/Huxley,jpsingleton/Huxley,Newsworthy/Huxley,jpsingleton/Huxley,mjanthony/Huxley,mjanthony/Huxley |
94e46996d280e1803669dad3e9385037fd73c3f3 | NinjaHive.WebApp/Controllers/SkillsController.cs | NinjaHive.WebApp/Controllers/SkillsController.cs | using System;
using System.Web.Mvc;
using NinjaHive.Contract.Commands;
using NinjaHive.Contract.DTOs;
using NinjaHive.Contract.Queries;
using NinjaHive.Core;
using NinjaHive.WebApp.Services;
namespace NinjaHive.WebApp.Controllers
{
public class SkillsController : Controller
{
private readonly IQueryHa... | using System;
using System.Web.Mvc;
using NinjaHive.Contract.Commands;
using NinjaHive.Contract.DTOs;
using NinjaHive.Contract.Queries;
using NinjaHive.Core;
using NinjaHive.WebApp.Services;
namespace NinjaHive.WebApp.Controllers
{
public class SkillsController : Controller
{
private readonly IQueryHa... | Update SkillController.cs - add "Edit" action - add "GetSkillByIdQueryHandler" | Update SkillController.cs
- add "Edit" action
- add "GetSkillByIdQueryHandler"
| C# | apache-2.0 | NinjaVault/NinjaHive,NinjaVault/NinjaHive |
026078645330107b0d07166677e9212aa79fcac6 | Overrides.cs | Overrides.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ChamberLib
{
public class Overrides
{
public LightingData? Lighting;
public IMaterial Material;
public IShaderProgram ShaderProgram;
public IShaderStage VertexShader;
public ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ChamberLib
{
public class Overrides
{
public LightingData? Lighting;
public IMaterial Material;
public IShaderProgram ShaderProgram;
public IShaderStage VertexShader;
public ... | Add methods to get the overriden values, or use a default value if not overridden. Make them extension methods so that we can call them on null objects. | Add methods to get the overriden values, or use a default value if not overridden. Make them extension methods so that we can call them on null objects.
| C# | lgpl-2.1 | izrik/ChamberLib,izrik/ChamberLib,izrik/ChamberLib |
af09ed1b7fe648930f4bc084e2dd00b7307cf1e1 | osu.Game.Rulesets.Osu.Tests/TestSceneGameplayCursor.cs | osu.Game.Rulesets.Osu.Tests/TestSceneGameplayCursor.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Osu.UI.Curso... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Testing.Input;
u... | Make cursor test scene more automated | Make cursor test scene more automated
| C# | mit | NeoAdonis/osu,EVAST9919/osu,peppy/osu-new,smoogipoo/osu,UselessToucan/osu,EVAST9919/osu,johnneijzen/osu,smoogipoo/osu,ppy/osu,peppy/osu,ZLima12/osu,ZLima12/osu,ppy/osu,peppy/osu,peppy/osu,smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,2yangk23/osu,johnneijzen/osu,UselessToucan/osu,NeoAdonis/osu,2y... |
c7407e2b358551ce3448fd6af2c420a81cd8f123 | CopyAsPathCommand/CopyAsPathCommandPackage.cs | CopyAsPathCommand/CopyAsPathCommandPackage.cs | using System;
using System.Runtime.InteropServices;
using EnvDTE;
using EnvDTE80;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop;
namespace CopyAsPathCommand
{
[PackageRegistration(UseManagedResourcesOnly = true)]
[ProvideMenuResource("Menus.ctmenu", 1)]
[InstalledProductRe... | using System;
using System.Runtime.InteropServices;
using EnvDTE;
using EnvDTE80;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop;
namespace CopyAsPathCommand
{
[PackageRegistration(UseManagedResourcesOnly = true)]
[ProvideMenuResource("Menus.ctmenu", 1)]
[InstalledProductRe... | Add Version string to package for support for yaml script | Add Version string to package for support for yaml script
| C# | mit | AlexEyler/VSCopyAsPathCommand |
e15a00dec4bc9d0f412bb4fa362162549744be1a | Mappy/ExtensionMethods.cs | Mappy/ExtensionMethods.cs | namespace Mappy
{
using System;
using System.ComponentModel;
using System.Reactive.Linq;
using System.Reactive.Subjects;
public static class ExtensionMethods
{
public static IObservable<TField> PropertyAsObservable<TSource, TField>(this TSource source, Func<TSource, TField> ac... | namespace Mappy
{
using System;
using System.ComponentModel;
using System.Reactive.Linq;
using System.Reactive.Subjects;
public static class ExtensionMethods
{
public static BehaviorSubject<TField> PropertyAsObservable<TSource, TField>(this TSource source, Func<TSource, TField... | Change PropertyAsObservable to return a BehaviorSubject | Change PropertyAsObservable to return a BehaviorSubject
This is basically a revert to the previous implementation,
but with a concrete return type.
| C# | mit | MHeasell/Mappy,MHeasell/Mappy |
254673e69e7a8ae7be63cd4470cd756fb12d401c | osu.Framework/Platform/FlushingStream.cs | osu.Framework/Platform/FlushingStream.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.IO;
namespace osu.Framework.Platform
{
/// <summary>
/// A <see cref="FileStream"/> which always flushes to disk on disposal.
/// </summary>
... | // 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.IO;
namespace osu.Framework.Platform
{
/// <summary>
/// A <see cref="FileStream"/> which always flushes to disk on disposal.
/// </summary>
... | Use flag instead of `StreamWriter` changes | Use flag instead of `StreamWriter` changes
| C# | mit | ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework |
7ec9ba69c836de6e5ca3fb2198c92a29c8d58885 | src/OAuth.net/Properties/AssemblyInfo.cs | src/OAuth.net/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("OA... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("OA... | Update the assembly information to add the right owners to the package. | Update the assembly information to add the right owners to the package.
| C# | mit | AlexGhiondea/OAuth.net,AlexGhiondea/OAuth.net |
9389376fe76963d86dcbdfb4ff610eff0605a96b | SemVer.Tests/LooseMode.cs | SemVer.Tests/LooseMode.cs | using System;
using Xunit;
using Xunit.Extensions;
namespace SemVer.Tests
{
public class LooseMode
{
[Theory]
[InlineData("=1.2.3", "1.2.3")]
[InlineData("v 1.2.3", "1.2.3")]
[InlineData("1.2.3alpha", "1.2.3-alpha")]
// SemVer spec is ambiguous about whether 01 in a prer... | using System;
using Xunit;
using Xunit.Extensions;
namespace SemVer.Tests
{
public class LooseMode
{
[Theory]
[InlineData("=1.2.3", "1.2.3")]
[InlineData("v 1.2.3", "1.2.3")]
[InlineData("1.2.3alpha", "1.2.3-alpha")]
// SemVer spec is ambiguous about whether 01 in a prer... | Update tests for loose mode | Update tests for loose mode
| C# | mit | adamreeve/semver.net |
a6a05d09e4562ca809700bd59d4e756013a65ee5 | Sharper.C.Enumerable/Data/EnumerableModule.cs | Sharper.C.Enumerable/Data/EnumerableModule.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Sharper.C.Control;
namespace Sharper.C.Data
{
using static TrampolineModule;
public static class EnumerableModule
{
public static B FoldLeft<A, B>(this IEnumerable<A> e, B x, Func<B, A, B> f)
=>
e.Aggregate(x, f);
public s... | using System;
using System.Collections.Generic;
using System.Linq;
using Sharper.C.Control;
namespace Sharper.C.Data
{
using static TrampolineModule;
public static class EnumerableModule
{
public static B FoldLeft<A, B>(this IEnumerable<A> e, B x, Func<B, A, B> f)
=>
e.Aggregate(x, f);
public s... | Return trampoline from lazy function | Return trampoline from lazy function
| C# | mit | sharper-library/Sharper.C.Enumerable |
92d9071574013bce0a16b70b9431b6c6710c5d5b | Reflection/Editor/Extensions.cs | Reflection/Editor/Extensions.cs | using System;
using System.CodeDom;
using System.Linq;
using Microsoft.CSharp;
namespace Ludiq.Reflection.Editor
{
public static class Extensions
{
// Used to print pretty type names for primitives
private static CSharpCodeProvider csharp = new CSharpCodeProvider();
/// <summary>
/// Returns the name for t... | using System;
using System.CodeDom;
using System.Linq;
using System.Text.RegularExpressions;
using Microsoft.CSharp;
namespace Ludiq.Reflection.Editor
{
public static class Extensions
{
// Used to print pretty type names for primitives
private static CSharpCodeProvider csharp = new CSharpCodeProvider();
/// ... | Fix type name prettyfying for generics | Fix type name prettyfying for generics
| C# | mit | lazlo-bonin/unity-reflection,lazlo-bonin/ludiq-reflection |
abcbc45761e168c0ddbbae2da191319c05c5caa7 | Source/AuthenticationServer/Properties/AssemblyInfo.cs | Source/AuthenticationServer/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("Affecto Authentication Server")]
[assembly: AssemblyProduct("Affecto Authentication Server")]
[assembly: AssemblyCompany("Affecto")]
[assembly: AssemblyVersion("2.1.0.0")]
[assembly: AssemblyFileVersion("2.1.0.0")]
[assembly: A... | using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("Affecto Authentication Server")]
[assembly: AssemblyProduct("Affecto Authentication Server")]
[assembly: AssemblyCompany("Affecto")]
[assembly: AssemblyVersion("2.1.0.0")]
[assembly: AssemblyFileVersion("2.1.0.0")]
[assembly: A... | Raise authentication server prerelease version. | Raise authentication server prerelease version.
| C# | mit | affecto/dotnet-AuthenticationServer |
93caa2db629e97e6c11f78e152e8ddc28de87d34 | BloomFilter/ExampleUsage.cs | BloomFilter/ExampleUsage.cs | using System.Collections.Generic;
using System.Security.Cryptography;
namespace BloomFilter
{
class ExampleUsage
{
static void Main(string[] args)
{
//standard usage using SHA1 hashing
using (var bf = new BloomFilter<string>(MaxItems: 1000, FalsePositiveProbability: .00... | using System.Collections.Generic;
using System.Security.Cryptography;
namespace BloomFilter
{
class ExampleUsage
{
static void Main(string[] args)
{
//standard usage using SHA1 hashing
using (var bf = new BloomFilter<string>(MaxItems: 1000, FalsePositiveProbability: .00... | Add FNV1a-32 description to example usage | Add FNV1a-32 description to example usage
| C# | mit | bhannan/csharp-bloom-filter |
3ae1a708a7d752fc17d4384ca2a1d122f21806e1 | AboutDialog.WPF/DesignVersionable.cs | AboutDialog.WPF/DesignVersionable.cs | using System;
using System.Collections.Generic;
using System.Windows.Media.Imaging;
using KyleHughes.AboutDialog.WPF.Properties;
namespace KyleHughes.AboutDialog.WPF
{
/// <summary>
/// A class for extracting data from an Assembly.
/// </summary>
internal sealed class DesignVersionable : IVersiona... | using System;
using System.Collections.Generic;
using System.Windows.Media.Imaging;
using KyleHughes.AboutDialog.WPF.Properties;
namespace KyleHughes.AboutDialog.WPF
{
/// <summary>
/// A class for extracting data from an Assembly.
/// </summary>
internal sealed class DesignVersionable : IVersiona... | Add example links to the design-time datacontext | Add example links to the design-time datacontext
| C# | mit | indigotock/AboutDialog.WPF |
480244b4b4d50abb6632ec13abee15a48ca3d95c | src/Data/Settings.cs | src/Data/Settings.cs | using System;
using Rooijakkers.MeditationTimer.Data.Contracts;
namespace Rooijakkers.MeditationTimer.Data
{
/// <summary>
/// Stores settings data in local settings storage
/// </summary>
public class Settings : ISettings
{
private const string TIME_TO_GET_READY_IN_SECONDS_STORAGE = "Time... | using System;
using Rooijakkers.MeditationTimer.Data.Contracts;
namespace Rooijakkers.MeditationTimer.Data
{
/// <summary>
/// Stores settings data in local settings storage
/// </summary>
public class Settings : ISettings
{
private const string TIME_TO_GET_READY_IN_SECONDS_STORAGE = "Time... | Fix bug: properly create time span from seconds (not mod 60) | Fix bug: properly create time span from seconds (not mod 60)
| C# | mit | erooijak/MeditationTimer |
c13fe7f662a66767591a6a2f2d3adea1414fe9b4 | NModbus4/Properties/AssemblyInfo.cs | NModbus4/Properties/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("NModbus4")]
[assembly: AssemblyProduct("NModbus4")]
[assembly: AssemblyCompany("Maxwe11")]
[assembly: AssemblyCopyright("Licensed under MIT License.")]
[assembly: Assem... | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("NModbus4")]
[assembly: AssemblyProduct("NModbus4")]
[assembly: AssemblyCompany("Maxwe11")]
[assembly: AssemblyCopyright("Licensed under MIT License.")]
[assembly: Assem... | Prepare for next development iteration | Prepare for next development iteration
| C# | mit | richardlawley/NModbus4,NModbus/NModbus |
88efa3d83ef3bc6dd5d3bd99f6130339fe13b2a2 | setup.cake | setup.cake | #load nuget:https://www.myget.org/F/cake-contrib/api/v2?package=Cake.Recipe&prerelease
Environment.SetVariableNames();
BuildParameters.SetParameters(context: Context,
buildSystem: BuildSystem,
sourceDirectoryPath: "./",
title: "Xer.Cq... | #load nuget:https://www.myget.org/F/cake-contrib/api/v2?package=Cake.Recipe&prerelease
Environment.SetVariableNames();
BuildParameters.SetParameters(context: Context,
buildSystem: BuildSystem,
sourceDirectoryPath: "./",
title: "Xer.Cq... | Use dotnet core run task | Use dotnet core run task
| C# | mit | jeyjeyemem/Xer.Cqrs |
21c5d7deceb2fca56bd5343c15e50684ab3cc442 | src/Bakery/Security/RandomExtensions.cs | src/Bakery/Security/RandomExtensions.cs | namespace Bakery.Security
{
using System;
public static class RandomExtensions
{
public static Byte[] GetBytes(this IRandom random, Int32 count)
{
if (count <= 0)
throw new ArgumentOutOfRangeException(nameof(count));
var buffer = new Byte[count];
for (var i = 0; i < count; i++)
... | namespace Bakery.Security
{
using System;
public static class RandomExtensions
{
public static Byte[] GetBytes(this IRandom random, Int32 count)
{
if (count <= 0)
throw new ArgumentOutOfRangeException(nameof(count));
var buffer = new Byte[count];
for (var i = 0; i < count; i++)
... | Add an IRandom.GetDigit() extension method, which returns a string between '0' and '9'. | Add an IRandom.GetDigit() extension method, which returns a string between '0' and '9'.
| C# | mit | brendanjbaker/Bakery |
14f2a639083039339fe40bc593d84f1adcbe142c | src/Channels/Properties/AssemblyInfo.cs | src/Channels/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ch... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ch... | Enable testing of internal functionality, to allow tests of AsyncBarrier | Enable testing of internal functionality, to allow tests of AsyncBarrier
| C# | mit | nlkl/Channels |
e260727db6db3a291aa520774a451c625daabc2b | src/SmugMugMetadataRetriever/Program.cs | src/SmugMugMetadataRetriever/Program.cs | // Copyright (c) Alex Ghiondea. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using SmugMug.Shared.Descriptors;
using SmugMug.v2.Authentication;
using SmugMugShared;
using System.Collections.Generic;
using System.Diagnostics;
namespace Smug... | // Copyright (c) Alex Ghiondea. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using SmugMug.Shared.Descriptors;
using SmugMug.v2.Authentication;
using SmugMugShared;
using System.Collections.Generic;
using System.Diagnostics;
namespace Smug... | Create a way for users to specify the initial uris to scan. | Create a way for users to specify the initial uris to scan.
| C# | mit | AlexGhiondea/SmugMug.NET |
4876748a6ac4a7cbd481cb560a014d335c2b7b5b | Modix/Modules/FunModule.cs | Modix/Modules/FunModule.cs | using System;
using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using Serilog;
namespace Modix.Modules
{
[Name("Fun"), Summary("A bunch of miscellaneous, fun commands")]
public class FunModule : ModuleBase
{
[Command("jumbo"), Summary("Jum... | using System;
using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using Serilog;
namespace Modix.Modules
{
[Name("Fun"), Summary("A bunch of miscellaneous, fun commands")]
public class FunModule : ModuleBase
{
[Command("jumbo"), Summary("Jum... | Use out var in jumbo command | Use out var in jumbo command
| C# | mit | mariocatch/MODiX,mariocatch/MODiX,mariocatch/MODiX,mariocatch/MODiX |
383a18f5711572f17e7bcae3dd2658cd2ccd7c39 | Build/Program.cs | Build/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using Cake.Core;
using Cake.Core.Configuration;
using Cake.Frosting;
using Cake.NuGet;
public class Program : IFrostingStartup
{
public static int Main(string[] args)
{
// Create the host.
var host = new CakeHostBuil... | using System;
using System.Collections.Generic;
using System.IO;
using Cake.Core;
using Cake.Core.Configuration;
using Cake.Frosting;
using Cake.NuGet;
public class Program : IFrostingStartup
{
public static int Main(string[] args)
{
// Create the host.
var host = new CakeHostBuil... | Revert to older version of GitVersion | Revert to older version of GitVersion | C# | mit | dnnsoftware/Dnn.Platform,mitchelsellers/Dnn.Platform,valadas/Dnn.Platform,bdukes/Dnn.Platform,nvisionative/Dnn.Platform,nvisionative/Dnn.Platform,mitchelsellers/Dnn.Platform,mitchelsellers/Dnn.Platform,mitchelsellers/Dnn.Platform,dnnsoftware/Dnn.Platform,dnnsoftware/Dnn.Platform,valadas/Dnn.Platform,mitchelsellers/Dnn.... |
17796dc1e2a0fd1582531dac2f07d3c6d589a60a | src/Aggregates.NET/Extensions/BusExtensions.cs | src/Aggregates.NET/Extensions/BusExtensions.cs | using Aggregates.Internal;
using NServiceBus;
using NServiceBus.Unicast;
using NServiceBus.Unicast.Messages;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Aggregates.Extensions
{
public static class BusExtensions
{
public ... | using Aggregates.Internal;
using NServiceBus;
using NServiceBus.Unicast;
using NServiceBus.Unicast.Messages;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Aggregates.Extensions
{
public static class BusExtensions
{
public ... | Add more IHandleContext extension methods | Add more IHandleContext extension methods
| C# | mit | volak/Aggregates.NET,volak/Aggregates.NET |
508f357137d043b193da5aee058609fac344a126 | src/NUnitTestDemo/NUnitTestDemo/SimpleTests.cs | src/NUnitTestDemo/NUnitTestDemo/SimpleTests.cs | using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
namespace NUnitTestDemo
{
public class SimpleTests
{
[Test]
public void TestSucceeds()
{
Assert.That(2 + 2, Is.EqualTo(4));
}
[Test, ExpectedException(typeof(Applicati... | using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
namespace NUnitTestDemo
{
public class SimpleTests
{
[Test]
public void TestSucceeds()
{
Assert.That(2 + 2, Is.EqualTo(4));
}
[Test]
public void TestSucceeds_M... | Add test showing success message | Add test showing success message | C# | mit | nunit/nunit3-vs-adapter,nunit/nunit-vs-adapter |
53f8a0404db6575ccd5a4e017b78c194623ce123 | src/StrangerData/Utils/RandomValueGenerator.cs | src/StrangerData/Utils/RandomValueGenerator.cs | using System;
namespace StrangerData.Utils
{
internal static class RandomValues
{
public static object ForColumn(TableColumnInfo columnInfo)
{
switch (columnInfo.ColumnType)
{
case ColumnType.String:
// generates a random string
... | using System;
namespace StrangerData.Utils
{
internal static class RandomValues
{
public static object ForColumn(TableColumnInfo columnInfo)
{
try
{
return GenerateForColumn(columnInfo);
}
catch (Exception ex)
{
... | Add error handling generating random values to inform column name and type | Add error handling generating random values to inform column name and type
| C# | mit | stone-pagamentos/StrangerData |
fbfadf5cf46f1e1a1e1fedf9a94655bde1190dcf | src/Stranne.VasttrafikNET/Models/Coordinate.cs | src/Stranne.VasttrafikNET/Models/Coordinate.cs | namespace Stranne.VasttrafikNET.Models
{
/// <summary>
/// Describes a coordinate in WGS84 decimal
/// </summary>
public class Coordinate
{
/// <summary>
/// Latitude in WGS84 decimal form
/// </summary>
public double Latitude { get; set; }
/// <summary>
... | namespace Stranne.VasttrafikNET.Models
{
/// <summary>
/// Describes a coordinate in WGS84 decimal
/// </summary>
public class Coordinate
{
/// <summary>
/// Latitude in WGS84 decimal form
/// </summary>
public double Latitude { get; set; }
/// <summary>
... | Add constructor with parameters for coordinate | Add constructor with parameters for coordinate
Make it possible to create a defined coordinate with less code. | C# | mit | stranne/Vasttrafik.NET,stranne/Vasttrafik.NET |
de87d4771951b1fe9dd8634ec0dbdca5351c5cbf | Rock.Messaging/Routing/AppDomainTypeLocator.cs | Rock.Messaging/Routing/AppDomainTypeLocator.cs | using System;
using System.Linq;
namespace Rock.Messaging.Routing
{
public class AppDomainTypeLocator : ITypeLocator
{
private readonly IMessageParser _messageParser;
private readonly AppDomain _appDomain;
public AppDomainTypeLocator(IMessageParser messageParser, AppDomain appDomain =... | using System;
using System.Linq;
using Rock.Reflection;
namespace Rock.Messaging.Routing
{
public class AppDomainTypeLocator : ITypeLocator
{
private readonly IMessageParser _messageParser;
private readonly AppDomain _appDomain;
public AppDomainTypeLocator(IMessageParser messageParser... | Call GetTypesSafely extension method instead of GetTypes method. | Call GetTypesSafely extension method instead of GetTypes method.
| C# | mit | RockFramework/Rock.Messaging,bfriesen/Rock.Messaging,peteraritchie/Rock.Messaging |
6eeef8a86663fd5a1c13eb122f1b825a81c6f4d4 | BTCPayServer/Filters/XFrameOptionsAttribute.cs | BTCPayServer/Filters/XFrameOptionsAttribute.cs | using Microsoft.AspNetCore.Mvc.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace BTCPayServer.Filters
{
public class XFrameOptionsAttribute : Attribute, IActionFilter
{
public XFrameOptionsAttribute(string value)
{
V... | using Microsoft.AspNetCore.Mvc.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace BTCPayServer.Filters
{
public class XFrameOptionsAttribute : Attribute, IActionFilter
{
public XFrameOptionsAttribute(string value)
{
V... | Remove XFrame on the checkout page | Remove XFrame on the checkout page
| C# | mit | btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver |
2f27b1677223bf3dec6dadbcbff3417e7811d06a | Ao3tracksync/Models/Work.cs | Ao3tracksync/Models/Work.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.... | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.... | Use ? instead of Nullable | Use ? instead of Nullable
| C# | apache-2.0 | wench/Ao3-Tracker,wench/Ao3-Tracker,wench/Ao3-Tracker,wench/Ao3-Tracker |
23e243a1647339dfa5dc1cf0e04347da9f471d7d | JustSaying.TestingFramework/Patiently.cs | JustSaying.TestingFramework/Patiently.cs | using System;
using System.Threading;
using NUnit.Framework;
namespace JustSaying.TestingFramework
{
public static class Patiently
{
public static void VerifyExpectation(Action expression)
{
VerifyExpectation(expression, 5.Seconds());
}
public static v... | using System;
using System.Threading;
using NUnit.Framework;
namespace JustSaying.TestingFramework
{
public static class Patiently
{
public static void VerifyExpectation(Action expression)
{
VerifyExpectation(expression, 5.Seconds());
}
public static v... | Revert "Increase the maximum time we wait for long running tests from 5 to 10." | Revert "Increase the maximum time we wait for long running tests from 5 to 10."
This reverts commit 65ad52c26cbdee036e616b61263c214abf3b8a27.
| C# | apache-2.0 | eric-davis/JustSaying,Intelliflo/JustSaying,Intelliflo/JustSaying |
4e7f28f365132c5db52e6ff32bf73c4cf34f6459 | MediaManager/Media/MediaExtractorBase.cs | MediaManager/Media/MediaExtractorBase.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
namespace MediaManager.Media
{
public abstract class MediaExtractorBase : IMediaExtractor
{
public virtual async Task<IMediaItem> CreateMediaItem(string url)
{
var medi... | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
namespace MediaManager.Media
{
public abstract class MediaExtractorBase : IMediaExtractor
{
public virtual async Task<IMediaItem> CreateMediaItem(string url)
{
var medi... | Add parentheses within the conditional AND and OR expressions to declare the operator precedence | Add parentheses within the conditional AND and OR expressions to declare the operator precedence
| C# | mit | mike-rowley/XamarinMediaManager,martijn00/XamarinMediaManager,mike-rowley/XamarinMediaManager,martijn00/XamarinMediaManager |
bf04ebd3f795ac8528d18dffed932e4e27d9184b | alert-roster.web/Views/Home/Index.cshtml | alert-roster.web/Views/Home/Index.cshtml | @model IEnumerable<alert_roster.web.Models.Message>
@{
ViewBag.Title = "Messages";
}
<div class="jumbotron">
<h1>@ViewBag.Title</h1>
</div>
@foreach (var message in Model)
{
<div class="row">
<div class="col-md-4">
<h2>
<script>var d = moment.utc('@message.PostedDate').lo... | @model IEnumerable<alert_roster.web.Models.Message>
@{
ViewBag.Title = "Messages";
}
<div class="jumbotron">
<h1>@ViewBag.Title</h1>
</div>
@foreach (var message in Model)
{
<div class="row">
<div class="col-md-4">
<fieldset>
<legend>
<script>var d... | Use fieldset instead of div | Use fieldset instead of div
| C# | mit | mattgwagner/alert-roster |
4fc89ea30e25fb7def853c0aa1ab770781a28ebe | LodViewProvider/LodViewProvider/Aggregation.cs | LodViewProvider/LodViewProvider/Aggregation.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LodViewProvider {
public enum AggregationType {
Min = 0,
Max = 1,
Sum = 2,
Count = 3,
Average = 4,
// group by
// order by
}
public class Aggregation : ICondition {
public string Variable { get; priva... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LodViewProvider {
public enum AggregationType {
Min = 0,
Max = 1,
Sum = 2,
Count = 3,
Average = 4,
// group by
// order by
}
public class Aggregation : ICondition {
public string Variable { get; priva... | Trim un-necessarry char from aggregation variable | Trim un-necessarry char from aggregation variable
| C# | mit | inohiro/LodViewProvider |
4e944de0ca1170755b4d0ca09fda4a797402bb15 | Battery-Commander.Web/Controllers/SSDController.cs | Battery-Commander.Web/Controllers/SSDController.cs | using BatteryCommander.Web.Models;
using BatteryCommander.Web.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Threading.Tasks;
namespace BatteryCommander.Web.Controllers
{
[Authorize, ApiExplorerSettings(IgnoreApi = true)]
public class SSDControll... | using BatteryCommander.Web.Models;
using BatteryCommander.Web.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Linq;
using System.Threading.Tasks;
namespace BatteryCommander.Web.Controllers
{
[Authorize, ApiExplorerSettings(IgnoreApi = true)]
public class SSDCon... | Fix for SSD rank filtering | Fix for SSD rank filtering
| C# | mit | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander |
45b7bcf1f97091fd764d43eccf0072e69135f178 | Scripts/Transports/WebSocket/WebSocketTransportFactory.cs | Scripts/Transports/WebSocket/WebSocketTransportFactory.cs | namespace LiteNetLibManager
{
public class WebSocketTransportFactory : BaseTransportFactory
{
public override bool CanUseWithWebGL { get { return false; } }
public override ITransport Build()
{
return new WebSocketTransport();
}
}
}
| namespace LiteNetLibManager
{
public class WebSocketTransportFactory : BaseTransportFactory
{
public override bool CanUseWithWebGL { get { return true; } }
public override ITransport Build()
{
return new WebSocketTransport();
}
}
}
| Add check is transport work with webGL or not at transport factory | Add check is transport work with webGL or not at transport factory
| C# | mit | insthync/LiteNetLibManager,insthync/LiteNetLibManager |
55df1f469e11e5fdba1304654e26b0833af46e5f | Website/PackageCurators/WebMatrixPackageCurator.cs | Website/PackageCurators/WebMatrixPackageCurator.cs | using System.IO;
using System.Linq;
using NuGet;
namespace NuGetGallery
{
public class WebMatrixPackageCurator : AutomaticPackageCurator
{
public override void Curate(
Package galleryPackage,
IPackage nugetPackage)
{
var curatedFeed = GetService<ICuratedFeed... | using System.IO;
using System.Linq;
using NuGet;
namespace NuGetGallery
{
public class WebMatrixPackageCurator : AutomaticPackageCurator
{
public override void Curate(
Package galleryPackage,
IPackage nugetPackage)
{
var curatedFeed = GetService<ICuratedFeed... | Fix the null reference exception coming from AutomaticPackageCurator when curatedFeed has been loaded without including Packages. | Fix the null reference exception coming from AutomaticPackageCurator when curatedFeed has been loaded without including Packages.
| C# | apache-2.0 | KuduApps/NuGetGallery,KuduApps/NuGetGallery,KuduApps/NuGetGallery,ScottShingler/NuGetGallery,skbkontur/NuGetGallery,projectkudu/SiteExtensionGallery,projectkudu/SiteExtensionGallery,skbkontur/NuGetGallery,KuduApps/NuGetGallery,JetBrains/ReSharperGallery,mtian/SiteExtensionGallery,grenade/NuGetGallery_download-count-pat... |
e93fef3c3dfded6bebc773537c01ad0a490cef6a | src/NHibernate.Test/Linq/ByMethod/AnyTests.cs | src/NHibernate.Test/Linq/ByMethod/AnyTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
namespace NHibernate.Test.Linq.ByMethod
{
[TestFixture]
public class AnyTests : LinqTestCase
{
[Test]
public void AnySublist()
{
var orders = db.Orders.Wher... | using System.Linq;
using NUnit.Framework;
namespace NHibernate.Test.Linq.ByMethod
{
[TestFixture]
public class AnyTests : LinqTestCase
{
[Test]
public void AnySublist()
{
var orders = db.Orders.Where(o => o.OrderLines.Any(ol => ol.Quantity == 5)).ToList();
Assert.AreEqual(61, orders.Count);... | Test for NH-2559 (does not fail) | Test for NH-2559 (does not fail)
SVN: 488784591515bd4cdaa016be4ec9b172dc4e7caf@5835
| C# | lgpl-2.1 | fredericDelaporte/nhibernate-core,nhibernate/nhibernate-core,lnu/nhibernate-core,fredericDelaporte/nhibernate-core,alobakov/nhibernate-core,fredericDelaporte/nhibernate-core,RogerKratz/nhibernate-core,nhibernate/nhibernate-core,gliljas/nhibernate-core,lnu/nhibernate-core,ngbrown/nhibernate-core,nkreipke/nhibernate-core... |
25ed491f8a37dad3dcfcc7484414276d4e7521a5 | testproj/UnitTest1.cs | testproj/UnitTest1.cs | namespace testproj
{
using System;
using JetBrains.dotMemoryUnit;
using NUnit.Framework;
[TestFixture]
public class UnitTest1
{
[Test]
public void TestMethod1()
{
dotMemory.Check(
memory =>
{
var str1 = "... | namespace testproj
{
using System;
using System.Collections.Generic;
using JetBrains.dotMemoryUnit;
using NUnit.Framework;
[TestFixture]
public class UnitTest1
{
[Test]
public void TestMethod1()
{
var strs = new List<string>();
var memoryCh... | Add broken test to testproj | Add broken test to testproj
| C# | apache-2.0 | JetBrains/teamcity-dotmemory,JetBrains/teamcity-dotmemory |
3fde470e6ed03afa24414cf053479030035626a7 | source/Tutorial01/Tutorial01.cs | source/Tutorial01/Tutorial01.cs | using System;
using System.IO;
using System.Security.Cryptography;
namespace Tutorial
{
class Program
{
static void Main(string[] args)
{
if (args.Length != 2)
{
Console.WriteLine("You must provide the name of a file to read and the name of a... | using System;
using System.IO;
using System.Security.Cryptography;
namespace Tutorial
{
class Program
{
static void Main(string[] args)
{
if (args.Length != 2)
{
Console.WriteLine("You must provide the name of a file to read and the name of a... | Remove steps from part 1 that have been moved to part 2. | Remove steps from part 1 that have been moved to part 2.
| C# | mit | JohnRush/File-Encryption-Tutorial |
d8bd2f0a7d6e3fd1895beb14f820ce43aa83689d | osu.Framework.Tests/Primitives/TriangleTest.cs | osu.Framework.Tests/Primitives/TriangleTest.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.Primitives;
using osuTK;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;... | // 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.Primitives;
using osuTK;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;... | Fix the called parameter being incorrect | Fix the called parameter being incorrect
| C# | mit | ppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework |
4ad8664d13d7c7bcf91d6bd9b3d121ce09414a2b | Internationalization/Internationalization.Touch/Helpers/AppInfo.cs | Internationalization/Internationalization.Touch/Helpers/AppInfo.cs | using Foundation;
using Internationalization.Core.Helpers;
namespace Internationalization.Touch.Helpers
{
public class AppInfo : IAppInfo
{
public string CurrentLanguage => NSLocale.CurrentLocale.CountryCode.ToLower();
}
} | using Foundation;
using Internationalization.Core.Helpers;
namespace Internationalization.Touch.Helpers
{
public class AppInfo : IAppInfo
{
public string CurrentLanguage
{
get
{
return NSLocale.CurrentLocale.LanguageCode.ToLower();
}
}
}
} | Fix code to return LanguageCode not CountryCode | Fix code to return LanguageCode not CountryCode
| C# | mit | AlexStefan/template-app |
fa3f6bb52f4f780b6f4db5e70f423790c4cce5e7 | server/Ssdp/Datagram.cs | server/Ssdp/Datagram.cs | using System.Net;
using System.Net.Sockets;
using System.Text;
namespace NMaier.SimpleDlna.Server.Ssdp
{
internal sealed class Datagram
{
public readonly IPEndPoint EndPoint;
public readonly string Message;
public readonly bool Sticky;
public Datagram(IPEndPoint aEndPoint, string aMessage, boo... | using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
using NMaier.SimpleDlna.Utilities;
namespace NMaier.SimpleDlna.Server.Ssdp
{
internal sealed class Datagram : Logging
{
public readonly IPEndPoint EndPoint;
public readonly string Message;
public readonly bool Sticky;
... | Send SSDP UDP Packets out on all external IPs explicitly | Send SSDP UDP Packets out on all external IPs explicitly
| C# | bsd-2-clause | itamar82/simpleDLNA,antonio-bakula/simpleDLNA,bra1nb3am3r/simpleDLNA,nmaier/simpleDLNA |
f4dc604dbf5928e8142573562d18274030bbdd0f | osu.Game.Tournament/Screens/Ladder/LadderDragContainer.cs | osu.Game.Tournament/Screens/Ladder/LadderDragContainer.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Primitives;
using osu.Framework.Input.Events;
using osuT... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Primitives;
using osu.Framework.Input.Events;
using osuT... | Fix dragging tournament ladder too far causing it to disappear | Fix dragging tournament ladder too far causing it to disappear
| C# | mit | peppy/osu-new,smoogipoo/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu,smoogipoo/osu,smoogipooo/osu,ppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,UselessToucan/osu,EVAST9919/osu,EVAST9919/osu,NeoAdonis/osu |
3b7c49d5c3dfcfcb8476a0129e1729af72a04495 | Assets/Scripts/Light/LightDiminuer.cs | Assets/Scripts/Light/LightDiminuer.cs | using UnityEngine;
using System.Collections;
using System;
public class LightDiminuer : MonoBehaviour {
public float intensity = 15;
public float intensityRate = 0.001F;
public float ambientIntensity = 3;
public float torchNoiseRange = 1;
private GameObject player;
private Light playerLight;
private Light am... | using UnityEngine;
using System.Collections;
using System;
public class LightDiminuer : MonoBehaviour {
public float intensity = 15;
public float intensityRate = 0.001F;
public float ambientIntensity = 3;
public float torchNoiseRange = 1;
public bool lightOn = false;
private GameObject player;
private Light ... | Set only just one torch | Set only just one torch
| C# | unlicense | BlueBearGaming/Moria,BlueBearGaming/Moria |
f4513e079c4cb656bec0392c19982d48ee36a5d4 | Proto/Assets/Scripts/Helpers/MultipleDelegate.cs | Proto/Assets/Scripts/Helpers/MultipleDelegate.cs | using System;
using System.Collections.Generic;
public class MultipleDelegate
{
private readonly Dictionary<int, Func<int, int>> _delegates = new Dictionary<int, Func<int, int>>();
private Type _typeOf;
private int _pos = 0;
public int Suscribe(Func<int, int> item)
{
_delegates.Add(_pos, ... | using System;
using System.Collections.Generic;
using UnityEngine;
public class MultipleDelegate
{
private readonly List<Func<int, int>> _delegates = new List<Func<int, int>>();
private Type _typeOf;
private int _pos = 0;
public int Suscribe(Func<int, int> item)
{
_delegates.Add(item);
... | Switch to list instead of Dictionnary | Switch to list instead of Dictionnary
| C# | mit | DragonEyes7/ConcoursUBI17,DragonEyes7/ConcoursUBI17 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.