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 |
|---|---|---|---|---|---|---|---|---|---|
922e84d146e33752b379ba78f24105c79286c1d2 | MadCat/NutEngine/Physics/Collider/Collider.cs | MadCat/NutEngine/Physics/Collider/Collider.cs | using NutEngine.Physics.Shapes;
namespace NutEngine.Physics
{
public static partial class Collider
{
public static bool Collide(IBody<IShape> a, IBody<IShape> b, out Manifold manifold)
{
return Collide((dynamic)a, (dynamic)b, out manifold);
}
}
}
| using NutEngine.Physics.Shapes;
namespace NutEngine.Physics
{
public static partial class Collider
{
public static bool Collide(IBody<IShape> a, IBody<IShape> b, out Manifold manifold)
{
return Collide((dynamic)a, (dynamic)b, out manifold);
}
public static bool Col... | Add collide without manifold generation | Add collide without manifold generation
| C# | mit | EasyPeasyLemonSqueezy/MadCat |
90d6445914b1217a1a7875392837880060c3f8f9 | src/PagedList.Tests/SplitAndPartitionFacts.cs | src/PagedList.Tests/SplitAndPartitionFacts.cs | using System.Linq;
using Xunit;
namespace PagedList.Tests
{
public class SplitAndPartitionFacts
{
[Fact]
public void Partition_Works()
{
//arrange
var list = Enumerable.Range(1, 9999);
//act
var splitList = list.Partition(1000);
//assert
Assert.Equal(10, splitList.Count());
Assert.Equal... | using System.Linq;
using Xunit;
namespace PagedList.Tests
{
public class SplitAndPartitionFacts
{
[Fact]
public void Partition_Works()
{
//arrange
var list = Enumerable.Range(1, 9999);
//act
var splitList = list.Partition(1000);
//assert
Assert.Equal(10, splitList.Count());
Assert.Equal... | Add unit test for partition change | Add unit test for partition change | C# | mit | vishalmane/MVCScrolling,dncuug/X.PagedList,lingsu/PagedList,gary75952/PagedList,troygoode/PagedList,weiwei695/PagedList,kpi-ua/X.PagedList,troygoode/PagedList,lingsu/PagedList,ernado-x/X.PagedList,kpi-ua/X.PagedList,ernado-x/X.PagedList,vishalmane/MVCScrolling,weiwei695/PagedList,lingsu/PagedList,gary75952/PagedList,we... |
6210e9388939d47ee1ef6b8017c2aae5da405d51 | School/REPL.cs | School/REPL.cs | using System;
namespace School
{
public class REPL
{
public REPL()
{
}
public void Run()
{
Evaluator evaluator = new Evaluator();
string line;
Console.WriteLine("School REPL:");
do
{
Console.W... | using System;
using Mono.Terminal;
namespace School
{
public class REPL
{
public REPL()
{
}
public void Run()
{
Evaluator evaluator = new Evaluator();
LineEditor editor = new LineEditor("School");
Console.WriteLine("School REPL:");
... | Use LineEditor instead of Console.ReadLine. | Use LineEditor instead of Console.ReadLine.
| C# | apache-2.0 | alldne/school,alldne/school |
487b60d45b367760c2c6c1e3a8d38c49314bb9d6 | elbsms_core/Properties/AssemblyInfo.cs | elbsms_core/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("elb... | 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("elb... | Update assembly description attribute in elbsms_core | Update assembly description attribute in elbsms_core
| C# | mit | eightlittlebits/elbsms |
376834b2eb020b209b228f3387ffb545a3c96672 | source/CroquetAustraliaWebsite.Application/app/home/BlogPostViewModel.cs | source/CroquetAustraliaWebsite.Application/app/home/BlogPostViewModel.cs | using System;
using System.Web;
using Casper.Domain.Features.BlogPosts;
using CroquetAustraliaWebsite.Library.Content;
namespace CroquetAustraliaWebsite.Application.App.home
{
public class BlogPostViewModel
{
private readonly BlogPost _blogPost;
private readonly Lazy<IHtmlString> _contentFactor... | using System;
using System.Web;
using Anotar.NLog;
using Casper.Domain.Features.BlogPosts;
using CroquetAustraliaWebsite.Library.Content;
namespace CroquetAustraliaWebsite.Application.App.home
{
public class BlogPostViewModel
{
private readonly BlogPost _blogPost;
private readonly Lazy<IHtmlStr... | Improve error message when BlogPost.Content markdown to html fails | Improve error message when BlogPost.Content markdown to html fails
| C# | mit | croquet-australia/website-application,croquet-australia/croquet-australia-website,croquet-australia/croquet-australia-website,croquet-australia/croquet-australia-website,croquet-australia/croquet-australia.com.au,croquet-australia/croquet-australia.com.au,croquet-australia/website-application,croquet-australia/croquet-... |
a01896a652ee042cc66149a99ccf5b76dddef535 | osu.Game/Configuration/ScoreMeterType.cs | osu.Game/Configuration/ScoreMeterType.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.ComponentModel;
namespace osu.Game.Configuration
{
public enum ScoreMeterType
{
[Description("None")]
None,
[Description("... | // 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.ComponentModel;
namespace osu.Game.Configuration
{
public enum ScoreMeterType
{
[Description("None")]
None,
[Description("... | Fix misordered hit error in score meter types | Fix misordered hit error in score meter types
| C# | mit | peppy/osu,UselessToucan/osu,peppy/osu,ppy/osu,peppy/osu-new,smoogipoo/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,smoogipooo/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu |
e539a4421a3554673d6edb341d16165cac843ff5 | samples/ClaimsTransformation/Controllers/AccountController.cs | samples/ClaimsTransformation/Controllers/AccountController.cs | using System.Collections.Generic;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Mvc;
namespace AuthSamples.ClaimsTransformer.Controllers
{
public class AccountController : Controller
{
[HttpGet]
public IAction... | using System.Collections.Generic;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Mvc;
namespace AuthSamples.ClaimsTransformer.Controllers
{
public class AccountController : Contro... | Replace hardcoded string with constant | Replace hardcoded string with constant
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
a1cc9a970de2679359bfe7ff8f6f29b51f1c4053 | tests/Booma.Proxy.Packets.Tests/UnitTests/PacketCaptureTestEntry.cs | tests/Booma.Proxy.Packets.Tests/UnitTests/PacketCaptureTestEntry.cs | namespace Booma.Proxy
{
public sealed partial class CapturedPacketsTests
{
public class PacketCaptureTestEntry
{
public short OpCode { get; }
public byte[] BinaryData { get; }
public string FileName { get; }
/// <inheritdoc />
public PacketCaptureTestEntry(short opCode, byte[] binaryData, strin... | namespace Booma.Proxy
{
public sealed partial class CapturedPacketsTests
{
public class PacketCaptureTestEntry
{
public short OpCode { get; }
public byte[] BinaryData { get; }
public string FileName { get; }
/// <inheritdoc />
public PacketCaptureTestEntry(short opCode, byte[] binaryData, strin... | Change subcommand60 packet test case name in VS | Change subcommand60 packet test case name in VS
| C# | agpl-3.0 | HelloKitty/Booma.Proxy |
b42cd1c04889fcade60ee3ebd2abb0c29c652006 | Core/Notification/Screenshot/FormNotificationScreenshotable.cs | Core/Notification/Screenshot/FormNotificationScreenshotable.cs | using System;
using System.Windows.Forms;
using CefSharp;
using TweetDck.Core.Bridge;
using TweetDck.Core.Controls;
using TweetDck.Resources;
namespace TweetDck.Core.Notification.Screenshot{
sealed class FormNotificationScreenshotable : FormNotification{
public FormNotificationScreenshotable(Action callba... | using System;
using System.Windows.Forms;
using CefSharp;
using TweetDck.Core.Bridge;
using TweetDck.Core.Controls;
using TweetDck.Resources;
namespace TweetDck.Core.Notification.Screenshot{
sealed class FormNotificationScreenshotable : FormNotification{
public FormNotificationScreenshotable(Action callba... | Tweak screenshot notification script (minor edit) | Tweak screenshot notification script (minor edit)
| C# | mit | chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck |
18844272fafa25fac6665b9c577e010512db7290 | Anlab.Mvc/Views/Home/Index.cshtml | Anlab.Mvc/Views/Home/Index.cshtml | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<p class="lead">The UC Davis Analytical Laboratory is a core support facility of the UC Davis College of Agriculture and Environmental Sciences.</p>
<p>Analytical Laboratory clients are University of California academics, other educational instituti... | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<p class="lead">PLEASE NOTE: The Analytical Lab will be closed on July 4th and 5th.</p>
<p class="lead">The UC Davis Analytical Laboratory is a core support facility of the UC Davis College of Agriculture and Environmental Sciences.</p>
<... | Add temporary warning of upcoming lab closure. | Add temporary warning of upcoming lab closure. | C# | mit | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab |
14975b0ff5bd9a0cb67566a2a895d49949f7423f | AzureSpeed.WebUI/Models/Prefix.cs | AzureSpeed.WebUI/Models/Prefix.cs | using Newtonsoft.Json;
namespace AzureSpeed.WebUI.Models
{
public class Prefix
{
[JsonProperty("ip_prefix")]
public string IpPrefix { get; set; }
[JsonProperty("region")]
public string Region { get; set; }
[JsonProperty("region")]
public string Service { get; ... | using Newtonsoft.Json;
namespace AzureSpeed.WebUI.Models
{
public class Prefix
{
[JsonProperty("ip_prefix")]
public string IpPrefix { get; set; }
[JsonProperty("region")]
public string Region { get; set; }
[JsonProperty("service")]
public string Service { get;... | Fix IP look up page broken | Fix IP look up page broken
| C# | mit | blrchen/AzureSpeed,blrchen/AzureSpeed,blrchen/AzureSpeed,blrchen/AzureSpeed |
8c80f2c685e8657d32595d13cd1f6e5cf11a95de | src/SFA.DAS.ReferenceData.Api/WebRole.cs | src/SFA.DAS.ReferenceData.Api/WebRole.cs | using System;
using System.Diagnostics;
using Microsoft.Web.Administration;
using Microsoft.WindowsAzure.ServiceRuntime;
using System.Linq;
namespace SFA.DAS.ReferenceData.Api
{
public class WebRole : RoleEntryPoint
{
public override void Run()
{
using (var serverManager = new Serv... | using System;
using System.Diagnostics;
using Microsoft.Web.Administration;
using Microsoft.WindowsAzure.ServiceRuntime;
using System.Linq;
namespace SFA.DAS.ReferenceData.Api
{
public class WebRole : RoleEntryPoint
{
public override void Run()
{
using (var serverManager = new Serv... | Remove Idle timeout in IIS | Remove Idle timeout in IIS
| C# | mit | SkillsFundingAgency/das-referencedata,SkillsFundingAgency/das-referencedata |
5d36a8c037cd83488acc8c98f8b4e0dc7ae74af0 | exercises/concept/strings/.meta/Example.cs | exercises/concept/strings/.meta/Example.cs | static class LogLine
{
public static string Message(string logLine)
{
return logLine.Substring(logLine.IndexOf(":") + 1).Trim();
}
public static string LogLevel(string logLine)
{
return logLine.Substring(1, (logLine.IndexOf("]") - 1).ToLower();
}
public static string Reform... | static class LogLine
{
public static string Message(string logLine)
{
return logLine.Substring(logLine.IndexOf(":") + 1).Trim();
}
public static string LogLevel(string logLine)
{
return logLine.Substring(1, logLine.IndexOf("]") - 1).ToLower();
}
public static string Reforma... | Fix example of strings exercise | Fix example of strings exercise
| C# | mit | exercism/xcsharp,exercism/xcsharp |
5976e8bfeb6142583fdf1422d2902356055a51f7 | CIV.Test/Common.cs | CIV.Test/Common.cs | using System;
using System.Collections.Generic;
using CIV.Ccs;
using CIV.Interfaces;
using Moq;
namespace CIV.Test
{
public static class Common
{
/// <summary>
/// Setup a mock process that can only do the given action.
/// </summary>
/// <returns>The mock process.</returns>
... | using System;
using System.Collections.Generic;
using CIV.Ccs;
using CIV.Interfaces;
using Moq;
namespace CIV.Test
{
public static class Common
{
/// <summary>
/// Setup a mock process that can only do the given action.
/// </summary>
/// <returns>The mock process.</returns>
... | Use new Process interface in tests | Use new Process interface in tests
| C# | mit | lou1306/CIV,lou1306/CIV |
0a550a23091095e98b778ef09987043f8ccc1ff9 | Framework/Extension.cs | Framework/Extension.cs | using System;
using System.Collections.Generic;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
namespace TirkxDownloader.Framework
{
public static class Extension
{
public static async Task<HttpWebResponse> GetResponseAsync(this HttpWebRequest request, CancellationToken ct)
... | using System;
using System.Collections.Generic;
using System.Net;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
namespace TirkxDownloader.Framework
{
public static class Extension
{
public static async Task<HttpWebResponse> GetResponseAsync(this HttpWebReq... | Add Link method to compare string with wildcards | Add Link method to compare string with wildcards
from https://stackoverflow.com/questions/188892/glob-pattern-matching-in-net
| C# | mit | witoong623/TirkxDownloader,witoong623/TirkxDownloader |
ae1436ad3b314432923b3e18048d99ce27338681 | Libraries/src/Amazon.Lambda.APIGatewayEvents/APIGatewayCustomAuthorizerRequest.cs | Libraries/src/Amazon.Lambda.APIGatewayEvents/APIGatewayCustomAuthorizerRequest.cs | namespace Amazon.Lambda.APIGatewayEvents
{
/// <summary>
/// For requests coming in to a custom API Gateway authorizer function.
/// </summary>
public class APIGatewayCustomAuthorizerRequest
{
/// <summary>
/// Gets or sets the 'type' property.
/// </summary>
public ... | using System.Collections.Generic;
namespace Amazon.Lambda.APIGatewayEvents
{
/// <summary>
/// For requests coming in to a custom API Gateway authorizer function.
/// </summary>
public class APIGatewayCustomAuthorizerRequest
{
/// <summary>
/// Gets or sets the 'type' property.
... | Add parameter for a REQUEST type API Gateway Custom Authorizer | Add parameter for a REQUEST type API Gateway Custom Authorizer
| C# | apache-2.0 | thedevopsmachine/aws-lambda-dotnet,thedevopsmachine/aws-lambda-dotnet,thedevopsmachine/aws-lambda-dotnet,thedevopsmachine/aws-lambda-dotnet |
ae442ecb3fa52e58001acbfe481fe2e5c8841258 | Xamarin.Forms.GoogleMaps/Xamarin.Forms.GoogleMaps/Internals/ProductInformation.cs | Xamarin.Forms.GoogleMaps/Xamarin.Forms.GoogleMaps/Internals/ProductInformation.cs | using System;
namespace Xamarin.Forms.GoogleMaps.Internals
{
internal class ProductInformation
{
public const string Author = "amay077";
public const string Name = "Xamarin.Forms.GoogleMaps";
public const string Copyright = "Copyright © amay077. 2016 - 2017";
public const string... | using System;
namespace Xamarin.Forms.GoogleMaps.Internals
{
internal class ProductInformation
{
public const string Author = "amay077";
public const string Name = "Xamarin.Forms.GoogleMaps";
public const string Copyright = "Copyright © amay077. 2016 - 2017";
public const string... | Update file version to 2.2.1.5 | Update file version to 2.2.1.5
| C# | mit | JKennedy24/Xamarin.Forms.GoogleMaps,JKennedy24/Xamarin.Forms.GoogleMaps,amay077/Xamarin.Forms.GoogleMaps |
0a423ff84d438f48422876781708eaf73d999dd6 | src/Example/CassetteConfiguration.cs | src/Example/CassetteConfiguration.cs | using System.Text.RegularExpressions;
using Cassette;
using Cassette.HtmlTemplates;
using Cassette.Scripts;
using Cassette.Stylesheets;
namespace Example
{
public class CassetteConfiguration : ICassetteConfiguration
{
public void Configure(ModuleConfiguration modules)
{
... | using System.Text.RegularExpressions;
using Cassette;
using Cassette.HtmlTemplates;
using Cassette.Scripts;
using Cassette.Stylesheets;
namespace Example
{
public class CassetteConfiguration : ICassetteConfiguration
{
public void Configure(ModuleConfiguration modules)
{
... | Use HTML template compiler in example. | Use HTML template compiler in example.
| C# | mit | BluewireTechnologies/cassette,honestegg/cassette,BluewireTechnologies/cassette,honestegg/cassette,honestegg/cassette,andrewdavey/cassette,damiensawyer/cassette,andrewdavey/cassette,damiensawyer/cassette,andrewdavey/cassette,damiensawyer/cassette |
f51894c850ef89db4eafe25f8e76819e86c0e767 | src/SharedAssemblyInfo.cs | src/SharedAssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyProduct("Aggregates.NET")]
[assembly: AssemblyDescription(".NET event sourced domain driven design model via NServiceBus and EventStore")]
[assembly: AssemblyCopyright("Copyright © Charles Solar 2017")]
[assembly: AssemblyVersion("0.12... | using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyProduct("Aggregates.NET")]
[assembly: AssemblyDescription(".NET event sourced domain driven design model via NServiceBus and EventStore")]
[assembly: AssemblyCopyright("Copyright © Charles Solar 2017")]
[assembly: AssemblyVersion("0.13... | Increment library version as version on pre-release line messed up versioning | Increment library version as version on pre-release line messed up versioning
| C# | mit | volak/Aggregates.NET,volak/Aggregates.NET |
ad882939d9b97f4d466759a0e65b876a3504c25a | src/Mime/MagicParams.cs | src/Mime/MagicParams.cs | namespace HeyRed.Mime
{
public enum MagicParams
{
MAGIC_PARAM_INDIR_MAX = 0,
MAGIC_PARAM_NAME_MAX,
MAGIC_PARAM_ELF_PHNUM_MAX,
MAGIC_PARAM_ELF_SHNUM_MAX,
MAGIC_PARAM_ELF_NOTES_MAX,
MAGIC_PARAM_REGEX_MAX,
MAGIC_PARAM_BYTES_MAX
}
}
| namespace HeyRed.Mime
{
public enum MagicParams
{
/// <summary>
/// The parameter controls how many levels of recursion will be followed for indirect magic entries.
/// </summary>
MAGIC_PARAM_INDIR_MAX = 0,
/// <summary>
/// The parameter controls the maximum nu... | Add description for magic params | Add description for magic params
| C# | mit | hey-red/Mime |
c1f3bf124f06c73259b7f488e2899d3011179157 | template-game/TemplateGame.Game/MainScreen.cs | template-game/TemplateGame.Game/MainScreen.cs | using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Screens;
namespace TemplateGame.Game
{
public class MainScreen : Screen
{
[BackgroundDependencyLoader]
private void load()
{
AddInternal(new SpinningBox
{
Anchor = A... | using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Screens;
using osuTK.Graphics;
namespace TemplateGame.Game
{
public class MainScreen : Screen
{
[BackgroundDependencyLoader]
private void ... | Make main screen a bit more identifiable | Make main screen a bit more identifiable
| C# | mit | peppy/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework |
7569473dd569bac4d9611a5f6b945cc42695e801 | src/SFA.DAS.EmployerFinance.Jobs/ScheduledJobs/ExpireFundsJob.cs | src/SFA.DAS.EmployerFinance.Jobs/ScheduledJobs/ExpireFundsJob.cs | using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
using NServiceBus;
using SFA.DAS.EmployerFinance.Messages.Commands;
namespace SFA.DAS.EmployerFinance.Jobs.ScheduledJobs
{
public class ExpireFundsJob
{
private readonly IMessageSession _messageSession;
... | using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
using NServiceBus;
using SFA.DAS.EmployerFinance.Messages.Commands;
namespace SFA.DAS.EmployerFinance.Jobs.ScheduledJobs
{
public class ExpireFundsJob
{
private readonly IMessageSession _messageSession;
... | Change expiry job back to 28th | Change expiry job back to 28th
| C# | mit | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice |
8c46bcca9aa37906746e6490b033a72e531dd5eb | src/Zenini/Patterns/KeyValuePattern.cs | src/Zenini/Patterns/KeyValuePattern.cs | using System;
using System.Text.RegularExpressions;
namespace Zenini.Patterns
{
public class KeyValuePattern
{
private static readonly Regex KeyValueRegex = new Regex(@"^\s*(.+?)\s*=\s*(.+?)\s*$", RegexOptions.Compiled);
public virtual bool Matches(string line)
{
return Ke... | using System;
using System.Text.RegularExpressions;
namespace Zenini.Patterns
{
public class KeyValuePattern
{
private static readonly Regex KeyValueRegex = new Regex(@"^\s*(.+?)\s*=\s*(?:"")?(.+?)(?:\"")?\s*$", RegexOptions.Compiled);
public virtual bool Matches(string line)
{
... | Improve key/value pattern values enclosed in quotation marks | Improve key/value pattern values enclosed in quotation marks
| C# | mit | tommarien/zenini |
2e68951e0f6c45c392008160c54fa521b808280a | src/Microsoft.Azure.EventHubs/Primitives/ClientInfo.cs | src/Microsoft.Azure.EventHubs/Primitives/ClientInfo.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Azure.EventHubs
{
using System;
using System.Reflection;
using System.Runtime.Versioning;
using Microsoft.Azure.Amqp;
static c... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Azure.EventHubs
{
using System;
using System.Reflection;
using System.Runtime.Versioning;
using Microsoft.Azure.Amqp;
static c... | Use file version as client version | Use file version as client version
| C# | mit | SeanFeldman/azure-event-hubs-dotnet,jtaubensee/azure-event-hubs-dotnet |
2c34a9de89bad3632a3b41a5d0f80d60b62e5823 | Mod.cs | Mod.cs | using ICities;
using MetroOverhaul.OptionsFramework.Extensions;
namespace MetroOverhaul
{
public class Mod : IUserMod
{
public string Name => "Metro Overhaul";
public string Description => "Brings metro depots, ground and elevated metro tracks";
public void OnSettingsUI(UIHelperBase h... | using ICities;
using MetroOverhaul.OptionsFramework.Extensions;
namespace MetroOverhaul
{
public class Mod : IUserMod
{
#if IS_PATCH
public const bool isPatch = true;
#else
public const bool isPatch = false;
#endif
public string Name => "Metro Overhaul" + (isPatch ? " [Patched]" : "")... | Make different mod name in patched version | Make different mod name in patched version
| C# | mit | earalov/Skylines-ElevatedTrainStationTrack |
8382881127d2384848d24bbf8a12925ddd365e65 | NBi.Core/Structure/Relational/Builders/SchemaDiscoveryCommandBuilder.cs | NBi.Core/Structure/Relational/Builders/SchemaDiscoveryCommandBuilder.cs | using NBi.Core.Structure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBi.Core.Structure.Relational.Builders
{
class SchemaDiscoveryCommandBuilder : RelationalDiscoveryCommandBuilder
{
protected override strin... | using NBi.Core.Structure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBi.Core.Structure.Relational.Builders
{
class SchemaDiscoveryCommandBuilder : RelationalDiscoveryCommandBuilder
{
protected override strin... | Remove requirement for [schema_owner] = 'dbo' | Remove requirement for [schema_owner] = 'dbo'
If schema_owner differed from 'dbo', schema existence tests would fail. | C# | apache-2.0 | Seddryck/NBi,Seddryck/NBi |
ba00adc29348272e4f55a98efbf53cc7d292b32c | zipkin4net-aspnetcore/Criteo.Profiling.Tracing.Middleware/TracingMiddleware.cs | zipkin4net-aspnetcore/Criteo.Profiling.Tracing.Middleware/TracingMiddleware.cs | using System;
using Microsoft.AspNetCore.Builder;
using Criteo.Profiling.Tracing;
namespace Criteo.Profiling.Tracing.Middleware
{
public static class TracingMiddleware
{
public static void UseTracing(this IApplicationBuilder app, string serviceName)
{
app.Use(async (context, next) =... | using System;
using Microsoft.AspNetCore.Builder;
using Criteo.Profiling.Tracing;
namespace Criteo.Profiling.Tracing.Middleware
{
public static class TracingMiddleware
{
public static void UseTracing(this IApplicationBuilder app, string serviceName)
{
var extractor = new ZipkinHttpT... | Enable middleware to extract trace from incoming request headers. | Enable middleware to extract trace from incoming request headers.
If such headers exist, the trace is created from these values.
| C# | apache-2.0 | criteo/zipkin4net,criteo/zipkin4net |
cdd70d134ca74df3c0a6e1a1c7234607a3f5a2e5 | src/Plethora.Common/MathEx.cs | src/Plethora.Common/MathEx.cs | using System;
namespace Plethora
{
public static class MathEx
{
/// <summary>
/// Returns the greatest common divisor of two numbers.
/// </summary>
/// <param name="a">The first number.</param>
/// <param name="b">The second number.</param>
/// <returns>The gre... | using System;
namespace Plethora
{
public static class MathEx
{
/// <summary>
/// Returns the greatest common divisor of two numbers.
/// </summary>
/// <param name="a">The first number.</param>
/// <param name="b">The second number.</param>
/// <returns>The gre... | Correct href in <see/> tag | Correct href in <see/> tag
| C# | mit | mikebarker/Plethora.NET |
af56e5c9f724aad319d86dd452644b0e891df2c3 | ShopifyAPIAdapterLibrary/ShopifyAPIAdapterLibrary.Models/ShopifyResourceModel.cs | ShopifyAPIAdapterLibrary/ShopifyAPIAdapterLibrary.Models/ShopifyResourceModel.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace ShopifyAPIAdapterLibrary.Models
{
public class ShopifyResourceModel : IResourceModel
{
public ev... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace ShopifyAPIAdapterLibrary.Models
{
public class ShopifyResourceModel : IResourceModel
{
public ev... | Throw an exception of [CallerMemberName] misbehaves. | Throw an exception of [CallerMemberName] misbehaves.
| C# | mit | orospakr/sharpify,orospakr/sharpify,orospakr/sharpify |
dcf3ae5765dc5ce9eb39ae4cbdf7d5c47ee74f9c | LibGit2Sharp/IndexEntry.cs | LibGit2Sharp/IndexEntry.cs | using System;
using System.Runtime.InteropServices;
using LibGit2Sharp.Core;
namespace LibGit2Sharp
{
public class IndexEntry
{
public IndexEntryState State { get; set; }
public string Path { get; private set; }
public ObjectId Id { get; private set; }
internal static IndexEn... | using System;
using System.Runtime.InteropServices;
using LibGit2Sharp.Core;
namespace LibGit2Sharp
{
public class IndexEntry
{
public IndexEntryState State { get; private set; }
public string Path { get; private set; }
public ObjectId Id { get; private set; }
internal static... | Reduce exposure of public API | Reduce exposure of public API
| C# | mit | oliver-feng/libgit2sharp,AArnott/libgit2sharp,nulltoken/libgit2sharp,AArnott/libgit2sharp,carlosmn/libgit2sharp,rcorre/libgit2sharp,dlsteuer/libgit2sharp,github/libgit2sharp,xoofx/libgit2sharp,mono/libgit2sharp,jeffhostetler/public_libgit2sharp,mono/libgit2sharp,psawey/libgit2sharp,Skybladev2/libgit2sharp,libgit2/libgi... |
8f496095a9a42d5ada559ad3cb565511284ade70 | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("TweetDick")]
[assembly: AssemblyDescripti... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("TweetDick")]
[assembly: AssemblyDescripti... | Change version to 0.9.0.0 for the premature build | Change version to 0.9.0.0 for the premature build
| C# | mit | chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck |
a9f6ad312a757475426e8fd6ec25a7d717d86808 | Proto/Assets/Scripts/UI/LeaderboardUI.cs | Proto/Assets/Scripts/UI/LeaderboardUI.cs | using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class LeaderboardUI : MonoBehaviour
{
[SerializeField] private RectTransform _scoresList;
[SerializeField] private Text _sceneTitle;
[SerializeField] private string _defaultScene = "Tuto";
private const strin... | using UnityEditor;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class LeaderboardUI : MonoBehaviour
{
[SerializeField] private RectTransform _scoresList;
[SerializeField] private Text _sceneTitle;
[SerializeField] private string _defaultScene = "Tuto";
... | Remove list element when switching scene | Remove list element when switching scene
| C# | mit | DragonEyes7/ConcoursUBI17,DragonEyes7/ConcoursUBI17 |
4c162561160a6dcb83500d8c80e6e2f36b33f655 | source/projects/MyCouch.Net45/Responses/Materializers/BasicResponseMaterializer.cs | source/projects/MyCouch.Net45/Responses/Materializers/BasicResponseMaterializer.cs | using System.Net.Http;
using MyCouch.Extensions;
namespace MyCouch.Responses.Materializers
{
public class BasicResponseMaterializer
{
public virtual void Materialize(Response response, HttpResponseMessage httpResponse)
{
response.RequestUri = httpResponse.RequestMessage.RequestUri;... | using System.Net.Http;
using MyCouch.Extensions;
namespace MyCouch.Responses.Materializers
{
public class BasicResponseMaterializer
{
public virtual void Materialize(Response response, HttpResponseMessage httpResponse)
{
response.RequestUri = httpResponse.RequestMessage.RequestUri;... | Fix for content type NULL in rare cercumstances | Fix for content type NULL in rare cercumstances
| C# | mit | danielwertheim/mycouch,danielwertheim/mycouch |
50963adcbf82d2cb797cf435764a42dc1f25a44a | TelerikListViewPoc/Controls/BookListCell.cs | TelerikListViewPoc/Controls/BookListCell.cs | using Telerik.XamarinForms.DataControls.ListView;
using TelerikListViewPoc.Components;
using Xamarin.Forms;
namespace TelerikListViewPoc.Controls
{
public class BookListCell : ListViewTemplateCell
{
public BookListCell()
{
var titleLabel = new Label
{
... | using System.Diagnostics;
using Telerik.XamarinForms.DataControls.ListView;
using TelerikListViewPoc.Components;
using Xamarin.Forms;
namespace TelerikListViewPoc.Controls
{
public class BookListCell : ListViewTemplateCell
{
public BookListCell()
{
var titleLabel = new Label
... | Set fixed height and add debug messages for OnAppearing/OnDisappearing | Set fixed height and add debug messages for OnAppearing/OnDisappearing
| C# | mit | esskar/TelerikListViewPoc |
2fc47c6b2fb0ecd98c0a89cce430a22c7f195f54 | DanTup.DartAnalysis/Events/ServerStatusEvent.cs | DanTup.DartAnalysis/Events/ServerStatusEvent.cs | using System;
namespace DanTup.DartAnalysis
{
#region JSON deserialisation objects
class ServerStatusEvent
{
public ServerAnalysisStatus analysis = null;
}
class ServerAnalysisStatus
{
public bool analyzing = false;
}
#endregion
public class ServerStatusNotification
{
public bool IsAnalysing { get... | using System;
namespace DanTup.DartAnalysis
{
#region JSON deserialisation objects
class ServerStatusEvent
{
public ServerAnalysisStatus analysis = null;
}
class ServerAnalysisStatus
{
public bool analyzing = false;
}
#endregion
public struct ServerStatusNotification
{
public bool IsAnalysing { ge... | Use struct instead of class for event/notification data. | Use struct instead of class for event/notification data.
| C# | mit | modulexcite/DartVS,modulexcite/DartVS,modulexcite/DartVS,DartVS/DartVS,DartVS/DartVS,DartVS/DartVS |
655a63bd61dca22f94055156c5ca10519f65d197 | src/Step-0-No-DI/AdamS.StoreTemp/Models/Common/StringExtensions.cs | src/Step-0-No-DI/AdamS.StoreTemp/Models/Common/StringExtensions.cs | namespace AdamS.StoreTemp.Models.Common
{
public static class StringExtensions
{
public static bool IsValidEmailAddress(this string emailAddress)
{
return !string.IsNullOrWhiteSpace(emailAddress);
}
}
} | using System.Text.RegularExpressions;
namespace AdamS.StoreTemp.Models.Common
{
public static class StringExtensions
{
public static bool IsValidEmailAddress(this string emailAddress)
{
Regex regex = new Regex(@"^[\w-]+(?:\.[\w-]+)*@(?:[\w-]+\.)+[a-zA-Z]{2,7}$");
Match m... | Update StringExtension to validate email | Update StringExtension to validate email
| C# | apache-2.0 | SSWConsulting/SSWTV.DevSuperPower.DI,SSWConsulting/SSWTV.DevSuperPower.DI,SSWConsulting/SSWTV.DevSuperPower.DI |
951b5c7e4d1ef1917402110e6329935b119d6b8d | BmpListener/Bgp/BgpMessage.cs | BmpListener/Bgp/BgpMessage.cs | using System;
using System.Linq;
namespace BmpListener.Bgp
{
public abstract class BgpMessage
{
protected const int BgpHeaderLength = 19;
protected BgpMessage(ref ArraySegment<byte> data)
{
Header = new BgpHeader(data);
var offset = data.Offset + BgpHeaderLengt... | using System;
namespace BmpListener.Bgp
{
public abstract class BgpMessage
{
protected const int BgpHeaderLength = 19;
protected BgpMessage(ArraySegment<byte> data)
{
Header = new BgpHeader(data);
var offset = data.Offset + BgpHeaderLength;
var coun... | Replace ASN array with IList | Replace ASN array with IList
| C# | mit | mstrother/BmpListener |
4c2f697858f4838549a8e6d1bfe15557311b3342 | MSBuildTracer/ImportTracer.cs | MSBuildTracer/ImportTracer.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using MBEV = Microsoft.Build.Evaluation;
using MBEX = Microsoft.Build.Execution;
namespace MSBuildTracer
{
class ImportTracer
{
private MBEV.Projec... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using MBEV = Microsoft.Build.Evaluation;
using MBEX = Microsoft.Build.Execution;
namespace MSBuildTracer
{
class ImportTracer
{
private MBEV.Projec... | Fix import tracer to property trace all imports | Fix import tracer to property trace all imports
| C# | mit | jefflinse/MSBuildTracer |
7a1525b7f4c631130fa21f4c766287a98bbc337b | samples/MediatR.Examples/ExceptionHandler/ExceptionsHandlersOverrides.cs | samples/MediatR.Examples/ExceptionHandler/ExceptionsHandlersOverrides.cs | using MediatR.Pipeline;
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace MediatR.Examples.ExceptionHandler.Overrides;
public class CommonExceptionHandler : AsyncRequestExceptionHandler<PingResourceTimeout, Pong>
{
private readonly TextWriter _writer;
public Commo... | using MediatR.Pipeline;
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace MediatR.Examples.ExceptionHandler.Overrides;
public class CommonExceptionHandler : AsyncRequestExceptionHandler<PingResourceTimeout, Pong>
{
private readonly TextWriter _writer;
public Commo... | Fix MediatR examples exception handlers overrides | Fix MediatR examples exception handlers overrides | C# | apache-2.0 | jbogard/MediatR |
6035869f05545d8f18b7c07b291c71ddd25c348d | SharpResume.Tests/UnitTest.cs | SharpResume.Tests/UnitTest.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using NUnit.Framework;
using SharpResume.Model;
using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;
namespace Sharp... | using System.Collections.Generic;
using System.IO;
using Newtonsoft.Json.Linq;
using NUnit.Framework;
using SharpResume.Model;
using Assert = NUnit.Framework.Assert;
namespace SharpResume.Tests
{
[TestFixture]
public class UnitTest
{
const string JsonName = "resume.json";
static readonly string _json = File.Re... | Move from MSTest to NUnit | Fix: Move from MSTest to NUnit
| C# | mit | aloisdg/SharpResume |
ccb64a98c40b656cf12f70153698464555ef7e8e | src/Google.Events.Protobuf/Cloud/PubSub/V1/ConverterAttributes.cs | src/Google.Events.Protobuf/Cloud/PubSub/V1/ConverterAttributes.cs | // Copyright 2020, Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | // Copyright 2020, Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | Fix comment (which was in an unsaved file, unfortunately) | Fix comment (which was in an unsaved file, unfortunately)
| C# | apache-2.0 | googleapis/google-cloudevents-dotnet,googleapis/google-cloudevents-dotnet |
add533cdc6fb091222ceb14ac47c4a94eb72d01d | Yeena/Data/PersistentCache.cs | Yeena/Data/PersistentCache.cs | // Copyright 2013 J.C. Moyer
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | // Copyright 2013 J.C. Moyer
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | Allow manual changing of Value | Allow manual changing of Value
| C# | apache-2.0 | jcmoyer/Yeena |
323728833fb87df9d9eeea746f9b4f24295e1797 | Properties/AssemblyInfo.cs | 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("Xi... | 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("Xi... | Prepare for a release - this will go out with v2 R255 | Prepare for a release - this will go out with v2 R255
| C# | agpl-3.0 | xibosignage/xibo-windows-client-watchdog |
d8374b76cc712153a10ed6d36f1ad3dfc68d0d6e | ShopifySharp/Services/FulfillmentOrders/FulfillmentOrderService.cs | ShopifySharp/Services/FulfillmentOrders/FulfillmentOrderService.cs | using System.Net.Http;
using ShopifySharp.Filters;
using System.Collections.Generic;
using System.Threading.Tasks;
using ShopifySharp.Infrastructure;
using System;
using System.Threading;
using ShopifySharp.Lists;
namespace ShopifySharp
{
/// <summary>
/// A service for manipulating Shopify fulfillment orders... | using System.Net.Http;
using ShopifySharp.Filters;
using System.Collections.Generic;
using System.Threading.Tasks;
using ShopifySharp.Infrastructure;
using System;
using System.Threading;
using ShopifySharp.Lists;
namespace ShopifySharp
{
/// <summary>
/// A service for manipulating Shopify fulfillment orders... | Return IEnumerable<FulfillmentOrder> instead of ListResult<FulfillmentOrder> | Return IEnumerable<FulfillmentOrder> instead of ListResult<FulfillmentOrder>
Result for this endpoint is not paginated.
| C# | mit | nozzlegear/ShopifySharp,clement911/ShopifySharp |
98d3ebcc1192b6bac82229719fe059738bc932d3 | UI/Pdf/WinFormPdfHost.cs | UI/Pdf/WinFormPdfHost.cs | using System.Windows.Forms;
namespace XComponent.Common.UI.Pdf
{
public partial class WinFormPdfHost : UserControl
{
public WinFormPdfHost()
{
InitializeComponent();
if(!DesignMode)
axAcroPDF1.setShowToolbar(true);
}
public void LoadFile(str... | using System;
using System.Windows.Forms;
namespace XComponent.Common.UI.Pdf
{
public partial class WinFormPdfHost : UserControl
{
public WinFormPdfHost()
{
InitializeComponent();
if(!DesignMode)
axAcroPDF1.setShowToolbar(true);
}
public voi... | Fix crash when acrobat is not correctly installed | Fix crash when acrobat is not correctly installed
| C# | apache-2.0 | xcomponent/xcomponent.ui,Invivoo-software/xcomponent.ui |
4d26ca9028d9a93522ea9272a72e1cba06eb6e71 | test/WebApps/SimpleApi/Startup.cs | test/WebApps/SimpleApi/Startup.cs | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using ExplicitlyImpl.AspNetCore.Mvc.FluentActions;
namespace SimpleApi
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
servi... | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using ExplicitlyImpl.AspNetCore.Mvc.FluentActions;
namespace SimpleApi
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
servi... | Move call to UseFluentActions before UseMvc in api test project | Move call to UseFluentActions before UseMvc in api test project
| C# | mit | ExplicitlyImplicit/AspNetCore.Mvc.FluentActions,ExplicitlyImplicit/AspNetCore.Mvc.FluentActions |
748054c05919078980474ed86cad86f5dfebe664 | Source/Lib/TraktApiSharp/Core/TraktConstants.cs | Source/Lib/TraktApiSharp/Core/TraktConstants.cs | namespace TraktApiSharp.Core
{
public static class TraktConstants
{
public static string OAuthBaseAuthorizeUrl => "https://trakt.tv";
public static string OAuthAuthorizeUri => "oauth/authorize";
public static string OAuthTokenUri => "oauth/token";
public static string OAuthRevo... | namespace TraktApiSharp.Core
{
internal static class TraktConstants
{
internal static string OAuthBaseAuthorizeUrl => "https://trakt.tv";
internal static string OAuthAuthorizeUri => "oauth/authorize";
internal static string OAuthTokenUri => "oauth/token";
internal static string... | Change access modifier for constants. | Change access modifier for constants.
| C# | mit | henrikfroehling/TraktApiSharp |
0d8ad7b1ff7239c974641b8c44bd82fe1d4e148b | src/Loggers/MassTransit.Log4NetIntegration/Logging/Log4NetLogger.cs | src/Loggers/MassTransit.Log4NetIntegration/Logging/Log4NetLogger.cs | // Copyright 2007-2011 Chris Patterson, Dru Sellers, Travis Smith, et. al.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at
//
// http://www.apache.org/licenses/LICENSE-2.... | // Copyright 2007-2011 Chris Patterson, Dru Sellers, Travis Smith, et. al.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at
//
// http://www.apache.org/licenses/LICENSE-2.... | Fix Log4Net path for loading config file | Fix Log4Net path for loading config file
The Log4Net config file should be picked up from the base directory of
the current app domain so that when running as a windows service MT will
load the log4net config file from the app directory and not a Windows
system folder
| C# | apache-2.0 | vebin/MassTransit,abombss/MassTransit,ccellar/MassTransit,lahma/MassTransit,abombss/MassTransit,petedavis/MassTransit,ccellar/MassTransit,lahma/MassTransit,D3-LucaPiombino/MassTransit,abombss/MassTransit,ccellar/MassTransit,lahma/MassTransit,jsmale/MassTransit,lahma/MassTransit,ccellar/MassTransit,petedavis/MassTransit... |
512edcd02ebfad7e37e49f805325df1687077aff | src/StraightSql/IReader.cs | src/StraightSql/IReader.cs | namespace StraightSql
{
using System;
using System.Data.Common;
public interface IReader
{
Object Read(DbDataReader reader);
Type Type { get; }
}
}
| namespace StraightSql
{
using System;
using System.Data.Common;
public interface IReader
{
Type Type { get; }
Object Read(DbDataReader reader);
}
}
| Sort properties vs. methods; whitespace. | Sort properties vs. methods; whitespace.
| C# | mit | brendanjbaker/StraightSQL |
99bb4548db7755c4f3982948147b8f9b66d133c3 | src/Firehose.Web/Authors/ShaneONeill.cs | src/Firehose.Web/Authors/ShaneONeill.cs | public class ShaneONeill : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Shane";
public string LastName => "O'Neill";
public string ShortBioOrTagLine => "DBA. Food, Coffee, Whiskey (not necessarily in that order)... ";
public string StateOrRegion => "Irela... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class ShaneONeill : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Shane";
... | Add using lines and namespaces | Add using lines and namespaces | C# | mit | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell |
658c29cebcc454886451da9528a58408b0cee1c3 | Log4NetlyTesting/Program.cs | Log4NetlyTesting/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using log4net;
namespace Log4NetlyTesting {
class Program {
static void Main(string[] args) {
log4net.Config.XmlConfigurator.Configure();
var logger = LogManager.GetL... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using log4net;
using log4net.Core;
namespace Log4NetlyTesting {
class Program {
static void Main(string[] args) {
log4net.Config.XmlConfigurator.Configure();
var logg... | Add test for new properties feature. | Add test for new properties feature.
| C# | mit | jonfreeland/Log4Netly |
0a43e54dfc5d605d45f55cc1327cb95056fdc262 | osu.Game/Online/Rooms/JoinRoomRequest.cs | osu.Game/Online/Rooms/JoinRoomRequest.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.Net.Http;
using osu.Framework.IO.Network;
using osu.Game.Online.API;
namespace osu.Game.Online.Rooms
{
public class JoinRoomRequest : APIRequest
{
... | // 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.Net.Http;
using osu.Framework.IO.Network;
using osu.Game.Online.API;
namespace osu.Game.Online.Rooms
{
public class JoinRoomRequest : APIRequest
{
... | Fix request failing due to parameters | Fix request failing due to parameters
| C# | mit | peppy/osu,ppy/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,peppy/osu,UselessToucan/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,smoogipooo/osu,NeoAdonis/osu,peppy/osu-new |
1e5eb4209dcd39b10a4eb12d604dedf6340d616d | src/Core/Vipr/Program.cs | src/Core/Vipr/Program.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Text;
using System.Xml.Linq;
using Vipr.Core;
namespace Vipr
{
internal c... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.IO;
namespace Vipr
{
internal class Program
{
private static void Main(string[] args)
{
... | Enable automatic versioning and Nuget packaging of shippable Vipr binaries | Enable automatic versioning and Nuget packaging of shippable Vipr binaries
| C# | mit | tonycrider/Vipr,Microsoft/Vipr,MSOpenTech/Vipr,ysanghi/Vipr,tonycrider/Vipr,v-am/Vipr |
bebd093f709be5ff2e413a76f94ebad216e2a4cd | src/Sitecore.FakeDb/Data/Engines/DataCommands/CreateItemCommand.cs | src/Sitecore.FakeDb/Data/Engines/DataCommands/CreateItemCommand.cs | namespace Sitecore.FakeDb.Data.Engines.DataCommands
{
using System;
using Sitecore.Data.Items;
using Sitecore.Diagnostics;
public class CreateItemCommand : Sitecore.Data.Engines.DataCommands.CreateItemCommand
{
private readonly DataStorage dataStorage;
public CreateItemCommand(DataStorage dataStora... | namespace Sitecore.FakeDb.Data.Engines.DataCommands
{
using System;
using Sitecore.Data.Items;
using Sitecore.Diagnostics;
using Sitecore.Globalization;
public class CreateItemCommand : Sitecore.Data.Engines.DataCommands.CreateItemCommand
{
private readonly DataStorage dataStorage;
public CreateI... | Use the RemoveVersion method to clean up the unnecessary first version | Use the RemoveVersion method to clean up the unnecessary first version
| C# | mit | hermanussen/Sitecore.FakeDb,sergeyshushlyapin/Sitecore.FakeDb,pveller/Sitecore.FakeDb |
820a672940b151a43b54f510dc03b8476bd95ce9 | osu.Game/Rulesets/Mods/ModUsage.cs | osu.Game/Rulesets/Mods/ModUsage.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Rulesets.Mods
{
/// <summary>
/// The usage of this mod to determine its playability.
/// </summary>
public enum ModUsage
{
... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Rulesets.Mods
{
/// <summary>
/// The usage of this mod to determine whether it's playable in such context.
/// </summary>
public enum ... | Reword xmldoc to make more sense | Reword xmldoc to make more sense
| C# | mit | NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,ppy/osu,peppy/osu |
eed07096f6b39c7e6948543a092ed9f1f387f0b3 | Refit/RequestBuilder.cs | Refit/RequestBuilder.cs | using System;
using System.Collections.Generic;
using System.Net.Http;
namespace Refit
{
public interface IRequestBuilder
{
IEnumerable<string> InterfaceHttpMethods { get; }
Func<object[], HttpRequestMessage> BuildRequestFactoryForMethod(string methodName, string basePath = "");
Func<Ht... | using System;
using System.Collections.Generic;
using System.Net.Http;
namespace Refit
{
public interface IRequestBuilder
{
IEnumerable<string> InterfaceHttpMethods { get; }
Func<HttpClient, object[], object> BuildRestResultFuncForMethod(string methodName);
}
interface IRequestBuilderF... | Remove method from interface because it's only useful for testing. Generates incorrect results if not used right | Remove method from interface because it's only useful for testing. Generates incorrect results if not used right
| C# | mit | PKRoma/refit,onovotny/refit,mteper/refit,PureWeen/refit,jlucansky/refit,ammachado/refit,jlucansky/refit,mteper/refit,onovotny/refit,PureWeen/refit,paulcbetts/refit,paulcbetts/refit,ammachado/refit |
c0d207f2286b15034254e2214a9807fb14c26700 | src/Orchard.Web/Modules/Lucene/Models/LuceneSearchHit.cs | src/Orchard.Web/Modules/Lucene/Models/LuceneSearchHit.cs | using System;
using Lucene.Net.Documents;
using Orchard.Indexing;
namespace Lucene.Models {
public class LuceneSearchHit : ISearchHit {
private readonly Document _doc;
private readonly float _score;
public float Score { get { return _score; } }
public LuceneSearchHit(Document doc... | using System;
using Lucene.Net.Documents;
using Orchard.Indexing;
namespace Lucene.Models {
public class LuceneSearchHit : ISearchHit {
private readonly Document _doc;
private readonly float _score;
public float Score { get { return _score; } }
public LuceneSearchHit(Document doc... | Fix potential NRE in lucene index | Fix potential NRE in lucene index | C# | bsd-3-clause | jimasp/Orchard,jersiovic/Orchard,LaserSrl/Orchard,abhishekluv/Orchard,ehe888/Orchard,yersans/Orchard,omidnasri/Orchard,Codinlab/Orchard,LaserSrl/Orchard,hbulzy/Orchard,Lombiq/Orchard,jersiovic/Orchard,Dolphinsimon/Orchard,Codinlab/Orchard,hannan-azam/Orchard,tobydodds/folklife,jimasp/Orchard,rtpHarry/Orchard,jtkech/Orc... |
f83c5fa81d8f5291e0c3d75b37e65a35ec8b2a8a | osu.Game.Rulesets.Taiko/Objects/BarLine.cs | osu.Game.Rulesets.Taiko/Objects/BarLine.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Objects;
namespace osu.Game.Rulesets.Taiko.Objects
{
public class BarLine : TaikoHitObject, IBarLine
... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Bindables;
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Objects;
namespace osu.Game.Rulesets.Taiko.Objects
{
public class BarLine... | Add backing bindable for major field | Add backing bindable for major field
| C# | mit | smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu-new,peppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,ppy/osu,peppy/osu,UselessToucan/osu,ppy/osu,smoogipooo/osu,NeoAdonis/osu,peppy/osu |
a5b0307cfb472342bb56a08548b8245d7a8604be | osu.Game/Skinning/LegacyAccuracyCounter.cs | osu.Game/Skinning/LegacyAccuracyCounter.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface;
using osu.Game.Screens.Play;
using o... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface;
using osu.Game.Screens.Play;
using o... | Apply same fix to legacy accuracy counter | Apply same fix to legacy accuracy counter
| C# | mit | UselessToucan/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,peppy/osu,smoogipooo/osu,smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,peppy/osu-new,UselessToucan/osu,ppy/osu,smoogipoo/osu,ppy/osu |
e22f4409099619194187dd1b4e8688443fee1f4d | Assets/Scripts/Player.cs | Assets/Scripts/Player.cs | using UnityEngine;
using System.Collections;
public class Player : MonoBehaviour {
// Movement speed, can be set in the editor
public float speed = 1.0f;
// Player (camera) rotation
private Vector3 playerRotation = new Vector3 (35, 0, 0);
// Player (camera) height
private float playerHeight = 5.0f;
void St... | using UnityEngine;
using System.Collections;
public class Player : MonoBehaviour {
// Movement speed, can be set in the editor
public float speed = 1.0f;
// Player (camera) rotation
private Vector3 playerRotation = new Vector3 (35, 0, 0);
// Player (camera) height
private float playerHeight = 5.0f;
void St... | Apply velocity based on rotational value | Apply velocity based on rotational value
| C# | mit | bastuijnman/open-park |
4e5ddea40188ffb027c392ed139eeb412c354631 | src/Features/LanguageServer/Protocol/Handler/Initialize/InitializeHandler.cs | src/Features/LanguageServer/Protocol/Handler/Initialize/InitializeHandler.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Composition;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.VisualStudio.Langua... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Composition;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.VisualStudio.Langua... | Update completion triggers in LSP to better match local completion. | Update completion triggers in LSP to better match local completion.
| C# | mit | physhi/roslyn,jasonmalinowski/roslyn,bartdesmet/roslyn,ErikSchierboom/roslyn,shyamnamboodiripad/roslyn,AmadeusW/roslyn,wvdd007/roslyn,genlu/roslyn,aelij/roslyn,bartdesmet/roslyn,AmadeusW/roslyn,AlekseyTs/roslyn,stephentoub/roslyn,genlu/roslyn,weltkante/roslyn,bartdesmet/roslyn,sharwell/roslyn,diryboy/roslyn,gafter/rosl... |
baf0fb2f836cefb149f44598096c8d41dacf3d9b | tests/Bugsnag.Tests/BreadcrumbsTests.cs | tests/Bugsnag.Tests/BreadcrumbsTests.cs | using System.Linq;
using Xunit;
namespace Bugsnag.Tests
{
public class BreadcrumbsTests
{
[Fact]
public void RestrictsMaxNumberOfBreadcrumbs()
{
var breadcrumbs = new Breadcrumbs(new Configuration { MaximumBreadcrumbs = 25 });
for (int i = 0; i < 30; i++)
{
breadcrumbs.Leave(... | using System.Linq;
using Xunit;
namespace Bugsnag.Tests
{
public class BreadcrumbsTests
{
[Fact]
public void RestrictsMaxNumberOfBreadcrumbs()
{
var breadcrumbs = new Breadcrumbs(new Configuration { MaximumBreadcrumbs = 25 });
for (int i = 0; i < 30; i++)
{
breadcrumbs.Leave(... | Update test to check that breadcrumbs are returned in correct order when MaximumBreadcrumbs is exceeded | Update test to check that breadcrumbs are returned in correct order when MaximumBreadcrumbs is exceeded
| C# | mit | bugsnag/bugsnag-dotnet,bugsnag/bugsnag-dotnet |
c81a158ac7cede25aed3b8152013db0e82553952 | brewlib/Audio/AudioSample.cs | brewlib/Audio/AudioSample.cs | using ManagedBass;
using System;
using System.Diagnostics;
using System.Resources;
namespace BrewLib.Audio
{
public class AudioSample
{
private const int MaxSimultaneousPlayBacks = 8;
private string path;
public string Path => path;
private int sample;
public readonl... | using ManagedBass;
using System;
using System.Diagnostics;
using System.Resources;
namespace BrewLib.Audio
{
public class AudioSample
{
private const int MaxSimultaneousPlayBacks = 8;
private string path;
public string Path => path;
private int sample;
public readonl... | Use SampleOverrideLongestPlaying for audio samples. | Use SampleOverrideLongestPlaying for audio samples.
| C# | mit | Damnae/storybrew |
ab0daeccce39bd9e3abb02c0872bddfdff403bdb | SnippetsToMarkdown/SnippetsToMarkdown/Commands/WriteHeaderHtmlCommand.cs | SnippetsToMarkdown/SnippetsToMarkdown/Commands/WriteHeaderHtmlCommand.cs | using System.Text;
namespace SnippetsToMarkdown.Commands
{
class WriteHeaderHtmlCommand : ICommand
{
private string directory;
public WriteHeaderHtmlCommand(string directory)
{
this.directory = directory;
}
public void WriteToOutput(StringBuild... | using System.Text;
namespace SnippetsToMarkdown.Commands
{
class WriteHeaderHtmlCommand : ICommand
{
private string directory;
public WriteHeaderHtmlCommand(string directory)
{
this.directory = directory;
}
public void WriteToOutput(StringBuild... | Change header size in HTML generation. | Change header size in HTML generation.
| C# | mit | gilles-leblanc/Sniptaculous |
2b87997ff753d92912ebb67070f0a9dabec43b2b | JSNLog.aspnet5/PublicFacing/Configuration/JSNlogLogger.cs | JSNLog.aspnet5/PublicFacing/Configuration/JSNlogLogger.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Extensions.Logging;
using JSNLog.Infrastructure;
namespace JSNLog
{
internal class JSNlogLogger : IJSNLogLogger
{
private ILoggerFactory _loggerFactory;
public JSNlogLogger(ILoggerFactory log... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Extensions.Logging;
using JSNLog.Infrastructure;
namespace JSNLog
{
public class JSNlogLogger : IJSNLogLogger
{
private ILoggerFactory _loggerFactory;
public JSNlogLogger(ILoggerFactory logge... | Make JSNLogLogger available to the outside world, so it can actually be used in ASP.NET 5 apps | Make JSNLogLogger available to the outside world, so it can actually be used in ASP.NET 5 apps
| C# | mit | mperdeck/jsnlog |
ae7547bbdafdb7b3bdaae3c9386a423fd8f42ea1 | osu.Game/Modes/Objects/Types/IHasDistance.cs | osu.Game/Modes/Objects/Types/IHasDistance.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
namespace osu.Game.Modes.Objects.Types
{
/// <summary>
/// A HitObject that has a distance.
/// </summary>
public interface IHasDistance : IHasE... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
namespace osu.Game.Modes.Objects.Types
{
/// <summary>
/// A HitObject that has a positional length.
/// </summary>
public interface IHasDistanc... | Fix up distance -> positional length comments. | Fix up distance -> positional length comments.
| C# | mit | EVAST9919/osu,ppy/osu,2yangk23/osu,DrabWeb/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,DrabWeb/osu,peppy/osu,Damnae/osu,ZLima12/osu,NeoAdonis/osu,Nabile-Rahmani/osu,tacchinotacchi/osu,smoogipoo/osu,ZLima12/osu,smoogipoo/osu,nyaamara/osu,peppy/osu-new,2yangk23/osu,osu-RP/osu-RP,johnneijzen/osu,peppy/osu,UselessToucan/osu,sm... |
afa5506415dc8690dbe87e59333932b20b428702 | src/Month.cs | src/Month.cs |
namespace Nvelope
{
public enum Month
{
January = 1,
February = 2,
March = 3,
April = 4,
May = 5,
June = 6,
July = 7,
August = 8,
September = 9,
October = 10,
November = 11,
December = 12
}
}... | //-----------------------------------------------------------------------
// <copyright file="Month.cs" company="TWU">
// MIT Licenced
// </copyright>
//-----------------------------------------------------------------------
namespace Nvelope
{
using System.Diagnostics.CodeAnalysis;
/// <summary>
... | Document and suppress an FxCop warning | Document and suppress an FxCop warning
| C# | mit | badjer/Nvelope,badjer/Nvelope,TrinityWestern/Nvelope,TrinityWestern/Nvelope |
d3269ff87fef1184535d08762bbcfe5b4c3e3b78 | csharp/device/Microsoft.Azure.Devices.Client/AuthenticationScheme.cs | csharp/device/Microsoft.Azure.Devices.Client/AuthenticationScheme.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Azure.Devices.Client
{
public enum AuthenticationScheme
{
// Shared Access Signature
SAS = 0,
// X509 Certificate
... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Azure.Devices.Client
{
/// <summary>
/// Specifies the Authentication Scheme used by Device Client
/// </summary>
public enum S
... | Add XML description for Authentication Scheme | Add XML description for Authentication Scheme
| C# | mit | damonbarry/azure-iot-sdks-1,damonbarry/azure-iot-sdks-1,oriolpinol/azure-iot-sdks,Eclo/azure-iot-sdks,damonbarry/azure-iot-sdks-1,Eclo/azure-iot-sdks,dominicbetts/azure-iot-sdks,Eclo/azure-iot-sdks,Eclo/azure-iot-sdks,kevinledinh/azure-iot-sdks,dominicbetts/azure-iot-sdks,kevinledinh/azure-iot-sdks,kevinledinh/azure-io... |
70d22b22ab43a31f44fa646754db7e5c2e1f2e61 | TacoTinder/Assets/Scripts/Player.cs | TacoTinder/Assets/Scripts/Player.cs | using UnityEngine;
using System.Collections;
public class Player : MonoBehaviour {
public float baseFireCooldown;
public float baseRotationSpeed;
public God god;
// public Weapon weapon;
public Vector2 direction; // Maybe this should be private?
public Vector2 targetDirection; // This too.
// Temporary
public... | using UnityEngine;
using System.Collections;
public class Player : MonoBehaviour {
public int playerID;
public float baseFireCooldown;
public float baseRotationSpeed;
public God god;
// public Weapon weapon;
public Vector2 direction; // Maybe this should be private?
public Vector2 targetDirection; // This too.... | Add playerID and revisit the moving. | Add playerID and revisit the moving.
| C# | apache-2.0 | TammiLion/TacoTinder |
4beb86f674c3f90392dea27c922383c6d7784f3b | Junctionizer/UI/Styles/DataGridStyles.xaml.cs | Junctionizer/UI/Styles/DataGridStyles.xaml.cs | using System.Diagnostics;
using System.Windows.Controls;
using System.Windows.Input;
using Junctionizer.Model;
namespace Junctionizer.UI.Styles
{
public partial class DataGridStyles
{
private void DataGridRow_OnMouseDoubleClick(object sender, MouseButtonEventArgs e)
{
if (e.Change... | using System.Diagnostics;
using System.Windows.Controls;
using System.Windows.Input;
using Junctionizer.Model;
namespace Junctionizer.UI.Styles
{
public partial class DataGridStyles
{
private void DataGridRow_OnMouseDoubleClick(object sender, MouseButtonEventArgs e)
{
if (e.Change... | Allow double click to open on junctions when lacking a destination | Allow double click to open on junctions when lacking a destination
| C# | mit | NickLargen/Junctionizer |
54bae40f921a4433c5c7caf94ab78e0f7c3f2672 | StackUsageAnalyzer/StackAnalysisToolWindow.cs | StackUsageAnalyzer/StackAnalysisToolWindow.cs | //------------------------------------------------------------------------------
// <copyright file="StackAnalysisToolWindow.cs" company="Microsoft">
// Copyright (c) Microsoft. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace StackUs... | //------------------------------------------------------------------------------
// <copyright file="StackAnalysisToolWindow.cs" company="Microsoft">
// Copyright (c) Microsoft. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace StackUs... | Change caption of Tool Window | Change caption of Tool Window
| C# | mit | xoriath/atmelstudio-fstack-usage |
c3e4a08b007a00ac848f89d6a10b580bc1997032 | Wox.Infrastructure/Logger/Log.cs | Wox.Infrastructure/Logger/Log.cs | using NLog;
namespace Wox.Infrastructure.Logger
{
public class Log
{
private static NLog.Logger logger = LogManager.GetCurrentClassLogger();
public static void Error(System.Exception e)
{
#if DEBUG
throw e;
#else
while (e.InnerException != null)
{
... | using NLog;
using Wox.Infrastructure.Exception;
namespace Wox.Infrastructure.Logger
{
public class Log
{
private static NLog.Logger logger = LogManager.GetCurrentClassLogger();
public static void Error(System.Exception e)
{
#if DEBUG
throw e;
#else
while (e.Inn... | Fix using for Release build | Fix using for Release build
| C# | mit | qianlifeng/Wox,lances101/Wox,qianlifeng/Wox,Wox-launcher/Wox,lances101/Wox,Wox-launcher/Wox,qianlifeng/Wox |
0de2961330df2f953ad52d7630c908cdcdd7b6d7 | src/tools/SmugMugCodeGen/Options.cs | src/tools/SmugMugCodeGen/Options.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 System;
using System.IO;
namespace SmugMugCodeGen
{
public class Options
{
public string OutputDir { get; private set; }
public stri... | // Copyright (c) Alex Ghiondea. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.IO;
namespace SmugMugCodeGen
{
public class Options
{
public string OutputDir { get; private set; }
public stri... | Change the location of where the Enums are generated to be at the same level as the types. | Change the location of where the Enums are generated to be at the same level as the types.
| C# | mit | AlexGhiondea/SmugMug.NET |
2263b65f9d92c0e7e6d4573e95ab7a83156a720c | samples/Samples.AspNetCore/Startup.cs | samples/Samples.AspNetCore/Startup.cs | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace Samples.AspNetCore
{
public class Startup
{
public Startup(IConfiguration configuration, IHostingEnvironment env)
{
... | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace Samples.AspNetCore
{
public class Startup
{
public Startup(IConfiguration configuration, IHostingEnvironment env)
{
... | Update ASP.NET Core sample code to match actual | Update ASP.NET Core sample code to match actual
| C# | apache-2.0 | NickCraver/StackExchange.Exceptional,NickCraver/StackExchange.Exceptional |
308480bfdc39634cc715989abb312edaf8f84c4b | Assets/GLTF/Scripts/GLTFComponent.cs | Assets/GLTF/Scripts/GLTFComponent.cs | using System;
using System.Collections;
using UnityEngine;
using System.Threading;
using UnityEngine.Networking;
namespace GLTF {
class GLTFComponent : MonoBehaviour
{
public string Url;
public Shader Shader;
public bool Multithreaded = true;
IEnumerator Start()
{
... | using System;
using System.Collections;
using UnityEngine;
using System.Threading;
using UnityEngine.Networking;
namespace GLTF {
class GLTFComponent : MonoBehaviour
{
public string Url;
public Shader Shader;
public bool Multithreaded = true;
IEnumerator Start()
{
... | Remove stray integration test call. | Remove stray integration test call.
| C# | mit | AltspaceVR/UnityGLTF,robertlong/UnityGLTFLoader |
14473b545889539151d7cf5d8c2a58ade870af2d | src/Microsoft.AspNetCore.Session/SessionServiceCollectionExtensions.cs | src/Microsoft.AspNetCore.Session/SessionServiceCollectionExtensions.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 Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Session;
namespace Microsoft.Extensions.DependencyInjection
{
/// <sum... | // 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 Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Session;
namespace Microsoft.Extensions.DependencyInjection
{
/// <sum... | Return IServiceCollection from AddSession extension methods | Return IServiceCollection from AddSession extension methods
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
87959a59d980286daf6c082ef3edda8494e94bf6 | osu.Game/Online/Chat/ChannelType.cs | osu.Game/Online/Chat/ChannelType.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Online.Chat
{
public enum ChannelType
{
Public,
Private,
Multiplayer,
Spectator,
Temporary,
PM,... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Online.Chat
{
public enum ChannelType
{
Public,
Private,
Multiplayer,
Spectator,
Temporary,
PM,... | Add missing "announce" channel type | Add missing "announce" channel type
Of note, this doesn't mean the channels will display, but it does fix
parsing errors which cause the whole chat display to fail.
| C# | mit | peppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,peppy/osu,ppy/osu,ppy/osu |
81ec54e7cf3abcee0fb7d44b9cf4c2e5f68414a4 | src/Agent/LogMessageSeverity.cs | src/Agent/LogMessageSeverity.cs | using System;
using Microsoft.Extensions.Logging;
namespace Gibraltar.Agent
{
/// <summary>
/// This enumerates the severity levels used by Loupe log messages.
/// </summary>
/// <remarks>The values for these levels are chosen to directly map to the TraceEventType enum
/// for the five levels we su... | using System;
using Microsoft.Extensions.Logging;
namespace Gibraltar.Agent
{
/// <summary>
/// This enumerates the severity levels used by Loupe log messages.
/// </summary>
/// <remarks>The values for these levels are chosen to directly map to the TraceEventType enum
/// for the five levels we su... | Correct second copy of severity mappings to be compatible with Loupe. | Correct second copy of severity mappings to be compatible with Loupe.
| C# | mit | GibraltarSoftware/Loupe.Agent.Core,GibraltarSoftware/Loupe.Agent.Core,GibraltarSoftware/Loupe.Agent.Core |
186faafdfd1c33ef4bf131476da8870e887cb00a | osu.Framework.Tests/Visual/Drawables/TestSceneSynchronizationContext.cs | osu.Framework.Tests/Visual/Drawables/TestSceneSynchronizationContext.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.Threading;
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
using osuTK;
namespace osu.Framework.Tests.Visual.Drawa... | // 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.Threading;
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
using osuTK;
namespace osu.Framework.Tests.Visual.Drawa... | Add test of scheduler usage | Add test of scheduler usage
| C# | mit | peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework |
00e50946e29fc21f99585c144f9864e6ad5af4ef | Eluant/LuaValueExtensions.cs | Eluant/LuaValueExtensions.cs | using System;
namespace Eluant
{
public static class LuaValueExtensions
{
public static bool IsNil(this LuaValue self)
{
return self == null || self == LuaNil.Instance;
}
}
}
| using System;
using System.Collections.Generic;
namespace Eluant
{
public static class LuaValueExtensions
{
public static bool IsNil(this LuaValue self)
{
return self == null || self == LuaNil.Instance;
}
public static IEnumerable<LuaValue> EnumerateArray(this LuaTa... | Add EnumerateArray() extension for tables | Add EnumerateArray() extension for tables
| C# | mit | OpenRA/Eluant,cdhowie/Eluant,WFoundation/Eluant |
1d799ff1f86396eb59154a17f3fe2353aa09d791 | Mapsui/Layers/MemoryLayer.cs | Mapsui/Layers/MemoryLayer.cs | using Mapsui.Fetcher;
using Mapsui.Geometries;
using Mapsui.Providers;
using System.Collections.Generic;
using System.Threading.Tasks;
using Mapsui.Styles;
namespace Mapsui.Layers
{
public class MemoryLayer : BaseLayer
{
public IProvider DataSource { get; set; }
public override IEnumerable<IF... | using Mapsui.Fetcher;
using Mapsui.Geometries;
using Mapsui.Providers;
using System.Collections.Generic;
using System.Threading.Tasks;
using Mapsui.Styles;
namespace Mapsui.Layers
{
public class MemoryLayer : BaseLayer
{
public IProvider DataSource { get; set; }
public override IEnumerable<IF... | Fix NullException ocurring in GetFeaturesInView() when BoundingBox is null | Fix NullException ocurring in GetFeaturesInView() when BoundingBox is null
This can happen if no features have been added to a layer, since MemoryProvider.GetExtents() will not find any feature to create a BoundingBox, and return null.
| C# | mit | charlenni/Mapsui,charlenni/Mapsui,tebben/Mapsui,pauldendulk/Mapsui |
59df9468c0c3ac4cc333b2f1e9f5aa33b2548da9 | ACTPlugin.cs | ACTPlugin.cs | using Advanced_Combat_Tracker;
using CefSharp;
using CefSharp.Wpf;
using System;
using System.Windows.Forms;
namespace Cactbot
{
public class ACTPlugin : IActPluginV1
{
SettingsTab settingsTab = new SettingsTab();
BrowserWindow browserWindow;
#region IActPluginV1 Members
public... | using Advanced_Combat_Tracker;
using CefSharp;
using CefSharp.Wpf;
using System;
using System.Windows.Forms;
namespace Cactbot
{
public class ACTPlugin : IActPluginV1
{
SettingsTab settingsTab = new SettingsTab();
BrowserWindow browserWindow;
#region IActPluginV1 Members
public... | Allow cactbot to be restarted | Allow cactbot to be restarted
| C# | apache-2.0 | quisquous/cactbot,quisquous/cactbot,sqt/cactbot,sqt/cactbot,quisquous/cactbot,sqt/cactbot,quisquous/cactbot,quisquous/cactbot,sqt/cactbot,quisquous/cactbot,sqt/cactbot |
d25849c3859765d7caf99dc48cfdcdcd7758f5e6 | src/Carrot/Messages/ConsumedMessageBase.cs | src/Carrot/Messages/ConsumedMessageBase.cs | using System;
using System.Threading.Tasks;
using Carrot.Configuration;
using Carrot.Extensions;
using RabbitMQ.Client;
using RabbitMQ.Client.Events;
namespace Carrot.Messages
{
public abstract class ConsumedMessageBase
{
protected readonly BasicDeliverEventArgs Args;
protected ConsumedMessage... | using System;
using System.Threading.Tasks;
using Carrot.Configuration;
using Carrot.Extensions;
using RabbitMQ.Client;
using RabbitMQ.Client.Events;
namespace Carrot.Messages
{
public abstract class ConsumedMessageBase
{
protected readonly BasicDeliverEventArgs Args;
protected ConsumedMessage... | Use new API to build durable Exchange | Use new API to build durable Exchange
| C# | mit | lsfera/Carrot,naighes/Carrot |
068996678bda9c7b2611f3379808091d519f96a5 | Editor/LoggerWindow.cs | Editor/LoggerWindow.cs | using UnityEngine;
using UnityEditor;
using System;
using System.Collections;
namespace mLogger {
public class LoggerWindow : EditorWindow {
private Logger loggerInstance;
public Logger LoggerInstance {
get {
if (loggerInstance == null) {
loggerI... | using UnityEngine;
using UnityEditor;
using System;
using System.Collections;
namespace mLogger {
public class LoggerWindow : EditorWindow {
private Logger loggerInstance;
public Logger LoggerInstance {
get {
if (loggerInstance == null) {
loggerI... | Add mLogger to Unity Window menu | Add mLogger to Unity Window menu
| C# | mit | bartlomiejwolk/FileLogger |
8cd957784e820f039ca13ccb13019a3a24c2847b | Yeamul.Test/Program.cs | Yeamul.Test/Program.cs | using System;
namespace Yeamul.Test {
class Program {
static void Main(string[] args) {
Node nn = Node.Null;
Console.WriteLine(nn);
Node nbt = true;
Console.WriteLine(nbt);
Node nbf = false;
Console.WriteLine(nbf);
Node n16 = short.MinValue;
Console.WriteLine(n16);
Node n32 = int.Min... | using System;
namespace Yeamul.Test {
class Program {
static void Main() {
Node nn = Node.Null;
Console.WriteLine(nn);
Node nbt = true;
Console.WriteLine(nbt);
Node nbf = false;
Console.WriteLine(nbf);
Node n16 = short.MinValue;
Console.WriteLine(n16);
Node n32 = int.MinValue;
Con... | Remove Main()'s unused args parameter | Remove Main()'s unused args parameter
| C# | mit | OlsonDev/YeamulNet |
fa2754cb07cb110910378f76cd9aaac7539d4eff | LivrariaTest/AutorTest.cs | LivrariaTest/AutorTest.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace LivrariaTest
{
[TestClass]
public class AutorTest
{
[TestMethod]
public void TestMethod1()
{
Assert.AreEqual(true, true);
}
}
}
| using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Livraria;
namespace LivrariaTest
{
[TestClass]
public class AutorTest
{
[TestMethod]
public void TestProperties()
{
Autor autor = new Autor();
autor.CodAutor = 999;
... | Add test for autor properties | Add test for autor properties
| C# | mit | paulodiovani/feevale-cs-livraria-2015 |
3b688c702c5cfd82b4c1e0a5b968d0aac844113e | osu.Game/Screens/Multi/Components/DisableableTabControl.cs | osu.Game/Screens/Multi/Components/DisableableTabControl.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Configuration;
using osu.Framework.Graphics.UserInterface;
using osu.Framework.Input.Events;
namespace osu.Game.Screens.Multi.Components
{
publi... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Configuration;
using osu.Framework.Graphics.UserInterface;
using osu.Framework.Input.Events;
using osuTK.Graphics;
namespace osu.Game.Screens.Multi.... | Use graying rather than alpha | Use graying rather than alpha
| C# | mit | NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,smoogipooo/osu,naoey/osu,DrabWeb/osu,naoey/osu,peppy/osu,johnneijzen/osu,ppy/osu,smoogipoo/osu,DrabWeb/osu,smoogipoo/osu,peppy/osu-new,ZLima12/osu,2yangk23/osu,DrabWeb/osu,ppy/osu,2yangk23/osu,peppy/osu,UselessToucan/osu,naoey/osu,ppy/osu,EVA... |
e456828f656dd7078550f6d6ece140f397d3ed2d | OpenTkApp/Program.cs | OpenTkApp/Program.cs | using System;
namespace OpenTkApp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
| using System;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL;
using OpenTK.Input;
namespace OpenTkApp
{
class Game : GameWindow
{
public Game()
: base(800, 600, GraphicsMode.Default, "OpenTK Quick Start Sample")
{
VSync = VSyncMode.On;
}
... | Use OpenTK triangle sample in OpenTkApp project | Use OpenTK triangle sample in OpenTkApp project
| C# | unlicense | PhilboBaggins/ci-experiments-dotnetcore,PhilboBaggins/ci-experiments-dotnetcore |
27d96a08c1ef25a9a27f3571e280d22bdd89d18a | src/WinApiNet/Properties/AssemblyInfo.cs | src/WinApiNet/Properties/AssemblyInfo.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="WinAPI.NET">
// Copyright (c) Marek Dzikiewicz, All Rights Reserved.
// </copyright>
// ---------------------------------------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="WinAPI.NET">
// Copyright (c) Marek Dzikiewicz, All Rights Reserved.
// </copyright>
// ---------------------------------------------------------------... | Mark WinApiNet assembly as not CLS-compliant | Mark WinApiNet assembly as not CLS-compliant
| C# | mit | MpDzik/winapinet,MpDzik/winapinet |
c38508e9bf4d04bb7aa4af57313659d3738b8138 | FubarDev.WebDavServer.FileSystem.DotNet/DotNetFileSystem.cs | FubarDev.WebDavServer.FileSystem.DotNet/DotNetFileSystem.cs | // <copyright file="DotNetFileSystem.cs" company="Fubar Development Junker">
// Copyright (c) Fubar Development Junker. All rights reserved.
// </copyright>
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using FubarDev.WebDavServer.Props.Store;
using Microsoft.VisualStudio.Thre... | // <copyright file="DotNetFileSystem.cs" company="Fubar Development Junker">
// Copyright (c) Fubar Development Junker. All rights reserved.
// </copyright>
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using FubarDev.WebDavServer.Props.Store;
using Microsoft.VisualStudio.Thre... | Set property store before creating the root collection to make the property store available for some internal file hiding logic | Set property store before creating the root collection to make the property store available for some internal file hiding logic
| C# | mit | FubarDevelopment/WebDavServer,FubarDevelopment/WebDavServer,FubarDevelopment/WebDavServer |
9af939b1416e56b931aaf542885aa2d064a6bf3d | PrimusFlex.Web/Areas/Admin/ViewModels/Employees/CreateEmployeeViewModel.cs | PrimusFlex.Web/Areas/Admin/ViewModels/Employees/CreateEmployeeViewModel.cs | namespace PrimusFlex.Web.Areas.Admin.ViewModels.Employees
{
using System.ComponentModel.DataAnnotations;
using Infrastructure.Mapping;
using Data.Models.Types;
using Data.Models;
public class CreateEmployeeViewModel : IMapFrom<Employee>, IMapTo<Employee>
{
[Required]
[StringL... | namespace PrimusFlex.Web.Areas.Admin.ViewModels.Employees
{
using System.ComponentModel.DataAnnotations;
using Infrastructure.Mapping;
using Data.Models.Types;
using Data.Models;
public class CreateEmployeeViewModel : IMapFrom<Employee>, IMapTo<Employee>
{
[Required]
[StringL... | Add attribute for checking if password and conformation password match | Add attribute for checking if password and conformation password match
| C# | mit | ahmedmatem/primus-flex,ahmedmatem/primus-flex,ahmedmatem/primus-flex |
1e6d1bffcdc0d63966a26bf05aaa48436a861d07 | Sharper.C.Function/Data/FunctionModule.cs | Sharper.C.Function/Data/FunctionModule.cs | using System;
namespace Sharper.C.Data
{
using static UnitModule;
public static class FunctionModule
{
public static Func<A, B> Fun<A, B>(Func<A, B> f)
=>
f;
public static Func<A, Unit> Fun<A>(Action<A> f)
=>
ToFunc(f);
public static Action<A> Act<A>(Action<A> f)
=>
... | using System;
namespace Sharper.C.Data
{
using static UnitModule;
public static class FunctionModule
{
public static Func<A, B> Fun<A, B>(Func<A, B> f)
=>
f;
public static Func<A, Unit> Fun<A>(Action<A> f)
=>
ToFunc(f);
public static Action<A> Act<A>(Action<A> f)
=>
... | Make Compose a non-extension method | Make Compose a non-extension method
| C# | mit | sharper-library/Sharper.C.Function |
3716e857852a0990b3e482b3a709b4545a5d58c1 | Siftables/MainWindow.xaml.cs | Siftables/MainWindow.xaml.cs | namespace Siftables
{
public partial class MainWindowView
{
public MainWindowView()
{
InitializeComponent();
DoAllOfTheThings();
}
}
}
| namespace Siftables
{
public partial class MainWindowView
{
public MainWindowView()
{
InitializeComponent();
}
}
}
| Fix build issues for TeamCity. | Fix build issues for TeamCity.
Signed-off-by: Alexander J Mullans <60c6d277a8bd81de7fdde19201bf9c58a3df08f4@alexmullans.com>
| C# | bsd-2-clause | alexmullans/Siftables-Emulator |
28c5f5af8c11434d36ed3677f4ba80ac22a1ab0d | src/Sceneject.Autofac/AutofacServiceAdapter.cs | src/Sceneject.Autofac/AutofacServiceAdapter.cs | using Autofac;
using SceneJect.Autofac;
using SceneJect.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace SceneJect.Autofac
{
public class AutofacServiceAdapter : ContainerServiceProvider, IResolver, IServiceRegister
{
private readonly Autof... | using Autofac;
using SceneJect.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace SceneJect.Autofac
{
public class AutofacServiceAdapter : ContainerServiceProvider, IResolver, IServiceRegister
{
private readonly AutofacRegisterationStrat regi... | Fix travis/mono by remove SUO | Fix travis/mono by remove SUO
| C# | mit | HelloKitty/SceneJect,HelloKitty/SceneJect |
b69868394719acefc18df55d43e1858fa9822e12 | src/UserInputMacro/ScriptExecuter.cs | src/UserInputMacro/ScriptExecuter.cs | using System.IO;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Scripting;
using Microsoft.CodeAnalysis.CSharp.Scripting;
namespace UserInputMacro
{
static class ScriptExecuter
{
public static async Task ExecuteAsync( string scriptPath )
{
using( var hook = new UserInputHook() ) {
HookSetting... | using System.IO;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Scripting;
using Microsoft.CodeAnalysis.CSharp.Scripting;
namespace UserInputMacro
{
static class ScriptExecuter
{
public static async Task ExecuteAsync( string scriptPath )
{
using( var hook = new UserInputHook() ) {
HookSetting... | Correct in order not to use "Wait" method for synchronized method | Correct in order not to use "Wait" method for synchronized method
| C# | mit | hukatama024e/MacroRecoderCsScript,hukatama024e/UserInputMacro |
050579cc24a7d193ad9929784a2cdab567b16487 | ElectronicCash/ActorName.cs | ElectronicCash/ActorName.cs | namespace ElectronicCash
{
public struct ActorName
{
private readonly string _firstName;
private readonly string _middleName;
private readonly string _lastName;
private readonly string _title;
private readonly string _entityName;
public ActorName(string firstNam... | using System;
namespace ElectronicCash
{
public struct ActorName
{
private readonly string _firstName;
private readonly string _middleName;
private readonly string _lastName;
private readonly string _title;
private readonly string _entityName;
public ActorName(... | Validate data in the ctors | Validate data in the ctors
| C# | mit | 0culus/ElectronicCash |
b3ca342e16f4515a19271db71091de84cd153491 | Modules/AppBrix.Time/ITimeService.cs | Modules/AppBrix.Time/ITimeService.cs | // Copyright (c) MarinAtanasov. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the project root for license information.
//
using System;
namespace AppBrix.Time
{
/// <summary>
/// Service which operates with <see cref="DateTime"/>.
/// </summary>
public interface ITim... | // Copyright (c) MarinAtanasov. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the project root for license information.
//
using System;
namespace AppBrix.Time
{
/// <summary>
/// Service which operates with <see cref="DateTime"/>.
/// </summary>
public interface ITim... | Improve time service interface documentation | Improve time service interface documentation
| C# | mit | MarinAtanasov/AppBrix,MarinAtanasov/AppBrix.NetCore |
e4a456832f61c0a00209c92b7ec95fc464590524 | Kyru/Core/Config.cs | Kyru/Core/Config.cs | using System;
using System.IO;
namespace Kyru.Core
{
internal sealed class Config
{
internal string storeDirectory;
internal Config()
{
storeDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Kyru", "objects");
}
}
} | using System;
using System.IO;
namespace Kyru.Core
{
internal sealed class Config
{
internal string storeDirectory;
internal Config()
{
storeDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "Kyru", "objects");
}
}
} | Fix to make path independant to the version | Fix to make path independant to the version
| C# | bsd-3-clause | zr40/kyru-dotnet,zr40/kyru-dotnet |
867c6e85e4cc7290d625f77299d707fa3646eece | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Autofac.Extras.Tests.CommonServiceLocator")]
[assembly: AssemblyDescription("")]
| using System.Reflection;
[assembly: AssemblyTitle("Autofac.Extras.Tests.CommonServiceLocator")]
| Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major. | Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major.
| C# | mit | autofac/Autofac.Extras.CommonServiceLocator |
27b0266d25e5f68288909f7145c44e6f6daab76b | bs4/Links.cs | bs4/Links.cs | using ToSic.Razor.Blade;
// todo: change to use Get
public class Links : Custom.Hybrid.Code12
{
// Returns a safe url to a post details page
public dynamic LinkToDetailsPage(dynamic post) {
var detailsPageTabId = Text.Has(Settings.DetailsPage)
? int.Parse((AsEntity(App.Settings).GetBestValue("DetailsPage... | using ToSic.Razor.Blade;
public class Links : Custom.Hybrid.Code12
{
/// <Summary>
/// Returns a safe url to a post details page
/// </Summary>
public dynamic LinkToDetailsPage(dynamic post) {
return Link.To(pageId: DetailsPageId, parameters: "details=" + post.UrlKey);
}
/// <Summary>
/// Get / cach... | Improve how the link is made and page is cached | Improve how the link is made and page is cached
| C# | mit | 2sic/app-blog,2sic/app-blog,2sic/app-blog |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.