commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
8fdc8c9d58f1d99973501c13b0a5b7d2dcb2b39b | Disable filtering | ZyshchykMaksim/NLayer.NET,ZyshchykMaksim/NLayer.NET | NLayer.NET.PL/App_Start/FilterConfig.cs | NLayer.NET.PL/App_Start/FilterConfig.cs | using NLayer.NET.PL.Filters;
using System.Web.Mvc;
namespace NLayer.NET.PL.App_Start
{
public class FilterConfig
{
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
//filters.Add(new InternalErrorFilterAttribute());
}
}
} | using NLayer.NET.PL.Filters;
using System.Web.Mvc;
namespace NLayer.NET.PL.App_Start
{
public class FilterConfig
{
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new InternalErrorFilterAttribute());
}
}
} | apache-2.0 | C# |
7ac9583bc22efd02f36618cb3dcb19648b819a29 | Remove unnecessary event callback in WPF demo | Deadpikle/NetSparkle,Deadpikle/NetSparkle | NetSparkleTestAppWPF/MainWindow.xaml.cs | NetSparkleTestAppWPF/MainWindow.xaml.cs | using System.Drawing;
using System.Windows;
namespace NetSparkle.TestAppWPF
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
private Sparkle _sparkle;
public MainWindow()
{
... | using System.Drawing;
using System.Windows;
namespace NetSparkle.TestAppWPF
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
private Sparkle _sparkle;
public MainWindow()
{
... | mit | C# |
2c9fd82f66dd7b8cafe4409baab6a4fe9653bc25 | test new branch | MatthewKapteyn/SubmoduleTest | SubmoduleTest/IwantTOStashThis.cs | SubmoduleTest/IwantTOStashThis.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace SubmoduleTest
{
class IwantTOStashThis
{
// This change is lovely, keep this one
// generic asdfjoa asdfk;jasd
//Bnew branch!!
}
}
| using System;
using System.Collections.Generic;
using System.Text;
namespace SubmoduleTest
{
class IwantTOStashThis
{
// This change is lovely, keep this one
// generic asdfjoa asdfk;jasd
}
}
| unlicense | C# |
b1c9964daa87291a64644a064553078f236f4e37 | Update VersionInfo.cs | imazen/imageflow-dotnet | src/Imageflow/Bindings/VersionInfo.cs | src/Imageflow/Bindings/VersionInfo.cs | using System;
using System.Xml;
namespace Imageflow.Bindings
{
public class VersionInfo
{
private VersionInfo() { }
internal static VersionInfo FromDynamic(dynamic versionInfo)
{
var info = new VersionInfo();
string dateTime = versionInfo.build_date.Value;
... | using System;
using System.Xml;
namespace Imageflow.Bindings
{
public class VersionInfo
{
internal VersionInfo() { }
internal static VersionInfo FromDynamic(dynamic versionInfo)
{
var info = new VersionInfo();
info.BuildDate = XmlConvert.ToDateTime(versionInfo.b... | agpl-3.0 | C# |
a291311c10c666452b1de71e4a8fdb8fa765d472 | Remove Include from clause types. | trenoncourt/AutoQueryable | src/AutoQueryable/Models/Enums/ClauseType.cs | src/AutoQueryable/Models/Enums/ClauseType.cs | using System;
namespace AutoQueryable.Models.Enums
{
[Flags]
public enum ClauseType : short
{
Select = 1 << 1,
Top = 1 << 2,
Take = 1 << 3,
Skip = 1 << 4,
OrderBy = 1 << 5,
OrderByDesc = 1 << 6,
GroupBy = 1 << 8,
First = 1 << 9,
Last ... | using System;
namespace AutoQueryable.Models.Enums
{
[Flags]
public enum ClauseType : short
{
Select = 1 << 1,
Top = 1 << 2,
Take = 1 << 3,
Skip = 1 << 4,
OrderBy = 1 << 5,
OrderByDesc = 1 << 6,
Include = 1 << 7,
GroupBy = 1 << 8,
Fir... | mit | C# |
cfa738855c4fd25baf1f952bd208e41d8c53b708 | Refactor to include PSXFinder rename | Figglewatts/LSDStay | LSDStay/Program.cs | LSDStay/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace LSDStay
{
class Program
{
public static IntPtr PSXOffset = new IntPtr(0x171A5C);
public static IntPtr LocationTimeOffset = new IntPtr(0x8AC70);
private st... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace LSDStay
{
class Program
{
public static IntPtr PSXOffset = new IntPtr(0x171A5C);
public static IntPtr LocationTimeOffset = new IntPtr(0x8AC70);
private st... | mit | C# |
b52412e73cf8f0e941d3440925bbb2adb91564da | Rename Assembly | EdonGashi/WpfMaterialForms | src/MaterialForms/Properties/AssemblyInfo.cs | src/MaterialForms/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated ... | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated ... | mit | C# |
a7982787d446198a2aa95f18eab524fcd3a59d46 | Add basic header text | UselessToucan/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,ppy/osu,peppy/osu,smoogipooo/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,peppy/osu-new | osu.Game/Skinning/Editor/SkinEditor.cs | osu.Game/Skinning/Editor/SkinEditor.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.Framework.Graphics.Containers;
using osu.Framework.Input.Events;
using osu.Game.Graphics;
using os... | // 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.Framework.Graphics.Containers;
using osu.Framework.Input.Events;
using osu.Game.Graphics.Cursor;
... | mit | C# |
a451980aaf3b773d3e7225ba2f4175558b933226 | Rename tests | martincostello/project-euler | src/ProjectEuler.Tests/Puzzles/Puzzle016Tests.cs | src/ProjectEuler.Tests/Puzzles/Puzzle016Tests.cs | // Copyright (c) Martin Costello, 2015. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.ProjectEuler.Puzzles
{
using Xunit;
/// <summary>
/// A class containing tests for the <see cref="Puzzle01... | // Copyright (c) Martin Costello, 2015. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.ProjectEuler.Puzzles
{
using Xunit;
/// <summary>
/// A class containing tests for the <see cref="Puzzle01... | apache-2.0 | C# |
1dfe67f353862d83dbc8ceb8ab0024225def50c8 | Update SettingStrikeOutEffect.cs | asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,maria-sh... | Examples/CSharp/Formatting/DealingWithFontSettings/SettingStrikeOutEffect.cs | Examples/CSharp/Formatting/DealingWithFontSettings/SettingStrikeOutEffect.cs | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Formatting.DealingWithFontSettings
{
public class SettingStrikeOutEffect
{
public static void Main(string[] args)
{
//ExStart:1
// The path to the documents directory.
string dataDir = Aspo... | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Formatting.DealingWithFontSettings
{
public class SettingStrikeOutEffect
{
public static void Main(string[] args)
{
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Utils.... | mit | C# |
4e67097dc3f61442592b1594c28710fbf00e72e0 | Fix "Widget Mouse Down" event property friendly names | danielchalmers/DesktopWidgets | DesktopWidgets/Events/WidgetMouseDownEvent.cs | DesktopWidgets/Events/WidgetMouseDownEvent.cs | using System.ComponentModel;
using System.Windows.Input;
namespace DesktopWidgets.Events
{
internal class WidgetMouseDownEvent : WidgetEventBase
{
[DisplayName("Mouse Button")]
public MouseButton MouseButton { get; set; }
}
} | using System.Windows.Input;
namespace DesktopWidgets.Events
{
internal class WidgetMouseDownEvent : WidgetEventBase
{
public MouseButton MouseButton { get; set; }
}
} | apache-2.0 | C# |
268bc16d32bb4cac4dbb73dd01365a2ef51d7a9f | fix an open filestream issue | YesAndGames/YesAndEngine | Editor/ResourceManagement/ResourceExporter.cs | Editor/ResourceManagement/ResourceExporter.cs | using System.IO;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
namespace YesAndEditor.Exporting {
// A resource exporter facilitates exporting C# data structures to markup output.
public class ResourceExporter<T> {
// Attribute overrides.
private readonly XmlAttributeOverrides overrides... | using System.IO;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
namespace YesAndEditor.Exporting {
// A resource exporter facilitates exporting C# data structures to markup output.
public class ResourceExporter<T> {
// Attribute overrides.
private readonly XmlAttributeOverrides overrides... | apache-2.0 | C# |
f597e974eb5a0d62812cf70b8ec91431cc548f1c | modify IExchangeRatesProvider to handle exchange history - add GetExchangeRatesHistory | 180254/KursyWalut | KursyWalut/Provider/IExchangeRatesProvider.cs | KursyWalut/Provider/IExchangeRatesProvider.cs | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace KursyWalut.Provider
{
internal interface IExchangeRatesProvider : IObservable<int>
{
Task<IList<DateTime>> GetAvailableDates();
Task<IList<ExchangeRate>> GetExchangeRates(DateTime day);
Task<IList<E... | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace KursyWalut.Provider
{
internal interface IExchangeRatesProvider : IObservable<int>
{
Task<IList<DateTime>> GetAvailableDates();
Task<IList<ExchangeRate>> GetExchangeRates(DateTime day);
}
} | mit | C# |
72ace508b605dace2f6f3e684aa83fac3bae3c4c | Reduce memory allocations in MenuCursorContainer | NeoAdonis/osu,UselessToucan/osu,peppy/osu-new,NeoAdonis/osu,smoogipoo/osu,peppy/osu,ppy/osu,ppy/osu,ppy/osu,smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,smoogipoo/osu | osu.Game/Graphics/Cursor/MenuCursorContainer.cs | osu.Game/Graphics/Cursor/MenuCursorContainer.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.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Input;
namespace osu.Game.Graphics.Cursor... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Input;
namespace osu.G... | mit | C# |
4e51c9666176db05c6465b708365440ff41bcd33 | Use the working directory as the installation folder for the InstallCommand. | pratikkagda/nuget,oliver-feng/nuget,RichiCoder1/nuget-chocolatey,mono/nuget,GearedToWar/NuGet2,antiufo/NuGet2,mrward/NuGet.V2,atheken/nuget,OneGet/nuget,oliver-feng/nuget,mrward/nuget,antiufo/NuGet2,ctaggart/nuget,mono/nuget,ctaggart/nuget,indsoft/NuGet2,xoofx/NuGet,indsoft/NuGet2,GearedToWar/NuGet2,mrward/nuget,jmezac... | src/CommandLine/Commands/InstallCommand.cs | src/CommandLine/Commands/InstallCommand.cs | using System;
using System.ComponentModel.Composition;
using System.IO;
using NuGet.Common;
namespace NuGet.Commands {
[Command(typeof(NuGetResources), "install", "InstallCommandDescription", AltName = "i",
MinArgs = 1, MaxArgs = 1,
UsageSummaryResourceName = "InstallCommandUsageSummary", ... | using System;
using System.ComponentModel.Composition;
using NuGet.Common;
namespace NuGet.Commands {
[Command(typeof(NuGetResources), "install", "InstallCommandDescription", AltName = "i",
MinArgs = 1, MaxArgs = 1,
UsageSummaryResourceName = "InstallCommandUsageSummary", UsageDescriptionRe... | apache-2.0 | C# |
2c9094963c22adb4c28150eda51fd2a2533d0671 | Fix Raw method bug (producing duplicated output) | petedavis/essential-templating,smolyakoff/essential-templating,smolyakoff/essential-templating | src/Essential.Templating.Razor/Template.cs | src/Essential.Templating.Razor/Template.cs | using System;
using System.Diagnostics.Contracts;
using System.Globalization;
using System.IO;
using RazorEngine.Templating;
using RazorEngine.Text;
namespace Essential.Templating.Razor
{
public class Template : TemplateBase
{
private readonly TemplateContext _templateContext;
public Template... | using System;
using System.Diagnostics.Contracts;
using System.Globalization;
using System.IO;
using RazorEngine.Templating;
using RazorEngine.Text;
namespace Essential.Templating.Razor
{
public class Template : TemplateBase
{
private readonly TemplateContext _templateContext;
public Template... | mit | C# |
3db9cd912a6f8ae689f354c278d11fadf901b6d3 | Update ServiceContext.cs | hprose/hprose-dotnet | src/Hprose.RPC/ServiceContext.cs | src/Hprose.RPC/ServiceContext.cs | /*--------------------------------------------------------*\
| |
| hprose |
| |
| Official WebSite: https://hprose.com |
| ... | /*--------------------------------------------------------*\
| |
| hprose |
| |
| Official WebSite: https://hprose.com |
| ... | mit | C# |
752763df716878dc5ec19aad647588e1dbeb4ed7 | Update SharedAssemblyInfo.cs | wieslawsoltes/AvaloniaBehaviors,XamlBehaviors/XamlBehaviors,XamlBehaviors/XamlBehaviors,wieslawsoltes/AvaloniaBehaviors | src/Shared/SharedAssemblyInfo.cs | src/Shared/SharedAssemblyInfo.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System.Reflection;
using System.Resources;
[assembly: AssemblyCompany("Wiesław Šoltés")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCopyri... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System.Reflection;
using System.Resources;
[assembly: AssemblyCompany("Wiesław Šoltés")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCopyri... | mit | C# |
2d3055fd09e00628e00a2b03ad4392bdf3a9a713 | Simplify scheme-rooted relative URI check | Strumenta/SmartReader,Strumenta/SmartReader,Strumenta/SmartReader | src/SmartReader/UriExtensions.cs | src/SmartReader/UriExtensions.cs | using System;
using System.Text;
namespace SmartReader
{
internal static class UriExtensions
{
internal static string GetBase(this Uri startUri)
{
var sb = new StringBuilder(startUri.Scheme + "://");
if (!string.IsNullOrEmpty(startUri.UserInfo))
sb.Appe... | using System;
using System.Text;
namespace SmartReader
{
internal static class UriExtensions
{
internal static string GetBase(this Uri startUri)
{
var sb = new StringBuilder(startUri.Scheme + "://");
if (!string.IsNullOrEmpty(startUri.UserInfo))
sb.Appe... | apache-2.0 | C# |
e2ec7408512512d77143142b8213bc3f9ad65bff | remove debugging code that got in there by accident | jonnii/SpeakEasy | src/SpeakEasy/PostLikeRequest.cs | src/SpeakEasy/PostLikeRequest.cs | using System.Net;
namespace SpeakEasy
{
public abstract class PostLikeRequest : HttpRequest
{
protected PostLikeRequest(Resource resource)
: base(resource)
{
Body = new DefaultRequestBody(resource);
}
protected PostLikeRequest(Resource resource, IRequest... | using System;
using System.IO;
using System.Net;
namespace SpeakEasy
{
public abstract class PostLikeRequest : HttpRequest
{
protected PostLikeRequest(Resource resource)
: base(resource)
{
Body = new DefaultRequestBody(resource);
}
protected PostLikeRequ... | apache-2.0 | C# |
d2b4b6e5e2c7a1f693b40ffc8c5c07701275c77a | Fix version and update copyright | aphex3k/Xamarin.Social,pacificIT/Xamarin.Social,xamarin/Xamarin.Social,moljac/Xamarin.Social,pacificIT/Xamarin.Social,aphex3k/Xamarin.Social,junian/Xamarin.Social,xamarin/Xamarin.Social,moljac/Xamarin.Social,junian/Xamarin.Social | src/Xamarin.Social/AssemblyInfo.cs | src/Xamarin.Social/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Xamarin.Social")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[asse... | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Xamarin.Social")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[asse... | apache-2.0 | C# |
c237396d555ec6beebece88c753f4ed9557460a0 | make contact form responsive | tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web | src/Tugberk.Web/Views/Contact/Index.cshtml | src/Tugberk.Web/Views/Contact/Index.cshtml | <div class="embed-responsive embed-responsive-16by9" style="height: 824px;">
<iframe class="embed-responsive-item" src="https://docs.google.com/forms/d/e/1FAIpQLSe0new_RkEqRQc_nMO15EN8Bhkad2wth1g3WaYjwz1orfLiPA/viewform?embedded=true">Loading...</iframe>
</div> | <div>
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLSe0new_RkEqRQc_nMO15EN8Bhkad2wth1g3WaYjwz1orfLiPA/viewform?embedded=true" width="640" height="824" frameborder="0" marginheight="0" marginwidth="0">Loading...</iframe>
</div> | agpl-3.0 | C# |
1cc74690400d97912221fc379fab0c307e22e18a | Update CompositeAssemblyStringLocalizerTests.cs | tiksn/TIKSN-Framework | TIKSN.UnitTests.Shared/Localization/CompositeAssemblyStringLocalizerTests.cs | TIKSN.UnitTests.Shared/Localization/CompositeAssemblyStringLocalizerTests.cs | using System;
using System.Linq;
using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Localization;
using Microsoft.Extensions.Logging;
using Serilog;
using TIKSN.DependencyInjection;
using Xunit;
using Xunit.Abstractions;
namespace TIKSN.Localization.Tests
{
public cl... | using System;
using System.Linq;
using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Localization;
using Microsoft.Extensions.Logging;
using Serilog;
using TIKSN.DependencyInjection;
using Xunit;
using Xunit.Abstractions;
namespace TIKSN.Localization.Tests
{
public cl... | mit | C# |
58c14ffac96069de654c6613f735fbb647ea5cc4 | Add Initial Directory rules | pvdstel/cgppm | src/cgppm/UI/ImageViewer.xaml.cs | src/cgppm/UI/ImageViewer.xaml.cs | using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Me... | using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Me... | mpl-2.0 | C# |
3ea6ac74bdfa39caeafc4700b27d5512fb7be511 | Update index.cshtml | aidka011/apmathcloudaida | site/index.cshtml | site/index.cshtml | @{
var txt = Request.Params["txtstring"];
}
<html>
<body>
<p>The dateTime is @txt</p>
</body>
</html>
| @{
DateTime txt = DateTime.Now;
}
<html>
<body>
<p>The dateTime is @txt</p>
</body>
</html> | mit | C# |
e976cff9ecdffbfc12702145a4952fca9cae4c3e | change text box to text area | ramzzzay/GalleryMVC_With_Auth,ramzzzay/GalleryMVC_With_Auth,ramzzzay/GalleryMVC_With_Auth | GalleryMVC_With_Auth/Views/Images/Comments.cshtml | GalleryMVC_With_Auth/Views/Images/Comments.cshtml | @model IEnumerable<GalleryMVC_With_Auth.Domain.Entities.Comment>
@{
ViewBag.Title = "Comments";
}
<h2>Comments</h2>
@foreach (var item in Model)
{
<div class="comment">
<span style="background: #2E2E2E; color: #be4c39; padding: 5px; margin-bottom: 300px;">Написал: @item.User.UserName</span>
... | @model IEnumerable<GalleryMVC_With_Auth.Domain.Entities.Comment>
@{
ViewBag.Title = "Comments";
}
<h2>Comments</h2>
@foreach (var item in Model)
{
<div class="comment">
<span style="background: #2E2E2E; color: #be4c39; padding: 5px; margin-bottom: 300px;">Написал: @item.User.UserName</span>
... | apache-2.0 | C# |
a8cdfa583475561ace43d667ea32f0e444f84edd | Move usings | acraven/command-line-runner | src/CommandLineRunner.Tests/StubConsoleWriter.cs | src/CommandLineRunner.Tests/StubConsoleWriter.cs | namespace CommandLineParser.Tests
{
using System.Collections.Generic;
using NUnit.Framework;
public class StubConsoleWriter : IWriteToConsole
{
public List<string> Messages { get; } = new List<string>();
public void Write(string format, params object[] args)
{
Messages.Add(stri... | using System.Collections.Generic;
using NUnit.Framework;
namespace CommandLineParser.Tests
{
public class StubConsoleWriter : IWriteToConsole
{
public List<string> Messages { get; } = new List<string>();
public void Write(string format, params object[] args)
{
Messages.Add(string.For... | mit | C# |
6731de09a54ac969faa8f825e7c54a657983cf70 | add information when default credentials are used | Opiskull/PowershellRelease | src/PowershellHelper/Commands/Push-Repository.cs | src/PowershellHelper/Commands/Push-Repository.cs | using System.Management.Automation;
using System.Security;
using PowershellHelper.Services;
namespace PowershellHelper.Commands
{
[Cmdlet(VerbsCommon.Push, "Repository",
DefaultParameterSetName = "PushRepository")]
public class PushRepository : PSCmdlet
{
[Parameter(
ParameterS... | using System.Management.Automation;
using System.Security;
using PowershellHelper.Services;
namespace PowershellHelper.Commands
{
[Cmdlet(VerbsCommon.Push, "Repository",
DefaultParameterSetName = "PushRepository")]
public class PushRepository : PSCmdlet
{
[Parameter(
ParameterS... | mit | C# |
24c25965a91d9ade959a03e1e7f4d63934f85225 | Make NotEqualStateTrigger implement ITriggerValue. | dotMorten/WindowsStateTriggers | src/WindowsStateTriggers/NotEqualStateTrigger.cs | src/WindowsStateTriggers/NotEqualStateTrigger.cs | // Copyright (c) Morten Nielsen. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Globalization;
using Windows.Foundation.Metadata;
using Windows.UI.Xaml;
namespace WindowsStateTriggers
{
/// <summary>
/// Ena... | // Copyright (c) Morten Nielsen. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Globalization;
using Windows.Foundation.Metadata;
using Windows.UI.Xaml;
namespace WindowsStateTriggers
{
/// <summary>
/// Ena... | mit | C# |
06fce252c83aad7d5aeaac4a08a797ab3d5f5b21 | Fix wrong controller property name | roman-yagodin/R7.Documents,roman-yagodin/R7.Documents,roman-yagodin/R7.Documents | R7.Documents/components/DocumentModuleBase.cs | R7.Documents/components/DocumentModuleBase.cs | //
// EmployeeModuleBase.cs
//
// Author:
// Roman M. Yagodin <roman.yagodin@gmail.com>
//
// Copyright (c) 2014
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software withou... | //
// EmployeeModuleBase.cs
//
// Author:
// Roman M. Yagodin <roman.yagodin@gmail.com>
//
// Copyright (c) 2014
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software withou... | mit | C# |
50837559ada9501504decc290d7ec96c806db116 | Fix dem bugs | ArcticEcho/Hatman | Hatman/Commands/Dice.cs | Hatman/Commands/Dice.cs | using System;
using System.Text.RegularExpressions;
using ChatExchangeDotNet;
namespace Hatman.Commands
{
class Dice : ICommand
{
private readonly Regex ptn = new Regex(@"(?i)^d(?![io])", Extensions.RegOpts);
private readonly string[] errorPhrases = new[]
{
"https://i.imgfl... | using System;
using System.Text.RegularExpressions;
using ChatExchangeDotNet;
namespace Hatman.Commands
{
class Dice : ICommand
{
private readonly Regex ptn = new Regex(@"(?i)^d(?!o)", Extensions.RegOpts);
private readonly string[] errorPhrases = new[]
{
"https://i.imgflip.... | isc | C# |
5863f80fec041ef7a31b0ec3d186d319c7ef10f4 | Update WalletWasabi.Gui/CrashReport/CrashReporter.cs | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Gui/CrashReport/CrashReporter.cs | WalletWasabi.Gui/CrashReport/CrashReporter.cs | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using WalletWasabi.Gui.CrashReport.Models;
using WalletWasabi.Helpers;
using WalletWasabi.Logging;
using WalletWasabi.Microservices;
namespace WalletWasabi.Gui.CrashReport
{
public class CrashReporter
... | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using WalletWasabi.Gui.CrashReport.Models;
using WalletWasabi.Helpers;
using WalletWasabi.Logging;
using WalletWasabi.Microservices;
namespace WalletWasabi.Gui.CrashReport
{
public class CrashReporter
... | mit | C# |
b5af0e740177e2f4b13634d3c2f36a6acfa74f17 | Remove some unused strings | Lohikar/XenoBot2 | XenoBot2/Data/CommandData.cs | XenoBot2/Data/CommandData.cs | using System.Collections.Generic;
namespace XenoBot2.Data
{
/// <summary>
/// Strings & other data used by commands.
/// </summary>
internal static class Strings
{
public static readonly IReadOnlyList<string> SudoMessages = new List<string>
{
"You can't tell me what to do!",
"You're not the boss of me... | using System.Collections.Generic;
namespace XenoBot2.Data
{
/// <summary>
/// Strings & other data used by commands.
/// </summary>
internal static class Strings
{
public static readonly IReadOnlyList<string> SudoMessages = new List<string>
{
"You can't tell me what to do!",
"You're not the boss of me... | mit | C# |
b92c7049080c9af518a6c50de15b86f740ad7106 | remove redundant data-provide attribute and add IF to form | OlegKleyman/AlphaDev,OlegKleyman/AlphaDev,OlegKleyman/AlphaDev | web/AlphaDev.Web/Views/Posts/Create.cshtml | web/AlphaDev.Web/Views/Posts/Create.cshtml | @model AlphaDev.Web.Models.CreatePostViewModel
@{
ViewBag.Title = "Create Post";
}
@section styles
{
<link href="~/lib/bootstrap-markdown/css/bootstrap-markdown.min.css" rel="stylesheet"/>
}
<h1 class="text-center">Create Post</h1>
<form id="createForm" method="post">
<div class="col-lg-12">
<di... | @model AlphaDev.Web.Models.CreatePostViewModel
@{
ViewBag.Title = "Create Post";
}
@section styles
{
<link href="~/lib/bootstrap-markdown/css/bootstrap-markdown.min.css" rel="stylesheet"/>
}
<h1 class="text-center">Create Post</h1>
<form method="post">
<div class="col-lg-12">
<div>
<... | unlicense | C# |
b5ac4d766d864198e2d5eb0d9011af4c8659039e | add sine curve | yasokada/unity-150906-sineGraph | Assets/graphDrawControl.cs | Assets/graphDrawControl.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic; // for List<>
/*
* v0.1 2015/09/06
* - draw line over Panel
*/
public class graphDrawControl : MonoBehaviour {
private GameObject lineGroup; // for grouping
List<Vector2> my2DPoint;
public GameObject myPanel;
public Canvas myCa... | using UnityEngine;
using System.Collections;
using System.Collections.Generic; // for List<>
/*
* v0.1 2015/09/06
* - draw line over Panel
*/
public class graphDrawControl : MonoBehaviour {
private GameObject lineGroup; // for grouping
List<Vector2> my2DPoint;
public GameObject myPanel;
public Canvas myCa... | mit | C# |
67e6b91fdc29034f347541ff8dbc66492de97ae7 | Update CellTypeConverter.cs | smartsheet-platform/smartsheet-csharp-sdk,smartsheet-platform/smartsheet-csharp-sdk | main/Smartsheet/Api/Internal/Json/CellTypeConverter.cs | main/Smartsheet/Api/Internal/Json/CellTypeConverter.cs | // #[ license]
// SmartsheetClient SDK for C#
// %%
// Copyright (C) 2017 SmartsheetClient
// %%
// 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
//
// ... | // #[ license]
// SmartsheetClient SDK for C#
// %%
// Copyright (C) 2017 SmartsheetClient
// %%
// 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
//
// ... | apache-2.0 | C# |
60dd9f1cfe5593847ea522a68096bf4b0892fb29 | Update padding function | IvionSauce/MeidoBot | NyaaSpam/OutputTools.cs | NyaaSpam/OutputTools.cs | using System;
using System.Text;
using System.Collections.Generic;
static class OutputTools
{
public static IEnumerable<string> TwoColumns(string[] patterns)
{
var half = (int)Math.Ceiling(patterns.Length / 2d);
int longestLength = 0;
for (int i = 0; i < half; i++)
{
... | using System;
using System.Text;
using System.Collections.Generic;
static class OutputTools
{
public static IEnumerable<string> TwoColumns(string[] patterns)
{
var half = (int)Math.Ceiling(patterns.Length / 2d);
int longestLength = 0;
for (int i = 0; i < half; i++)
{
... | bsd-2-clause | C# |
b05ab7fe62156711cb8e39defe56ca7104d0f9ae | Set navigation bar translucent to false to fix views overlapping. Fix bug [14631] | a9upam/monotouch-samples,YOTOV-LIMITED/monotouch-samples,YOTOV-LIMITED/monotouch-samples,sakthivelnagarajan/monotouch-samples,albertoms/monotouch-samples,xamarin/monotouch-samples,davidrynn/monotouch-samples,sakthivelnagarajan/monotouch-samples,labdogg1003/monotouch-samples,kingyond/monotouch-samples,andypaul/monotouch... | Drawing/AppDelegate.cs | Drawing/AppDelegate.cs | using System;
using MonoTouch.UIKit;
using MonoTouch.Foundation;
namespace Example_Drawing
{
[Register("AppDelegate")]
public class AppDelegate : UIApplicationDelegate
{
#region -= declarations and properties =-
protected UIWindow window;
protected UINavigationController mainNavController;
protected Exam... | using System;
using MonoTouch.UIKit;
using MonoTouch.Foundation;
namespace Example_Drawing
{
[Register("AppDelegate")]
public class AppDelegate : UIApplicationDelegate
{
#region -= declarations and properties =-
protected UIWindow window;
protected UINavigationController mainNavController;
protected Exam... | mit | C# |
164e9ee144bcdafd118ac32b15d1a82c1a050ab9 | Correct the alphabet | wrightg42/enigma-simulator,It423/enigma-simulator | Enigma/EnigmaUtilities/Resources.cs | Enigma/EnigmaUtilities/Resources.cs | // Resources.cs
// <copyright file="Resources.cs"> This code is protected under the MIT License. </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EnigmaUtilities
{
/// <summary>
/// A static class with commonly used func... | // Resources.cs
// <copyright file="Resources.cs"> This code is protected under the MIT License. </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EnigmaUtilities
{
/// <summary>
/// A static class with commonly used func... | mit | C# |
af8f9d6773c8960e3cfa374325fc6c7d56e0606a | fix logout image url (#620) | Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex | backend/src/Squidex/Areas/IdentityServer/Views/Account/LogoutCompleted.cshtml | backend/src/Squidex/Areas/IdentityServer/Views/Account/LogoutCompleted.cshtml | @{
ViewBag.Title = T.Get("users.logout.title");
}
<img class="splash-image" src="@Url.RootContentUrl("~/squid.svg?title=BYE%20BYE&text=Hope%20to%20see%20you%20again%20soon!&face=happy")" />
<h1 class="splash-h1">@T.Get("users.logout.headline")</h1>
<p class="splash-text">
@T.Get("users.logout.text")
</p>
| @{
ViewBag.Title = T.Get("users.logout.title");
}
<img class="splash-image" src="@Url.Content("~/squid.svg?title=BYE%20BYE&text=Hope%20to%20see%20you%20again%20soon!&face=happy")" />
<h1 class="splash-h1">@T.Get("users.logout.headline")</h1>
<p class="splash-text">
@T.Get("users.logout.text")
</p> | mit | C# |
e3ae5a4e447c5590313122af183c7021d2e1b1a9 | Add more benchmark cases | ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework | osu.Framework.Benchmarks/BenchmarkLocalisableString.cs | osu.Framework.Benchmarks/BenchmarkLocalisableString.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using BenchmarkDotNet.Attributes;
using osu.Framework.Localisation;
namespace osu.Framework.Benchmarks
{
[MemoryDiagnoser]
public class BenchmarkLo... | // 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 BenchmarkDotNet.Attributes;
using osu.Framework.Localisation;
namespace osu.Framework.Benchmarks
{
[MemoryDiagnoser]
public class BenchmarkLocalisableStrin... | mit | C# |
fef8222822307a5e7c4c4ad5ef53062075d02fc6 | Bump version to 13.0.3.28116 | HearthSim/HearthDb | HearthDb/Properties/AssemblyInfo.cs | HearthDb/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("Hea... | 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("Hea... | mit | C# |
100b17dad96430d7a128e2affed53febf36e1c0a | Fix incorrectly implemented async test. | jcheng31/SGEnviro | SGEnviroTest/ApiTest.cs | SGEnviroTest/ApiTest.cs | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SGEnviro;
namespace SGEnviroTest
{
[TestClass]
public class ApiTest
{
private string apiKey;
... | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SGEnviro;
namespace SGEnviroTest
{
[TestClass]
public class ApiTest
{
private string apiKey;
... | mit | C# |
20616f1ac193c9c87ffbe6ec8853fa356eb600aa | Print dotnet version on build | nlowe/EECS4100,nlowe/EECS4100 | build.cake | build.cake | #tool nuget:?package=NUnit.ConsoleRunner&version=3.4.0
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
Setup(ctx =>
{
Information("Using dotnet core version: ");
StartProcess("dotnet", new ProcessSettings().WithArguments(a =>
a.Append("--version"... | #tool nuget:?package=NUnit.ConsoleRunner&version=3.4.0
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
Task("Clean")
.Does(() =>
{
CleanDirectories("./**/bin");
CleanDirectories("./**/obj");
});
Task("Restore")
.IsDependentOn("Clean")
.Does(()... | mit | C# |
1e00fc73bef2ec89aff885c9bed81aa26e7e0c2b | Update ITextFieldReader.cs | wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,Core2D/Core2D | src/Core2D/Model/Interfaces/ITextFieldReader.cs | src/Core2D/Model/Interfaces/ITextFieldReader.cs | using System.IO;
namespace Core2D.Interfaces
{
/// <summary>
/// Defines text field reader contract.
/// </summary>
/// <typeparam name="T">The database type.</typeparam>
public interface ITextFieldReader<T>
{
/// <summary>
/// Gets text field reader name.
/// </summary... |
namespace Core2D.Interfaces
{
/// <summary>
/// Defines text field reader contract.
/// </summary>
/// <typeparam name="T">The database type.</typeparam>
public interface ITextFieldReader<T>
{
/// <summary>
/// Read fields from text database file format.
/// </summary>
... | mit | C# |
e6517ae057a6dea4cda68ec5b6d3743470590191 | Remove unused usings. | vlasovsv/Seeker,vlasovsv/Seeker,vlasovsv/Seeker | Seeker/SeekerContext.cs | Seeker/SeekerContext.cs | using Akka.Actor;
namespace Seeker
{
public static class SeekerContext
{
public static ActorSystem ActorSystem
{
get;
set;
}
}
}
| using Akka.Actor;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Seeker
{
public static class SeekerContext
{
public static ActorSystem ActorSystem
{
get;
set;
}
}
}
| apache-2.0 | C# |
87d39fb37461f07271764b40ebf5d003d22712cc | Update IGroupShape.cs | Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D | src/Core2D/Model/Shapes/IGroupShape.cs | src/Core2D/Model/Shapes/IGroupShape.cs | using System.Collections.Immutable;
using Core2D.Data;
namespace Core2D.Shapes
{
/// <summary>
/// Defines group shape contract.
/// </summary>
public interface IGroupShape : IConnectableShape
{
/// <summary>
/// Gets all properties from <see cref="Shapes"/> collection.
///... | using System.Collections.Immutable;
using Core2D.Data;
namespace Core2D.Shapes
{
/// <summary>
/// Defines group shape contract.
/// </summary>
public interface IGroupShape : IConnectableShape
{
/// <summary>
/// Gets all properties from <see cref="Shapes"/> collection.
///... | mit | C# |
0e9c1f6443b35d7fbbd79638c5306a33b50ff5ec | Update HttpPoller.cs | keith-hall/Extensions,keith-hall/Extensions | src/HttpPoller.cs | src/HttpPoller.cs | using System;
using System.Net;
using System.Reactive.Linq;
namespace HallLibrary.Extensions
{
/// <summary>
/// Contains static methods useful for polling a REST/HTTP server's resources.
/// </summary>
public static class HttpPoller
{
/// <summary>
/// Contains the response headers and plain text content fro... | using System;
using System.Net;
using System.Reactive.Linq;
namespace HallLibrary.Extensions
{
public static class HttpPoller
{
public struct ResponseDetails
{
public WebHeaderCollection Headers;
public string Text;
}
/// <summary>
/// Poll a <paramref name="url"/> at the specified <paramref name=... | apache-2.0 | C# |
e46f894a98e9d6a0f3ee760c91097ff4ef5e37b1 | Add xmldoc comments to Paths | github/VisualStudio,github/VisualStudio,github/VisualStudio | src/GitHub.Exports/Primitives/Paths.cs | src/GitHub.Exports/Primitives/Paths.cs | using System;
using System.IO;
namespace GitHub.Primitives
{
/// <summary>
/// Convert to and from Git paths.
/// </summary>
public static class Paths
{
public const char GitDirectorySeparatorChar = '/';
/// <summary>
/// Convert from a relative path to a Git path.
... | using System;
using System.IO;
namespace GitHub.Primitives
{
public static class Paths
{
public const char GitDirectorySeparatorChar = '/';
public static string ToGitPath(string relativePath)
{
return relativePath.Replace(Path.DirectorySeparatorChar, GitDirectorySeparatorC... | mit | C# |
2a3daff720ed575e477d2c4ce3f428315d18df41 | improve hex encoder performance | bitcoinbrisbane/NBitcoin,dangershony/NStratis,HermanSchoenfeld/NBitcoin,MetacoSA/NBitcoin,NicolasDorier/NBitcoin,MetacoSA/NBitcoin,lontivero/NBitcoin,thepunctuatedhorizon/BrickCoinAlpha.0.0.1,stratisproject/NStratis,you21979/NBitcoin | NBitcoin/DataEncoders/HexEncoder.cs | NBitcoin/DataEncoders/HexEncoder.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBitcoin.DataEncoders
{
public class HexEncoder : DataEncoder
{
public bool Space
{
get;
set;
}
public override string EncodeData(byte[] data, int length)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBitcoin.DataEncoders
{
public class HexEncoder : DataEncoder
{
public bool Space
{
get;
set;
}
public override string EncodeData(byte[] data, int length)
{
... | mit | C# |
39b77712e3575b38487bf6e30f83b35ee965bcc1 | fix typo in WaitForJoin | puckipedia/CardsAgainstIRC | CardsAgainstIRC3/Game/States/WaitForJoin.cs | CardsAgainstIRC3/Game/States/WaitForJoin.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CardsAgainstIRC3.Game.States
{
public class WaitForJoin : Base
{
public WaitForJoin(GameManager manager)
: base(manager)
{ }
[Command("!start")]
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CardsAgainstIRC3.Game.States
{
public class WaitForJoin : Base
{
public WaitForJoin(GameManager manager)
: base(manager)
{ }
[Command("!start")]
... | mit | C# |
704c8aa992712535e7a85fc52a44f29abb241b22 | Improve code documentation in the ILedgerQueries interface | openchain/openchain | src/Openchain.Ledger/ILedgerQueries.cs | src/Openchain.Ledger/ILedgerQueries.cs | // Copyright 2015 Coinprism, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | // Copyright 2015 Coinprism, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | apache-2.0 | C# |
3e900affb2f318bf9b01912dcfd59d37c076d239 | Update HttpContextAccessor.cs | tobydodds/folklife,gcsuk/Orchard,jchenga/Orchard,vairam-svs/Orchard,aaronamm/Orchard,omidnasri/Orchard,brownjordaninternational/OrchardCMS,mvarblow/Orchard,jchenga/Orchard,Lombiq/Orchard,hbulzy/Orchard,SouleDesigns/SouleDesigns.Orchard,yersans/Orchard,sfmskywalker/Orchard-Off-The-Grid-Sample-Code,OrchardCMS/Orchard,abh... | src/Orchard/Mvc/HttpContextAccessor.cs | src/Orchard/Mvc/HttpContextAccessor.cs | using System;
using System.Web;
using Autofac;
namespace Orchard.Mvc {
public class HttpContextAccessor : IHttpContextAccessor {
readonly ILifetimeScope _lifetimeScope;
private HttpContextBase _httpContext;
private IWorkContextAccessor _wca;
public HttpContextAccessor(ILifetimeScop... | using System;
using System.Web;
using Autofac;
namespace Orchard.Mvc {
public class HttpContextAccessor : IHttpContextAccessor {
readonly ILifetimeScope _lifetimeScope;
private HttpContextBase _httpContext;
private IWorkContextAccessor _wca;
public HttpContextAccessor(ILifetimeScop... | bsd-3-clause | C# |
10234388e2379ab5c383381fe142f5365f4d2ed6 | Increment minor version - breaking changes. | bkjuice/RestKit | src/RestKit/Properties/AssemblyInfo.cs | src/RestKit/Properties/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("RestKit")]
[assembly: AssemblyDescription("SIMPLE http client wrapper that eliminates the boilerplate code you don't want to write.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly:... | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("RestKit")]
[assembly: AssemblyDescription("SIMPLE http client wrapper that eliminates the boilerplate code you don't want to write.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly:... | mit | C# |
c1c7b411ac81a9619867fcb1bf384d5099b50276 | Update sample application to retrieve tweets from the user's home timeline | misenhower/MicroTweet | SampleApplication/Program.cs | SampleApplication/Program.cs | using System;
using Microsoft.SPOT;
using MicroTweet;
using System.Net;
using System.Threading;
namespace SampleApplication
{
public class Program
{
public static void Main()
{
// Wait for DHCP
while (IPAddress.GetDefaultLocalAddress() == IPAddress.Any)
T... | using System;
using Microsoft.SPOT;
using MicroTweet;
using System.Net;
using System.Threading;
namespace SampleApplication
{
public class Program
{
public static void Main()
{
// Wait for DHCP
while (IPAddress.GetDefaultLocalAddress() == IPAddress.Any)
T... | apache-2.0 | C# |
8c098175dbdc3d43621f6081429c72da5f3c2d85 | Bump to version 2.1.3.0 | Silv3rPRO/proshine,MeltWS/proshine,bobus15/proshine | PROShine/Properties/AssemblyInfo.cs | PROShine/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
using System.Windows;
// 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: As... | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
using System.Windows;
// 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: As... | mit | C# |
5770a27e0fd26338307405aa8832201c98037a42 | Change hostnames | ukahoot/ukahoot,ukahoot/ukahoot.github.io,ukahoot/ukahoot.github.io,ukahoot/ukahoot,ukahoot/ukahoot,ukahoot/ukahoot.github.io,ukahoot/ukahoot | TokenServer/src/Main.cs | TokenServer/src/Main.cs | using System;
using System.Threading;
using System.Threading.Tasks;
namespace UKahoot {
class MainClass {
public static string[] Hosts = {
"tokenserver.ukahoot.it"
};
public static int Port = 5556;
public static TokenServer ts;
public static void Main(string[] args) {
ts = new TokenServer(Hosts, Port)... | using System;
using System.Threading;
using System.Threading.Tasks;
namespace UKahoot {
class MainClass {
public static string[] Hosts = {
"127.0.0.1",
"localhost"
};
public static int Port = 5556;
public static TokenServer ts;
public static void Main(string[] args) {
ts = new TokenServer(Hosts, Po... | mit | C# |
fe2b84735bfd9ba728f807adfc18897db77cf5bb | Fix crashing in the case of empty args | NathanLBCooper/ProcessGremlin | ProcessGremlinApp/ArgumentParser.cs | ProcessGremlinApp/ArgumentParser.cs | using CommandLine;
namespace ProcessGremlinApp
{
public class ArgumentParser
{
public bool TryParse(string[] args, out Arguments arguments)
{
if (args != null && args.Length != 0)
{
string invokedVerb = null;
object invokedVerbInstance = n... | using CommandLine;
namespace ProcessGremlinApp
{
public class ArgumentParser
{
public bool TryParse(string[] args, out Arguments arguments)
{
string invokedVerb = null;
object invokedVerbInstance = null;
var options = new Options();
if (Parser.De... | bsd-3-clause | C# |
079cba7e464716c64dfb3cebb3326647c6e44d22 | Modify demo project | prkumari/Schema.N | Schema.N/DocDbDemoClient/Program.cs | Schema.N/DocDbDemoClient/Program.cs | using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Threading.Tasks;
using DocumentDbClientLibrary;
using Newtonsoft.Json.Linq;
using Schema.N;
namespace DocDbDemoClient
{
class Program
{
static DocumentDbClient DocDbClient { get; set; }
static void Ma... | using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Threading.Tasks;
using DocumentDbClientLibrary;
using Newtonsoft.Json.Linq;
using Schema.N;
namespace DocDbDemoClient
{
class Program
{
static DocumentDbClient DocDbClient { get; set; }
static void Ma... | mit | C# |
e29607b72fe263af372edf5271628da68059af1a | add XwtComponent.Tag property | hwthomas/xwt,iainx/xwt,mono/xwt,lytico/xwt,mminns/xwt,akrisiun/xwt,steffenWi/xwt,TheBrainTech/xwt,antmicro/xwt,sevoku/xwt,hamekoz/xwt,residuum/xwt,mminns/xwt,directhex/xwt,cra0zy/xwt | Xwt/Xwt/XwtComponent.cs | Xwt/Xwt/XwtComponent.cs | //
// XwtComponent.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 2011 Xamarin Inc
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restrict... | //
// XwtComponent.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 2011 Xamarin Inc
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restrict... | mit | C# |
9006606a005622ded5c7422fdcb1e37f25da0f08 | update version | gaochundong/Logrila | Logrila/SolutionVersion.cs | Logrila/SolutionVersion.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyDescription("Logrila is a simple logging adapter.")]
[assembly: AssemblyCompany("Dennis Gao")]
[assembly: AssemblyProduct("Logrila")]
[assembly: AssemblyCopyright("Copyright © 2015-2016 Dennis Gao")]
[assembly: AssemblyTrademark("")]
[a... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyDescription("Logrila is a simple logging adapter.")]
[assembly: AssemblyCompany("Dennis Gao")]
[assembly: AssemblyProduct("Logrila")]
[assembly: AssemblyCopyright("Copyright © 2015-2016 Dennis Gao.")]
[assembly: AssemblyTrademark("")]
[... | mit | C# |
8dc91f6448510cd4c71e7e8961fb6eb6822ea1ad | Modify UpdateInterval constants. | Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW | src/NadekoBot/Common/UpdateInterval.cs | src/NadekoBot/Common/UpdateInterval.cs | namespace Mitternacht.Common
{
public class UpdateInterval
{
public const int WaitForForum = 500;
public const int TeamUpdate = 60 * 1000;
public const int Birthday = 60 * 1000;
}
}
| namespace Mitternacht.Common
{
public class UpdateInterval
{
public const int WaitForForum = 500;
public const int TeamUpdate = 1 * 60 * 1000;
public const int Birthday = 1* 60 * 1000;
}
}
| mit | C# |
e9a4987024d9f2c6e22df7891cb64174fc9b3437 | tidy up | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EAS.Portal.Jobs/Program.cs | src/SFA.DAS.EAS.Portal.Jobs/Program.cs | using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using SFA.DAS.EAS.Portal.Jobs.Startup;
using SFA.DAS.EAS.Portal.Jobs.StartupJobs;
using SFA.DAS.EAS.Portal.Startup;
namespace SFA.DAS.EAS.Portal.Jobs
{
class Program
... | using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using SFA.DAS.EAS.Portal.Jobs.Startup;
using SFA.DAS.EAS.Portal.Jobs.StartupJobs;
using SFA.DAS.EAS.Portal.Startup;
namespace SFA.DAS.EAS.Portal.Jobs
{
class Program
... | mit | C# |
fcb99a0f6f3a89f9f8b6710f3b89c625d904550a | fix settings in test | BigBabay/AsyncConverter,BigBabay/AsyncConverter | AsyncConverter.Tests/Highlightings/ConfigureAwait/ConfigureAwaitOnTestTests.cs | AsyncConverter.Tests/Highlightings/ConfigureAwait/ConfigureAwaitOnTestTests.cs | using AsyncConverter.Settings.ConfigureAwaitOptions;
using JetBrains.ReSharper.TestFramework;
namespace AsyncConverter.Tests.Highlightings.ConfigureAwait
{
[TestSetting(typeof(AsyncConverterConfigureAwaitSettings), nameof(AsyncConverterConfigureAwaitSettings.ExcludeTestMethodsFromConfigureAwait), false)]
publ... | using AsyncConverter.Settings.ConfigureAwaitOptions;
using AsyncConverter.Settings.General;
using JetBrains.ReSharper.TestFramework;
namespace AsyncConverter.Tests.Highlightings.ConfigureAwait
{
[TestSetting(typeof(GeneralSettings), nameof(AsyncConverterConfigureAwaitSettings.ExcludeTestMethodsFromConfigureAwait)... | mit | C# |
798296ff3abfdc0638fd5a1a83d5310a4617f610 | reset injections on scene load | mfav/syrinj | Scripts/SceneInjector.cs | Scripts/SceneInjector.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace Syrinj
{
public class SceneInjector : MonoBehaviour
{
public static SceneInjector Instance;
void Awake()
{
Instance = this;
DependencyContainer.In... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace Syrinj
{
public class SceneInjector : MonoBehaviour
{
public static SceneInjector Instance;
void Awake()
{
Instance = this;
InjectScene();
... | mit | C# |
65b6ad4436be3c527977f6b0c38afd8750af2d48 | Bump version to 0.9.1 | ngocnicholas/airtable.net | AirtableApiClient/Properties/AssemblyInfo.cs | AirtableApiClient/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("Ai... | 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("Ai... | mit | C# |
25b622621a399435d22b6c5f7f2567df5e05323f | Repair Settings namespace reference | ibebbs/Harmonize,ibebbs/Harmonize | Bebbs.Harmonize.Console/Settings/Provider.cs | Bebbs.Harmonize.Console/Settings/Provider.cs | using Bebbs.Harmonize.With.Settings;
using System;
namespace Bebbs.Harmonize.Console.Settings
{
internal class Provider : IProvider
{
public IValues GetValues()
{
return new Values("<UserName>", "<Password>", new Uri("https://svcs.myharmony.com/CompositeSecurityServices/Security.sv... | using Bebbs.Harmonize.Common.Settings;
using System;
namespace Bebbs.Harmonize.Console.Settings
{
internal class Provider : IProvider
{
public IValues GetValues()
{
return new Values("<UserName>", "<Password>", new Uri("https://svcs.myharmony.com/CompositeSecurityServices/Security.... | mit | C# |
c668fdc2d9a074cb8b716432bccae7c1b6bc4c03 | Remove commented code | zooba/PTVS,huguesv/PTVS,int19h/PTVS,zooba/PTVS,zooba/PTVS,Microsoft/PTVS,huguesv/PTVS,Microsoft/PTVS,int19h/PTVS,huguesv/PTVS,int19h/PTVS,Microsoft/PTVS,zooba/PTVS,Microsoft/PTVS,huguesv/PTVS,huguesv/PTVS,Microsoft/PTVS,zooba/PTVS,Microsoft/PTVS,zooba/PTVS,int19h/PTVS,int19h/PTVS,huguesv/PTVS,int19h/PTVS | Common/Tests/Utilities/AssemblyExtensions.cs | Common/Tests/Utilities/AssemblyExtensions.cs | // Python Tools for Visual Studio
// Copyright(c) Microsoft Corporation
// All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the License); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at http://www.apache.org/licenses/LICENSE-2.0
/... | // Python Tools for Visual Studio
// Copyright(c) Microsoft Corporation
// All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the License); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at http://www.apache.org/licenses/LICENSE-2.0
/... | apache-2.0 | C# |
c1961be62e84a55fe3cdbf5b4ecc21e9fbbdffc9 | Bump version v1.1.6 | karronoli/tiny-sato | TinySato/Properties/AssemblyInfo.cs | TinySato/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("TinySato")]
[assembly: AssemblyDescription("You can construct and send SBPL packet to SATO printer. The... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("TinySato")]
[assembly: AssemblyDescription("You can construct and send SBPL packet to SATO printer. The... | apache-2.0 | C# |
fdad4f05062287c5ec8fd1c1d2b4b3f9b2762fdd | remove unnecessary return | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/ViewModels/Login/PasswordFinder/SearchPasswordViewModel.cs | WalletWasabi.Fluent/ViewModels/Login/PasswordFinder/SearchPasswordViewModel.cs | using System;
using System.Threading.Tasks;
using WalletWasabi.Fluent.ViewModels.Navigation;
namespace WalletWasabi.Fluent.ViewModels.Login.PasswordFinder
{
public partial class SearchPasswordViewModel : RoutableViewModel
{
[AutoNotify] private int _percentage;
[AutoNotify] private string _remainingText;
pub... | using System;
using System.Threading.Tasks;
using WalletWasabi.Fluent.ViewModels.Navigation;
namespace WalletWasabi.Fluent.ViewModels.Login.PasswordFinder
{
public partial class SearchPasswordViewModel : RoutableViewModel
{
[AutoNotify] private int _percentage;
[AutoNotify] private string _remainingText;
pub... | mit | C# |
43ffb76723b75eea4bc95276003e3b1d080370b1 | Return state update | sdglhm/C-Location-Fetching-from-google | tt/Program.cs | tt/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Web;
using System.Net;
using System.IO;
using RestSharp;
using tt;
namespace tt
{
class Program
{
static void Main(stri... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Web;
using System.Net;
using System.IO;
using RestSharp;
using tt;
namespace tt
{
class Program
{
static void Main(stri... | apache-2.0 | C# |
7bb5ef60a9d7c5535ee2a7f135e33134fd002404 | Update resource types enum to match compiler identifiers | SteamDatabase/ValveResourceFormat | ValveResourceFormat/ResourceType.cs | ValveResourceFormat/ResourceType.cs | using System;
namespace ValveResourceFormat
{
[AttributeUsage(AttributeTargets.Field)]
class ExtensionAttribute : Attribute
{
public string Extension { get; set; }
public ExtensionAttribute( string extension )
{
this.Extension = extension;
}
}
// Frien... | using System;
namespace ValveResourceFormat
{
[AttributeUsage(AttributeTargets.Field)]
class ExtensionAttribute : Attribute
{
public string Extension { get; set; }
public ExtensionAttribute( string extension )
{
this.Extension = extension;
}
}
// Frien... | mit | C# |
05bd8ea89c350a78c7cbf3d1cbf64276cbcf2886 | Write usage information if no parameters are specified | appharbor/appharbor-cli | src/AppHarbor/Program.cs | src/AppHarbor/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.Windsor;
namespace AppHarbor
{
class Program
{
static void Main(string[] args)
{
var container = new WindsorContainer()
.Install(new AppHarborInstaller());
var commandDispatcher = container.Resolve<Comm... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.Windsor;
namespace AppHarbor
{
class Program
{
static void Main(string[] args)
{
var container = new WindsorContainer()
.Install(new AppHarborInstaller());
var commandDispatcher = container.Resolve<Comm... | mit | C# |
c2ac75b63d265e462deea24f9c041d78f373eee1 | Fix warning | SixLabors/Fonts | tests/SixLabors.Fonts.Tests/Issues/Issues_104.cs | tests/SixLabors.Fonts.Tests/Issues/Issues_104.cs | using SixLabors.Fonts.Tables.General.CMap;
using Xunit;
using static SixLabors.Fonts.Tables.General.CMap.Format4SubTable;
namespace SixLabors.Fonts.Tests.Issues
{
public class Issues_104
{
[Fact]
public void Format4SubTableWithSegmentsHasOffByOneWhenOverflowing()
{
var tbl =... | using SixLabors.Fonts.Exceptions;
using SixLabors.Fonts.Tables.General.CMap;
using Xunit;
using static SixLabors.Fonts.Tables.General.CMap.Format4SubTable;
namespace SixLabors.Fonts.Tests.Issues
{
public class Issues_104
{
[Fact]
public void Format4SubTableWithSegmentsHasOffByOneWhenOverflowing... | apache-2.0 | C# |
dda0f171d703259c08f503332ac2b0533f80b50e | Add list to example project | Nick-Lucas/EntryPoint,Nick-Lucas/EntryPoint,Nick-Lucas/EntryPoint | test/Example/CommandLine/PrimaryCliArguments.cs | test/Example/CommandLine/PrimaryCliArguments.cs | using EntryPoint;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Example.CommandLine {
[Help("This program is intended to show off the key features of EntryPoint, "
+ "such as this handy declarative API which includes a documentation generator")]... | using EntryPoint;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Example.CommandLine {
[Help("This program is intended to show off the key features of EntryPoint, "
+ "such as this handy declarative API which includes a documentation generator")]... | mit | C# |
f654fc0856d237b9f12fc02023294d70ff13a30f | fix TypeContextHelper | AlejandroCano/framework,signumsoftware/framework,signumsoftware/framework,avifatal/framework,avifatal/framework,AlejandroCano/framework | Signum.Web/TypeContext/TypeContextHelper.cs | Signum.Web/TypeContext/TypeContextHelper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using Signum.Utilities.Reflection;
using Signum.Entities;
using Signum.Utilities.ExpressionTrees;
using Signum.Utilities;
using System.Web.Mvc;
using System.Web.Mvc.Html;
namespace Signum.Web
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using Signum.Utilities.Reflection;
using Signum.Entities;
using Signum.Utilities.ExpressionTrees;
using Signum.Utilities;
using System.Web.Mvc;
using System.Web.Mvc.Html;
namespace Signum.Web
{
... | mit | C# |
4089eee761f09a19a07baab3dfd4f4b5d8808d2f | Increment the version to 1.1. | kamadak/lurkingwind | 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("Lu... | 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("Lu... | bsd-2-clause | C# |
70e722cf8097c72046c9418f5747335975d796e2 | Update NancyAuthMiddleware.cs | damianh/Nancy.Authentication.Forms.Owin | src/App/NancyAuthMiddleware.cs | src/App/NancyAuthMiddleware.cs | namespace App
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Nancy.Authentication.Forms;
using Nancy.Cookies;
using Owin;
public class NancyAuthMiddleware
{
private readonly Func<IDi... | namespace App
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Nancy.Authentication.Forms;
using Nancy.Cookies;
using Owin;
public class NancyAuthMiddleware
{
private readonly Func<IDi... | mit | C# |
9d74bb67eff55d4b24427f14e9168d8dd6faaba4 | Make DbTransaction property virtual for extend of CapTransactionBase. #1179 | dotnetcore/CAP,dotnetcore/CAP,dotnetcore/CAP | src/DotNetCore.CAP/ICapTransaction.Base.cs | src/DotNetCore.CAP/ICapTransaction.Base.cs | // Copyright (c) .NET Core Community. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Collections.Concurrent;
using System.Threading;
using System.Threading.Tasks;
using DotNetCore.CAP.Persistence;
using DotNetCore.CAP.Transport;
names... | // Copyright (c) .NET Core Community. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Collections.Concurrent;
using System.Threading;
using System.Threading.Tasks;
using DotNetCore.CAP.Persistence;
using DotNetCore.CAP.Transport;
names... | mit | C# |
b64ff48271b40579fb5e18ec9d861f59d76ce993 | remove unused private setters | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | src/FilterLists.Agent/Entities/ListInfo.cs | src/FilterLists.Agent/Entities/ListInfo.cs | using System;
namespace FilterLists.Agent.Entities
{
public class ListInfo
{
public int Id { get; }
public Uri ViewUrl { get; }
}
} | using System;
namespace FilterLists.Agent.Entities
{
public class ListInfo
{
public int Id { get; private set; }
public Uri ViewUrl { get; private set; }
}
} | mit | C# |
80d60f08ebe6a1c852268cfd19b3299ecaec1fda | Update Program.cs | Jungro/Test | TestWinform/Program.cs | TestWinform/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace TestWinform
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace TestWinform
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
... | mit | C# |
ebaa73f680abe9198eaf7bcfc6ad9f09c9393b71 | Add correct path | martijn00/XamarinMediaManager,martijn00/XamarinMediaManager,mike-rowley/XamarinMediaManager,mike-rowley/XamarinMediaManager | build.cake | build.cake | #addin nuget:https://nuget.org/api/v2/?package=Cake.FileHelpers&version=1.0.3.2
#addin nuget:https://nuget.org/api/v2/?package=Cake.Xamarin&version=1.2.3
var TARGET = Argument ("target", Argument ("t", "Default"));
var version = EnvironmentVariable ("APPVEYOR_BUILD_VERSION") ?? Argument("version", "0.0.9999");
var li... | #addin nuget:https://nuget.org/api/v2/?package=Cake.FileHelpers&version=1.0.3.2
#addin nuget:https://nuget.org/api/v2/?package=Cake.Xamarin&version=1.2.3
var TARGET = Argument ("target", Argument ("t", "Default"));
var version = EnvironmentVariable ("APPVEYOR_BUILD_VERSION") ?? Argument("version", "0.0.9999");
var li... | mit | C# |
b9b08585bd94d05b5e0b7e2d8d19146618f8ddf1 | Fix cake run all tests | BrighterCommand/Brighter,BrighterCommand/Brighter,BrighterCommand/Brighter,BrighterCommand/Paramore.Brighter,BrighterCommand/Paramore.Brighter | build.cake | build.cake | ///////////////////////////////////////////////////////////////////////////////
// ARGUMENTS
///////////////////////////////////////////////////////////////////////////////
var target = Argument("target", "LiteUnitTests");
var configuration = Argument("configuration", "Release");
/////////////////////////////////////... | ///////////////////////////////////////////////////////////////////////////////
// ARGUMENTS
///////////////////////////////////////////////////////////////////////////////
var target = Argument("target", "LiteUnitTests");
var configuration = Argument("configuration", "Release");
/////////////////////////////////////... | mit | C# |
0e1e29fc1308427a98ed634fa0957b890c662d5f | bump version | alecgorge/adzerk-dot-net | Adzerk.Api/Properties/AssemblyInfo.cs | Adzerk.Api/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("Ad... | 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("Ad... | mit | C# |
e026e57ee8268ba866e0008037bd8c20e96f8e78 | Remove superfluous StringComparison.Ordinal argument from ReadOnlySpan<char>.StarstWith(...) call, since the overload without a StringComparison in fact performs ordinal comparison semantics and the original call ultimately calls into the overload with no StringComparison argument anyway. In other words, you only have ... | plioi/parsley | src/Parsley/Grammar.Keyword.cs | src/Parsley/Grammar.Keyword.cs | namespace Parsley;
partial class Grammar
{
public static Parser<string> Keyword(string word)
{
if (word.Any(ch => !char.IsLetter(ch)))
throw new ArgumentException("Keywords may only contain letters.", nameof(word));
return input =>
{
var peek = input.Peek(word.L... | namespace Parsley;
partial class Grammar
{
public static Parser<string> Keyword(string word)
{
if (word.Any(ch => !char.IsLetter(ch)))
throw new ArgumentException("Keywords may only contain letters.", nameof(word));
return input =>
{
var peek = input.Peek(word.L... | mit | C# |
2767d7d0d1b948ba022bcc626a0d9ec26542c7b2 | use Assembly version number for Info.HearthDbVersion | HearthSim/HearthDb | HearthDb/Info.cs | HearthDb/Info.cs | #region
using System;
using System.Reflection;
#endregion
namespace HearthDb
{
public static class Info
{
public static Version HearthDbVersion => Assembly.GetExecutingAssembly().GetName().Version;
public static Version HearthstoneVersion => new Version(5, 0, 0, 12574);
}
} | #region
using System;
#endregion
namespace HearthDb
{
public static class Info
{
public static Version HearthDbVersion => new Version(1, 1);
public static Version HearthstoneVersion => new Version(5, 0, 0, 12574);
}
} | mit | C# |
a724efedbdbe74f9d8049f2b8894801a48389725 | Implement reload functionality | bartlomiejwolk/LoadLevel | LoadLevel.cs | LoadLevel.cs | using UnityEngine;
namespace LoadLevelEx {
public sealed class LoadLevel : MonoBehaviour {
#region CONSTANTS
public const string Version = "v0.1.0";
public const string Extension = "LoadLevel";
#endregion
#region DELEGATES
#endregion
#region EVENTS
... | using UnityEngine;
namespace LoadLevelEx {
public sealed class LoadLevel : MonoBehaviour {
#region CONSTANTS
public const string Version = "v0.1.0";
public const string Extension = "LoadLevel";
#endregion
#region DELEGATES
#endregion
#region EVENTS
... | mit | C# |
734e2c74003ab5cd800550de67c80d1d89781679 | Fix SkillId json property | stoiveyp/Alexa.NET.Management | Alexa.NET.Management/Skills/SkillId.cs | Alexa.NET.Management/Skills/SkillId.cs | using Newtonsoft.Json;
namespace Alexa.NET.Management.Skills
{
public class SkillId
{
[JsonProperty("skillId")]
public string Id { get; set; }
}
}
| using Newtonsoft.Json;
namespace Alexa.NET.Management.Skills
{
public class SkillId
{
[JsonProperty("skill_id")]
public string Id { get; set; }
}
}
| mit | C# |
d9b18a4cb6bd4a98a9e52d79dbe71d78ac29d4b4 | Add epsilon | EasyPeasyLemonSqueezy/MadCat | MadCat/NutEngine/Physics/RigidBody.cs | MadCat/NutEngine/Physics/RigidBody.cs | using System;
using Microsoft.Xna.Framework;
using NutEngine.Physics.Materials;
using NutEngine.Physics.Shapes;
namespace NutEngine.Physics
{
public class RigidBody<ShapeType> : IBody<ShapeType>
where ShapeType : IShape
{
public ShapeType Shape { get; private set; }
public MassData Mas... | using System;
using Microsoft.Xna.Framework;
using NutEngine.Physics.Materials;
using NutEngine.Physics.Shapes;
namespace NutEngine.Physics
{
public class RigidBody<ShapeType> : IBody<ShapeType>
where ShapeType : IShape
{
public ShapeType Shape { get; private set; }
public MassData Mas... | mit | C# |
385b60162be5e41babd1e1c055ed989292320448 | Update box selection to be a bit more precise | nicholaschiasson/affliction | Assets/Scripts/View/SelectionBox.cs | Assets/Scripts/View/SelectionBox.cs | using System.Collections.Generic;
using UnityEngine;
public class SelectionBox : MonoBehaviour
{
Vector3 p1 = Vector3.zero;
Vector2 p2 = Vector2.zero;
Camera mainCamera = null;
public delegate void SelectionBoundsCheckAction(Bounds bounds, List<GameObject> boundedUnits);
public static event SelectionBoundsCheck... | using System.Collections.Generic;
using UnityEngine;
public class SelectionBox : MonoBehaviour
{
Vector3 p1 = Vector3.zero;
Vector2 p2 = Vector2.zero;
Camera mainCamera = null;
public delegate void SelectionBoundsCheckAction(Bounds bounds, List<GameObject> boundedUnits);
public static event SelectionBoundsCheck... | mit | C# |
f338f1daa9467dedf2ab66d879117ba4a594766a | refactor navbar generation to use a dictionary (#69) | reactiveui/website,reactiveui/website,reactiveui/website,reactiveui/website | input/_Navbar.cshtml | input/_Navbar.cshtml | @{
var pages = new Dictionary<string, string>
{
{ "Blog", Context.GetLink("blog") },
{ "Meetup", Context.GetLink("meetup") },
{ "Training", Context.GetLink("training") },
{ "Documentation", Context.GetLink("docs") },
{ "API", Context.GetLink("api") },
{ "Contribut... | @{
List<Tuple<string, string>> pages = new List<Tuple<string, string>>
{
Tuple.Create("Blog", Context.GetLink("blog")),
Tuple.Create("Meetup", Context.GetLink("meetup")),
Tuple.Create("Training", Context.GetLink("training")),
Tuple.Create("Documentation", Context.GetLink("docs"))... | mit | C# |
a450154149a1a252427333c332723c7275df4369 | Update Board.cs | thejonathanr/SudokuSolver | SudokuSolver_Try1/Board.cs | SudokuSolver_Try1/Board.cs | using System;
using System.Collections.Generic;
namespace SudokuSolver_Try1 {
public class Board {
public Tile[,] tiles;
public int width;
public int height;
public Board(int x_length, int y_length) {
this.width = x_length;
this.height = y_length;
tiles = new Tile[width, height];
for (int x =... | using System;
using System.Collections.Generic;
namespace SudokuSolver_Try1 {
public class Board {
public Tile[,] tiles;
public int width;
public int height;
public Board(int _w, int _h) {
this.width = _h;
this.height = _w;
tiles = new Tile[width, height];
for (int x = 0; x < width; x++) {
... | agpl-3.0 | C# |
f227ab5010f438e692e49d813ac2fcab2fff426a | Clean up lingering AppTrace reference | File-New-Project/EarTrumpet | EarTrumpet/Extensions/AppExtensions.cs | EarTrumpet/Extensions/AppExtensions.cs | using System;
using System.Diagnostics;
using System.IO;
using System.Windows;
using Windows.ApplicationModel;
using EarTrumpet.Diagnosis;
namespace EarTrumpet.Extensions
{
public static class AppExtensions
{
public static Version GetVersion(this Application app)
{
if (HasIdentity(... | using System;
using System.Diagnostics;
using System.IO;
using System.Windows;
using Windows.ApplicationModel;
namespace EarTrumpet.Extensions
{
public static class AppExtensions
{
public static Version GetVersion(this Application app)
{
if (HasIdentity(app))
{
... | mit | C# |
c9accfd67018e19f1b502f1ab98923e16e1f1dfb | Rearrange UI menu according to component types | mysticfall/Alensia | Assets/Editor/Alensia/Core/UI/ComponentFactory.cs | Assets/Editor/Alensia/Core/UI/ComponentFactory.cs | using System;
using UnityEditor;
using UnityEngine;
namespace Alensia.Core.UI
{
public static class ComponentFactory
{
[MenuItem("GameObject/UI/Alensia/Label", false, 10)]
public static Label CreateLabel(MenuCommand command) => CreateComponent(command, Label.CreateInstance);
[MenuItem(... | using System;
using UnityEditor;
using UnityEngine;
namespace Alensia.Core.UI
{
public static class ComponentFactory
{
[MenuItem("GameObject/UI/Alensia/Button", false, 10)]
public static Button CreateButton(MenuCommand command) => CreateComponent(command, Button.CreateInstance);
[MenuI... | apache-2.0 | C# |
5395d0ca6ea9376eab6fa1a6dc9b74a0e52885fb | Update TokenOptions.cs | googlearchive/firebase-token-generator-dotNet | FirebaseTokenGenerator/TokenOptions.cs | FirebaseTokenGenerator/TokenOptions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Firebase
{
public class TokenOptions
{
public DateTime? expires { get; private set; }
public DateTime? notBefore { get; private set; }
public bool admin { get; private set; }
public ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Firebase
{
public class TokenOptions
{
public DateTime? expires { get; private set; }
public DateTime? notBefore { get; private set; }
public bool admin { get; private set; }
public ... | mit | C# |
91a6dbea9cdca9c694e5fc63ee2781804b5b7cb4 | Update Program.cs | dv-lebedev/PairTradingView,dv-lebedev/pair-trading-view | PairTradingView.ConsoleApp/Program.cs | PairTradingView.ConsoleApp/Program.cs |
/*
Copyright(c) 2015-2017 Denis Lebedev
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 in writing, ... |
/*
Copyright(c) 2015-2017 Denis Lebedev
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 in writing, ... | apache-2.0 | C# |
626022388f83daa5a04013d11e23eca5bfb494e7 | Update ImageResizer sample, remove System.Drawing (#356) | Azure/azure-webjobs-sdk-templates,mattchenderson/azure-webjobs-sdk-templates,soninaren/azure-webjobs-sdk-templates,davidlai-msft/azure-webjobs-sdk-templates,mattchenderson/azure-webjobs-sdk-templates,mattchenderson/azure-webjobs-sdk-templates,Azure/azure-webjobs-sdk-templates,mattchenderson/azure-webjobs-sdk-templates,... | Templates/ImageResizer-CSharp/run.csx | Templates/ImageResizer-CSharp/run.csx | using ImageResizer;
public static void Run(
Stream image, // input blob, large size
Stream imageSmall, Stream imageMedium) // output blobs
{
var imageBuilder = ImageResizer.ImageBuilder.Current;
var size = imageDimensionsTable[ImageSize.Small];
imageBuilder.Build(
... | #r "Microsoft.WindowsAzure.Storage"
#r "System.Drawing"
using System;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs.Host;
using Microsoft.WindowsAzure.Storage.Blob;
using System.IO;
using System.Drawing;
using System.Drawing.Imaging;
// Use the ImageResizer NuGet to resize images base... | mit | C# |
76e1b92ed04f089566b39b8ba2c78ce1d5a0c004 | Update Module.cs | xonaki/NetCoreCMS,OnnoRokomSoftware/NetCoreCMS,xonaki/NetCoreCMS,xonaki/NetCoreCMS,xonaki/NetCoreCMS,OnnoRokomSoftware/NetCoreCMS,OnnoRokomSoftware/NetCoreCMS,OnnoRokomSoftware/NetCoreCMS,OnnoRokomSoftware/NetCoreCMS,xonaki/NetCoreCMS,xonaki/NetCoreCMS | NetCoreCMS.Framework/Modules/Module.cs | NetCoreCMS.Framework/Modules/Module.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.Generic;
using System.Reflection;
using Microsoft.Extensions.DependencyInjection;
namespace NetCoreCMS.Framework.Modules
{
public class Module : IModule
{
public string ModuleName { get; set; }
public ... | using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.Generic;
using System.Reflection;
using Microsoft.Extensions.DependencyInjection;
namespace NetCoreCMS.Framework.Modules
{
public class Module : IModule
{
public string ModuleName { get; set; }
public ... | bsd-3-clause | C# |
dcd6c2c62131af0774c4f870bd5ace8366bb86fc | Refresh IP address not often than 1 time per minute. | lukyad/Eco | Eco/Variables/PublicIpVariable.cs | Eco/Variables/PublicIpVariable.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
namespace Eco.Variables
{
public class PublicIpVariable : IVariableProvider
{
string _lastIp;
DateTime _lastUpdate;
public Dictionary<string, Func<stri... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
namespace Eco.Variables
{
public class PublicIpVariable : IVariableProvider
{
public Dictionary<string, Func<string>> GetVariables()
{
return new Di... | apache-2.0 | C# |
d44306bafb1b569bd42c051e70c8414baea259ba | fix bug in log error issue #63 | PKRoma/Fody,Fody/Fody,huoxudong125/Fody,ichengzi/Fody,ColinDabritzViewpoint/Fody,GeertvanHorrik/Fody,distantcam/Fody,furesoft/Fody,jasonholloway/Fody | FodyIsolated/WeaverInitialiser.cs | FodyIsolated/WeaverInitialiser.cs | using System.IO;
using System.Xml.Linq;
using Mono.Cecil.Cil;
public partial class InnerWeaver
{
public void SetProperties(WeaverEntry weaverEntry, object weaverInstance, WeaverDelegate @delegate)
{
if (weaverEntry.Element != null)
{
var weaverElement = XElement.Parse(weaverEntry.E... | using System.IO;
using System.Xml.Linq;
using Mono.Cecil.Cil;
public partial class InnerWeaver
{
public void SetProperties(WeaverEntry weaverEntry, object weaverInstance, WeaverDelegate @delegate)
{
if (weaverEntry.Element != null)
{
var weaverElement = XElement.Parse(weaverEntry.E... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.