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 |
|---|---|---|---|---|---|---|---|---|---|
02376b830daddada831bd32864db7f89db0c0fec | LMP.MasterServer/Helper.cs | LMP.MasterServer/Helper.cs | using System.IO;
using System.Net;
using System.Text.RegularExpressions;
namespace LMP.MasterServer
{
public class Helper
{
public static string GetOwnIpAddress()
{
var currentIpAddress = TryGetIpAddress("http://ip.42.pl/raw");
if (string.IsNullOrEmpty(currentIpAddress... | using System.IO;
using System.Net;
using System.Text.RegularExpressions;
namespace LMP.MasterServer
{
public class Helper
{
public static string GetOwnIpAddress()
{
var currentIpAddress = TryGetIpAddress("http://ip.42.pl/raw");
if (string.IsNullOrEmpty(currentIpAddress... | Fix master server address retrieve | Fix master server address retrieve
| C# | mit | gavazquez/LunaMultiPlayer,DaggerES/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer |
eb6fe1e4d33a506bb40ef60ea0f9d433740a79be | src/Umbraco.Tests/AngularIntegration/JsInitializationTests.cs | src/Umbraco.Tests/AngularIntegration/JsInitializationTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using Newtonsoft.Json.Linq;
using Umbraco.Core.Manifest;
using Umbraco.Web.UI.JavaScript;
namespace Umbraco.Tests.AngularIntegration
{
[TestFixture]
public cl... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using Newtonsoft.Json.Linq;
using Umbraco.Core.Manifest;
using Umbraco.Web.UI.JavaScript;
namespace Umbraco.Tests.AngularIntegration
{
[TestFixture]
public cl... | Fix unit test that was failing after moving from yepnope to LazyLoad.js | Fix unit test that was failing after moving from yepnope to LazyLoad.js
| C# | mit | gregoriusxu/Umbraco-CMS,rasmuseeg/Umbraco-CMS,timothyleerussell/Umbraco-CMS,Khamull/Umbraco-CMS,Spijkerboer/Umbraco-CMS,Pyuuma/Umbraco-CMS,romanlytvyn/Umbraco-CMS,Phosworks/Umbraco-CMS,VDBBjorn/Umbraco-CMS,ordepdev/Umbraco-CMS,tcmorris/Umbraco-CMS,timothyleerussell/Umbraco-CMS,lingxyd/Umbraco-CMS,countrywide/Umbraco-CM... |
8e54ea42e6cc4514397724d472699df9968f94dd | Content.Client/GameObjects/Components/Wires/WiresVisualizer.cs | Content.Client/GameObjects/Components/Wires/WiresVisualizer.cs | using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components;
using static Content.Shared.GameObjects.Components.SharedWiresComponent;
namespace Content.Client.GameObjects.Components.Wires
{
public class WiresVisualizer : AppearanceVisualizer
{
public override void OnChangeDat... | using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components;
using static Content.Shared.GameObjects.Components.SharedWiresComponent;
namespace Content.Client.GameObjects.Components.Wires
{
public class WiresVisualizer : AppearanceVisualizer
{
public override void OnChangeDat... | Fix rare crash when deleting airlock while the deny animation is playing | Fix rare crash when deleting airlock while the deny animation is playing
| C# | mit | space-wizards/space-station-14-content,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14 |
d700448ddf8a852527a96effe574915d75fb0956 | SteamAccountSwitcher/SteamClient.cs | SteamAccountSwitcher/SteamClient.cs | #region
using System.Diagnostics;
using System.IO;
using System.Threading;
using SteamAccountSwitcher.Properties;
#endregion
namespace SteamAccountSwitcher
{
internal class SteamClient
{
public static void LogIn(Account account)
{
Process.Start(Settings.Default.SteamPath,
... | #region
using System.Diagnostics;
using System.IO;
using System.Threading;
using SteamAccountSwitcher.Properties;
#endregion
namespace SteamAccountSwitcher
{
internal class SteamClient
{
public static void LogIn(Account account)
{
Process.Start(Settings.Default.SteamPath,
... | Change Steam switch timeout and check time | Change Steam switch timeout and check time
| C# | mit | danielchalmers/SteamAccountSwitcher |
52a135c3b1bb3497e3c99c144d37a5f47c3f5e3e | src/Gtk/Perspex.Gtk/AssetLoader.cs | src/Gtk/Perspex.Gtk/AssetLoader.cs | // Copyright (c) The Perspex Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Resources;
using Perspex.Platform;
namespace Perspex.Gtk... | // Copyright (c) The Perspex Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Resources;
using Perspex.Platform;
namespace Perspex.Gtk... | Load from embedded resources on GTK too. | Load from embedded resources on GTK too.
| C# | mit | jkoritzinsky/Avalonia,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,susloparovdenis/Avalonia,MrDaedra/Avalonia,akrisiun/Perspex,SuperJMN/Avalonia,SuperJMN/Avalonia,tshcherban/Perspex,AvaloniaUI/Avalonia,SuperJMN/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalon... |
cf954766b6cadec65cdcfc42211dfa58129430d2 | source/CroquetAustralia.Website/Layouts/Shared/Sidebar.cshtml | source/CroquetAustralia.Website/Layouts/Shared/Sidebar.cshtml | <div class="sticky-notes">
<div class="sticky-note">
<i class="pin"></i>
<div class="content yellow">
<h1>
Patron's Trophy
</h1>
<p>
Entries for Parton's Trophy close Thursday, 2nd June 2016. <a href="/tournaments">Learn more</a> o... | <div class="sticky-notes">
<div class="sticky-note">
<i class="pin"></i>
<div class="content green">
<h1>
Recent Updates
</h1>
<ul>
<li>Link to Association Croquet World Rankings added to <a href="/disciplines/association-croquet/r... | Remove sticky note 'Patron's Trophy' | Remove sticky note 'Patron's Trophy'
| C# | mit | croquet-australia/croquet-australia.com.au,croquet-australia/croquet-australia-website,croquet-australia/croquet-australia-website,croquet-australia/website-application,croquet-australia/croquet-australia.com.au,croquet-australia/croquet-australia.com.au,croquet-australia/website-application,croquet-australia/croquet-a... |
4cbd0935c8cdcaba9d534395d1346a8e82a42cd9 | RockLib.Configuration.MessagingProvider/RockLibMessagingProviderExtensions.cs | RockLib.Configuration.MessagingProvider/RockLibMessagingProviderExtensions.cs | using Microsoft.Extensions.Configuration;
using RockLib.Messaging;
namespace RockLib.Configuration.MessagingProvider
{
public static class RockLibMessagingProviderExtensions
{
public static IConfigurationBuilder AddRockLibMessagingProvider(this IConfigurationBuilder builder, string scenarioName) =>
... | using Microsoft.Extensions.Configuration;
using RockLib.Messaging;
namespace RockLib.Configuration.MessagingProvider
{
public static class RockLibMessagingProviderExtensions
{
public static IConfigurationBuilder AddRockLibMessagingProvider(this IConfigurationBuilder builder, string scenarioName) =>
... | Build the builder in order to create the receiver | Build the builder in order to create the receiver
Don't access MessagingScenarioFactory.Configuration unnecessarily.
| C# | mit | RockFramework/RockLib.Configuration |
079e8a44ed3fc2a1f3691e12c9ed4acfa805eafe | Zk/Views/Crop/Index.cshtml | Zk/Views/Crop/Index.cshtml | @model IEnumerable<Zk.Models.Crop>
@{
ViewBag.Title = "Gewassen";
}
<h2>Dit zijn de gewassen in de database:</h2>
<table class="table table-striped">
<tr>
<th>Id</th><th>Naam</th><th>Ras</th><th>Categorie</th><th>Opp. per 1</th>
<th>Opp. per zak</th><th>Prijs per zakje</th><th>Zaaimaanden</th><th>... | @model IEnumerable<Zk.Models.Crop>
@{
ViewBag.Title = "Gewassen";
}
<h2>Dit zijn de gewassen in de database:</h2>
<table style="font-size: 12px;">
<tr>
<th>Id</th><th>Naam</th><th>Ras</th><th>Categorie</th><th>Opp. per 1</th>
<th>Opp. per zak</th><th>Prijs per zakje</th><th>Zaaimaanden</th><th>Oog... | Adjust font size of data list page | Adjust font size of data list page
| C# | mit | erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner |
bdc46b2c370cc823c218c1ac7d35aa5d703dfa09 | OBeautifulCode.Serialization.Test/SerializationDummyFactory.cs | OBeautifulCode.Serialization.Test/SerializationDummyFactory.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="SerializationDummyFactory.cs" company="OBeautifulCode">
// Copyright (c) OBeautifulCode 2018. All rights reserved.
// </copyright>
// <auto-generated>
// Sourced from NuGet pac... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="SerializationDummyFactory.cs" company="OBeautifulCode">
// Copyright (c) OBeautifulCode 2018. All rights reserved.
// </copyright>
// <auto-generated>
// Sourced from NuGet pac... | Revert "unit test bug fix" | Revert "unit test bug fix"
This reverts commit 47cf11fbc23ddabc98b7c008ba122a63c344f3fb.
| C# | mit | OBeautifulCode/OBeautifulCode.Serialization |
cd087e86d4c62f10ca6375cf1a820ef7c80113ce | tests/fixtures/TagLib.Tests.Images/Validators/CommentModificationValidator.cs | tests/fixtures/TagLib.Tests.Images/Validators/CommentModificationValidator.cs | using NUnit.Framework;
namespace TagLib.Tests.Images.Validators
{
/// <summary>
/// This class tests the modification of the Comment field,
/// regardless of which metadata format is used.
/// </summary>
public class CommentModificationValidator : IMetadataModificationValidator
{
string orig_comment;
r... | using System;
using NUnit.Framework;
namespace TagLib.Tests.Images.Validators
{
/// <summary>
/// This class tests the modification of the Comment field,
/// regardless of which metadata format is used.
/// </summary>
public class CommentModificationValidator : IMetadataModificationValidator
{
string ori... | Add empty constructor for files that don't have a comment yet. | Add empty constructor for files that don't have a comment yet.
| C# | lgpl-2.1 | archrival/taglib-sharp,punker76/taglib-sharp,hwahrmann/taglib-sharp,Clancey/taglib-sharp,CamargoR/taglib-sharp,mono/taglib-sharp,punker76/taglib-sharp,Clancey/taglib-sharp,archrival/taglib-sharp,CamargoR/taglib-sharp,hwahrmann/taglib-sharp,Clancey/taglib-sharp |
ba1884aacb313393ea6eb48c6700b2c4582da599 | test/WebSites/RazorWebSite/Services/WaitService.cs | test/WebSites/RazorWebSite/Services/WaitService.cs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Threading;
namespace RazorWebSite
{
public class WaitService
{
private static readonly Tim... | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Threading;
namespace RazorWebSite
{
public class WaitService
{
private static readonly Tim... | Make wait service not timeout without yelling, and making the timeout longer | Make wait service not timeout without yelling, and making the timeout longer
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
77791f606e571ebe112ca891d3d8ac69c1d0c238 | Python/Product/PythonTools/PythonTools/InterpreterList/InterpreterListToolWindow.cs | Python/Product/PythonTools/PythonTools/InterpreterList/InterpreterListToolWindow.cs | /* ****************************************************************************
*
* Copyright (c) Microsoft Corporation.
*
* This source code is subject to terms and conditions of the Apache License, Version 2.0. A
* copy of the license can be found in the License.html file at the root of this distribution... | /* ****************************************************************************
*
* Copyright (c) Microsoft Corporation.
*
* This source code is subject to terms and conditions of the Apache License, Version 2.0. A
* copy of the license can be found in the License.html file at the root of this distribution... | Fix caption of Python Environments window. | Fix caption of Python Environments window.
| C# | apache-2.0 | fjxhkj/PTVS,crwilcox/PTVS,fivejjs/PTVS,int19h/PTVS,mlorbetske/PTVS,msunardi/PTVS,modulexcite/PTVS,MetSystem/PTVS,Habatchii/PTVS,gomiero/PTVS,jkorell/PTVS,Microsoft/PTVS,Habatchii/PTVS,huguesv/PTVS,DEVSENSE/PTVS,alanch-ms/PTVS,denfromufa/PTVS,jkorell/PTVS,alanch-ms/PTVS,gilbertw/PTVS,modulexcite/PTVS,juanyaw/PTVS,Micros... |
62150e9b539a48fcc0d5e2055d8cdb11f297e6eb | src/Workspaces/Core/Portable/Shared/Extensions/SymbolInfoExtensions.cs | src/Workspaces/Core/Portable/Shared/Extensions/SymbolInfoExtensions.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Linq;
using Microsoft.CodeAnalysis;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.Shared.Extension... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Linq;
using Microsoft.CodeAnalysis;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.Shared.Extension... | Unwind some Linq in a relatively hot path | Unwind some Linq in a relatively hot path
| C# | apache-2.0 | robinsedlaczek/roslyn,zooba/roslyn,jeffanders/roslyn,OmarTawfik/roslyn,ljw1004/roslyn,heejaechang/roslyn,mattscheffer/roslyn,KevinH-MS/roslyn,MattWindsor91/roslyn,DustinCampbell/roslyn,CaptainHayashi/roslyn,CaptainHayashi/roslyn,TyOverby/roslyn,davkean/roslyn,jamesqo/roslyn,AdamSpeight2008/roslyn-AdamSpeight2008,xasx/r... |
d21eccf405481710b17638764f062cfe8117d278 | ImagePipeline/ImagePipeline/Producers/LocalFileFetchProducer.cs | ImagePipeline/ImagePipeline/Producers/LocalFileFetchProducer.cs | using FBCore.Concurrency;
using ImagePipeline.Image;
using ImagePipeline.Memory;
using ImagePipeline.Request;
using System.IO;
using System.Threading.Tasks;
namespace ImagePipeline.Producers
{
/// <summary>
/// Represents a local file fetch producer.
/// </summary>
public class LocalFileFetchProducer ... | using FBCore.Concurrency;
using ImagePipeline.Image;
using ImagePipeline.Memory;
using ImagePipeline.Request;
using System;
using System.IO;
using System.Threading.Tasks;
using Windows.Foundation;
using Windows.Storage;
namespace ImagePipeline.Producers
{
/// <summary>
/// Represents a local file fetch produc... | Use GetFileFromApplicationUriAsync to convert from a Uri to a system file path. | Use GetFileFromApplicationUriAsync to convert from a Uri to a system file path.
| C# | mit | phongcao/image-pipeline-windows,phongcao/image-pipeline-windows,phongcao/image-pipeline-windows,phongcao/image-pipeline-windows |
84b2874e8c22bbf4bd944fa5d76408b8ecdda461 | Fluid/BaseFluidTemplate.cs | Fluid/BaseFluidTemplate.cs | using System.Collections.Generic;
using System.IO;
using System.Text.Encodings.Web;
using System.Threading.Tasks;
using Fluid.Ast;
namespace Fluid
{
public class BaseFluidTemplate<T> : IFluidTemplate where T : IFluidTemplate, new()
{
static BaseFluidTemplate()
{
// Necessary to for... | using System.Collections.Generic;
using System.IO;
using System.Text.Encodings.Web;
using System.Threading.Tasks;
using Fluid.Ast;
namespace Fluid
{
public class BaseFluidTemplate<T> : IFluidTemplate where T : IFluidTemplate, new()
{
static BaseFluidTemplate()
{
// Necessary to for... | Use RunClassConstructor to initialize templates | Use RunClassConstructor to initialize templates
| C# | mit | sebastienros/fluid |
e6e600ab4181ed6a78aa444de5cfafa8fc67eaa5 | BasicDataStructures/10.PythagoreanNumbers/PythagoreanNumbers.cs | BasicDataStructures/10.PythagoreanNumbers/PythagoreanNumbers.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _10.PythagoreanNumbers
{
class PythagoreanNumbers
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
int[] nums = new in... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _10.PythagoreanNumbers
{
class PythagoreanNumbers
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
int[] nums = new in... | Add optimizations to problem 10 | Add optimizations to problem 10
| C# | mit | PlamenNeshkov/Advanced-CSharp |
aefbbad423132dfa26c0264c4491acbd79c61a70 | src/System.Diagnostics.Process/tests/ProcessTest_ConsoleApp/ProcessTest_ConsoleApp.cs | src/System.Diagnostics.Process/tests/ProcessTest_ConsoleApp/ProcessTest_ConsoleApp.cs | using System;
using System.Threading;
namespace ProcessTest_ConsoleApp
{
class Program
{
static int Main(string[] args)
{
try
{
if (args.Length > 0)
{
if (args[0].Equals("infinite"))
{
... | using System;
using System.Threading;
namespace ProcessTest_ConsoleApp
{
class Program
{
static int Main(string[] args)
{
try
{
if (args.Length > 0)
{
if (args[0].Equals("infinite"))
{
... | Add missed paren in comment. | Add missed paren in comment.
| C# | mit | ViktorHofer/corefx,n1ghtmare/corefx,KrisLee/corefx,larsbj1988/corefx,rjxby/corefx,vidhya-bv/corefx-sorting,CherryCxldn/corefx,tijoytom/corefx,Frank125/corefx,cydhaselton/corefx,huanjie/corefx,DnlHarvey/corefx,parjong/corefx,PatrickMcDonald/corefx,fernando-rodriguez/corefx,n1ghtmare/corefx,benpye/corefx,the-dwyer/corefx... |
02cc38f957e94973afe0c64f6e40a64bd2ccc624 | src/AspectCore.Lite.Abstractions.Generator/PropertyGenerator.cs | src/AspectCore.Lite.Abstractions.Generator/PropertyGenerator.cs | using System;
using System.Reflection;
using System.Reflection.Emit;
namespace AspectCore.Lite.Abstractions.Generator
{
public abstract class PropertyGenerator : AbstractGenerator<TypeBuilder, PropertyBuilder>
{
public abstract string PropertyName { get; }
public abstract PropertyAttributes P... | using System;
using System.Reflection;
using System.Reflection.Emit;
namespace AspectCore.Lite.Abstractions.Generator
{
public abstract class PropertyGenerator : AbstractGenerator<TypeBuilder, PropertyBuilder>
{
public abstract string PropertyName { get; }
public abstract PropertyAttributes P... | Add SetMethod & GetMethod Property | Add SetMethod & GetMethod Property
| C# | mit | AspectCore/AspectCore-Framework,AspectCore/Abstractions,AspectCore/Lite,AspectCore/AspectCore-Framework |
b7ced1ff8db50b3a69ecf4e9ebe4e2508c7a9cd6 | src/Cryptography/KeyBlobFormat.cs | src/Cryptography/KeyBlobFormat.cs | namespace NSec.Cryptography
{
public enum KeyBlobFormat
{
None = 0,
// --- Secret Key Formats ---
RawSymmetricKey = -1,
RawPrivateKey = -2,
NSecSymmetricKey = -101,
NSecPrivateKey = -102,
// --- Public Key Formats ---
RawPublicKey = 1,
... | namespace NSec.Cryptography
{
public enum KeyBlobFormat
{
None = 0,
// --- Secret Key Formats ---
RawSymmetricKey = -1,
RawPrivateKey = -2,
NSecSymmetricKey = -101,
NSecPrivateKey = -102,
PkixPrivateKey = -202,
PkixPrivateKeyText = -203,
... | Add PKIX key blob formats | Add PKIX key blob formats
| C# | mit | ektrah/nsec |
8b770b3e41f45d8d7ebc00e3994fcaf93d3be25d | LanguageExt.Core/Prelude_Random.cs | LanguageExt.Core/Prelude_Random.cs | using System;
using System.Collections.Generic;
using System.Security.Cryptography;
namespace LanguageExt
{
public static partial class Prelude
{
readonly static RNGCryptoServiceProvider rnd = new RNGCryptoServiceProvider();
readonly static byte[] target = new byte[4096];
/// <summary... | using System;
using System.Collections.Generic;
using System.Security.Cryptography;
namespace LanguageExt
{
public static partial class Prelude
{
readonly static RNGCryptoServiceProvider rnd = new RNGCryptoServiceProvider();
readonly static byte[] inttarget = new byte[4];
/// <summary... | Fix for randomBase64, it was filling a full internal array unnecessarily. | Fix for randomBase64, it was filling a full internal array unnecessarily.
| C# | mit | louthy/language-ext,StefanBertels/language-ext,StanJav/language-ext |
1e57c679e648134f16bf1ef9d5efcc7539d3fbc3 | TMDbLib/Properties/AssemblyInfo.cs | TMDbLib/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: AssemblyConfiguration("")]
// Setting ComVisible to fal... | 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: AssemblyConfigura... | Make tests of converters possible | Make tests of converters possible
| C# | mit | LordMike/TMDbLib |
83b919ff370254173550ff53c7107acc9be43f72 | src/StructuredLogger/BinaryLog.cs | src/StructuredLogger/BinaryLog.cs | namespace Microsoft.Build.Logging.StructuredLogger
{
public class BinaryLog
{
public static Build ReadBuild(string filePath)
{
var eventSource = new BinaryLogReplayEventSource();
byte[] sourceArchive = null;
eventSource.OnBlobRead += (kind, bytes)... | using System.Diagnostics;
namespace Microsoft.Build.Logging.StructuredLogger
{
public class BinaryLog
{
public static Build ReadBuild(string filePath)
{
var eventSource = new BinaryLogReplayEventSource();
byte[] sourceArchive = null;
eventSourc... | Add a way to measure how long it took to read a binlog file. | Add a way to measure how long it took to read a binlog file.
| C# | mit | KirillOsenkov/MSBuildStructuredLog,KirillOsenkov/MSBuildStructuredLog |
8e30d300aaf59a4ff318aaa50fe56b6107f386e8 | src/IntelliTect.Coalesce/TypeDefinition/Helpers/ReflectionExtensions.cs | src/IntelliTect.Coalesce/TypeDefinition/Helpers/ReflectionExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
namespace IntelliTect.Coalesce.TypeDefinition
{
public static class ReflectionExtensions
{
/// <summary>
/// Returns the attributed requested if it exists or null if it doe... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
namespace IntelliTect.Coalesce.TypeDefinition
{
public static class ReflectionExtensions
{
/// <summary>
/// Returns the attributed requested if it exists or null if it doe... | Use ICustomAttributeProvider.IsDefined in `HasAttribute` to avoid allocations. | Use ICustomAttributeProvider.IsDefined in `HasAttribute` to avoid allocations.
| C# | apache-2.0 | IntelliTect/Coalesce,IntelliTect/Coalesce,IntelliTect/Coalesce,IntelliTect/Coalesce |
d2e0b7f3132f22744d28e2fd90d4f50616955b7a | test/Client/PersistedStorageTest.cs | test/Client/PersistedStorageTest.cs | namespace Nine.Storage
{
using System;
using System.Collections.Generic;
using Xunit;
public class PersistedStorageTest : StorageSpec<PersistedStorageTest>
{
public override IEnumerable<ITestFactory<IStorage<TestStorageObject>>> GetData()
{
return new[]
{
... | namespace Nine.Storage
{
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading.Tasks;
using Xunit;
public class PersistedStorageTest : StorageSpec<PersistedStorageTest>
{
public override IEnumerable<ITestFactory<IStorage<TestSto... | Add test case for 69c97371 | Add test case for 69c97371
| C# | mit | yufeih/Nine.Storage,studio-nine/Nine.Storage |
39f8d5cb2ede4377e1f2c4b118e80499c8b2de3b | tests/Compiler/Clr.Tests/Compilation/IL/AssemblyDefinitionExtensions.cs | tests/Compiler/Clr.Tests/Compilation/IL/AssemblyDefinitionExtensions.cs | using System;
using System.Reflection;
using slang.Compiler.Clr.Compilation.Definitions;
namespace slang.Tests.IL
{
static class AssemblyDefinitionExtensions
{
public static Type [] GetTypes (this AssemblyDefinition assemblyDefinition)
{
return assemblyDefinition.LoadAssembly ().Ge... | using System;
using System.Reflection;
using slang.Compiler.Clr.Compilation.Definitions;
namespace slang.Tests.IL
{
static class AssemblyDefinitionExtensions
{
public static Type [] GetTypes (this AssemblyDefinition assemblyDefinition)
{
return assemblyDefinition.LoadAssembly ().G... | Stop loading dynamic modules from disk | Stop loading dynamic modules from disk
We are not able to load dynamically defined modules from disk because we
are not able to save them to disk in the first place.
For the moment I've decided to throw an invalid operation exception and
deal with the fallout at a later stage.
| C# | mit | jagrem/slang,jagrem/slang,jagrem/slang |
598fd73e4c6052c64aa539898352eae88931a55e | sample/Detection/Views/Home/Index.cshtml | sample/Detection/Views/Home/Index.cshtml | @model Wangkanai.Detection.Services.IDetectionService
@{
ViewData["Title"] = "Detection";
}
<h3>UserAgent</h3>
<code>@Model.UserAgent</code>
<h3>Results</h3>
<table>
<thead>
<tr>
<th>Resolver</th>
<th>Type</th>
<th>Version</th>
</tr>
</thead>
<tbod... | @model Wangkanai.Detection.Services.IDetectionService
@{
ViewData["Title"] = "Detection";
}
<h3>UserAgent</h3>
<code>@Model.UserAgent</code>
<h3>Results</h3>
<table>
<thead>
<tr>
<th>Resolver</th>
<th>Type</th>
<th>Version</th>
</tr>
</thead>
<tbod... | Update detection sample web app | Update detection sample web app
| C# | apache-2.0 | wangkanai/Detection |
8df646acca06a78e999faf6183162251dfd5bd21 | src/CGO.Web/Views/Shared/_MenuBar.cshtml | src/CGO.Web/Views/Shared/_MenuBar.cshtml | @functions {
private string GetCssClass(string actionName, string controllerName)
{
var currentControllerName = ViewContext.RouteData.Values["controller"].ToString();
var isCurrentController = currentControllerName == controllerName;
if (currentControllerName == "Home")
{
... | @functions {
private string GetCssClass(string actionName, string controllerName)
{
var currentControllerName = ViewContext.RouteData.Values["controller"].ToString();
var isCurrentController = currentControllerName == controllerName;
if (currentControllerName == "Home")
{
... | Add drop-down menu for concerts. | Add drop-down menu for concerts.
Hacky approach for now, just to get the link displayed. A controller will be needed to wrap up this logic when the next feature is developed.
| C# | mit | alastairs/cgowebsite,alastairs/cgowebsite |
88c29fe2c11f6311c332321d133bc0be10ab9b2e | src/DynamicQueryable/DynamicQueryable.cs | src/DynamicQueryable/DynamicQueryable.cs | using System.Collections.Generic;
using System.Linq.Expressions;
using Jokenizer.Net;
namespace System.Linq.Dynamic {
public static partial class DynamicQueryable {
public static IQueryable<T> As<T>(this IQueryable source) {
return (IQueryable<T>)source;
}
public static IQuer... | using System.Collections.Generic;
using System.Linq.Expressions;
using Jokenizer.Net;
namespace System.Linq.Dynamic {
public static partial class DynamicQueryable {
public static IQueryable<T> As<T>(this IQueryable source) {
return (IQueryable<T>)source;
}
public static IQuer... | Refactor - Move Skip, Take duplicate code | Refactor - Move Skip, Take duplicate code
| C# | mit | umutozel/DynamicQueryable |
a34d1641b310b9afee3464aff9991c10e1c6f2dc | BTCPayServer/Services/PoliciesSettings.cs | BTCPayServer/Services/PoliciesSettings.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace BTCPayServer.Services
{
public class PoliciesSettings
{
[Display(Name = "Requires a confirmation mail for registering")]
... | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace BTCPayServer.Services
{
public class PoliciesSettings
{
[Display(Name = "Requires a confirmation mail for registering")]
... | Set disable registration as default true. | Set disable registration as default true.
| C# | mit | btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver |
875e831b1daa60a6be77417057e16a4274c44031 | packages/XmlUtilities/dev/Scripts/TextFile/TextToPythonScript.cs | packages/XmlUtilities/dev/Scripts/TextFile/TextToPythonScript.cs | // <copyright file="TextToPythonScript.cs" company="Mark Final">
// Opus package
// </copyright>
// <summary>XmlUtilities package</summary>
// <author>Mark Final</author>
namespace XmlUtilities
{
public static class TextToPythonScript
{
public static void
Write(
System.Text.StringBu... | // <copyright file="TextToPythonScript.cs" company="Mark Final">
// Opus package
// </copyright>
// <summary>XmlUtilities package</summary>
// <author>Mark Final</author>
namespace XmlUtilities
{
public static class TextToPythonScript
{
public static void
Write(
System.Text.StringBu... | Make paths of text files to write verbatim, so that slashes are not misinterpreted under Windows as escape characters | [packages,XmlUtilities,dev] Make paths of text files to write verbatim, so that slashes are not misinterpreted under Windows as escape characters
| C# | bsd-3-clause | markfinal/BuildAMation,markfinal/BuildAMation,markfinal/BuildAMation,markfinal/BuildAMation,markfinal/BuildAMation |
5b9652f7662f167cdf80cc49e5dbfc029a26e947 | DesktopWidgets/Actions/ActionBase.cs | DesktopWidgets/Actions/ActionBase.cs | using System;
using System.ComponentModel;
using System.Windows;
using DesktopWidgets.Classes;
using DesktopWidgets.Helpers;
using Xceed.Wpf.Toolkit.PropertyGrid.Attributes;
namespace DesktopWidgets.Actions
{
public abstract class ActionBase
{
[PropertyOrder(0)]
[DisplayName("Delay")]
... | using System;
using System.ComponentModel;
using System.Windows;
using DesktopWidgets.Classes;
using DesktopWidgets.Helpers;
using Xceed.Wpf.Toolkit.PropertyGrid.Attributes;
namespace DesktopWidgets.Actions
{
public abstract class ActionBase
{
[PropertyOrder(0)]
[DisplayName("Delay")]
... | Rename some base action settings | Rename some base action settings
| C# | apache-2.0 | danielchalmers/DesktopWidgets |
d7b9fd480765bdc01f06441f308fb288e6001049 | src/Microsoft.AspNetCore.Server.IntegrationTesting/Common/Tfm.cs | src/Microsoft.AspNetCore.Server.IntegrationTesting/Common/Tfm.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;
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
public static class Tfm
{
public const string Net461 = "net46... | // 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;
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
public static class Tfm
{
public const string Net461 = "net46... | Update TFM to include netcoreapp3.0 | Update TFM to include netcoreapp3.0 | C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
7d0285cc54444c67e496103d3043df1c84afb01d | src/TeamTasker.Web/TeamTasker.Web/Controllers/TasksController.cs | src/TeamTasker.Web/TeamTasker.Web/Controllers/TasksController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TeamTasker.Web.Domain;
namespace TeamTasker.Web.Controllers
{
public class TasksController : Controller
{
private TaskerContext db = new TaskerContext();
[HttpPost]
public ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TeamTasker.Web.Domain;
namespace TeamTasker.Web.Controllers
{
public class TasksController : Controller
{
private TaskerContext db = new TaskerContext();
[HttpPost]
public ... | Fix for Get all tasks | Fix for Get all tasks
| C# | mit | justinSelf/cqrsworkshop,justinSelf/cqrsworkshop,justinSelf/cqrsworkshop |
54ea8f905f5fe618275d318b763368e9e6a87c54 | ShaderBlit.cs | ShaderBlit.cs | using UnityEngine;
using System.Collections;
[ExecuteInEditMode]
public class ShaderBlit : MonoBehaviour {
public bool Dirty = true;
public bool AlwaysDirtyInEditor = true;
public Texture Input;
public Shader BlitShader;
public Material BlitMaterial;
public RenderTexture Output... | using UnityEngine;
using System.Collections;
[ExecuteInEditMode]
public class ShaderBlit : MonoBehaviour {
[InspectorButton("Execute")]
public bool Dirty = true;
public bool AlwaysDirtyInEditor = true;
public Texture Input;
public Shader BlitShader;
public Material BlitMaterial;... | Put explicit blit in its own Execute func, added inspector button | Put explicit blit in its own Execute func, added inspector button
| C# | mit | SoylentGraham/PopUnityCommon |
68ab1fd40cf8c69b2a1031d5e1ecff0b23a6ae37 | Drums/VDrumExplorer.Proto/InstrumentAudio.cs | Drums/VDrumExplorer.Proto/InstrumentAudio.cs | // Copyright 2020 Jon Skeet. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using Google.Protobuf;
using VDrumExplorer.Model;
namespace VDrumExplorer.Proto
{
internal partial class InstrumentAudio
{
internal Model.Audio.Inst... | // Copyright 2020 Jon Skeet. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using Google.Protobuf;
using VDrumExplorer.Model;
namespace VDrumExplorer.Proto
{
internal partial class InstrumentAudio
{
internal Model.Audio.Inst... | Use Instrument.Preset to detect preset instruments rather than a null InstrumentGroup | Use Instrument.Preset to detect preset instruments rather than a null InstrumentGroup
| C# | apache-2.0 | jskeet/DemoCode,jskeet/DemoCode,jskeet/DemoCode,jskeet/DemoCode |
94b490b2b4e585abf4857166af9f534546bb5467 | Santa/Tests/Common/TourTest.cs | Santa/Tests/Common/TourTest.cs | using Common;
using NUnit.Framework;
namespace Tests.Common
{
[TestFixture]
public class TourTest
{
private Tour testee;
[SetUp]
public void Init()
{
testee = new Tour();
testee.AddGift(new Gift(1, 500, 0, 0));
testee.AddGift(new Gift(2,... | using Common;
using NUnit.Framework;
namespace Tests.Common
{
[TestFixture]
public class TourTest
{
private Tour testee;
[SetUp]
public void Init()
{
testee = new Tour();
testee.AddGift(new Gift(1, 500, 0, 0));
testee.AddGift(new Gift(2,... | Add test case for gift insertion | Add test case for gift insertion
| C# | mit | kw90/SantasSledge |
9f3793bd2db01fd46b48b877536c434a342c03c4 | src/ResourceManager/DataMigration/Commands.DataMigration.Test/DataMigrationAppSettings.cs | src/ResourceManager/DataMigration/Commands.DataMigration.Test/DataMigrationAppSettings.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="DataMigrationAppSettings.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation.
// </copyright>
// ------------------------------------------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="DataMigrationAppSettings.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation.
// </copyright>
// ------------------------------------------------------------------... | Use proper path for settings file | Use proper path for settings file
| C# | apache-2.0 | naveedaz/azure-powershell,naveedaz/azure-powershell,devigned/azure-powershell,naveedaz/azure-powershell,naveedaz/azure-powershell,devigned/azure-powershell,naveedaz/azure-powershell,devigned/azure-powershell,devigned/azure-powershell,AzureAutomationTeam/azure-powershell,AzureAutomationTeam/azure-powershell,devigned/azu... |
4cd5634060818e713c77d54c0db98b5d5ac3e226 | NFig.Tests/Common/Enums.cs | NFig.Tests/Common/Enums.cs | namespace NFig.Tests.Common
{
public enum Tier
{
Any = 0,
Local = 1,
Dev = 2,
Prod = 3,
}
public enum DataCenter
{
Any = 0,
Local = 1,
Dev = 2,
Prod = 3,
}
} | namespace NFig.Tests.Common
{
public enum Tier
{
Any = 0,
Local = 1,
Dev = 2,
Prod = 3,
}
public enum DataCenter
{
Any = 0,
Local = 1,
East = 2,
West = 3,
}
} | Fix DataCenter enum in tests project | Fix DataCenter enum in tests project
| C# | mit | NFig/NFig |
bcc1723de824ffb1cc89d51e562ff257a3b9a8e2 | MitternachtWeb/Areas/Analysis/Views/Shared/_AnalysisLayout.cshtml | MitternachtWeb/Areas/Analysis/Views/Shared/_AnalysisLayout.cshtml | @{
Layout = "_Layout";
ViewData["Title"] = "Analysen";
}
<div class="row">
<nav class="col-md-3 col-xl-2">
<ul class="nav">
<li class="nav-item">
<a class="nav-link text-dark" asp-area="Analysis" asp-controller="UnknownKeyRequests" asp-action="Index">Unbekannte Translationkeys</a>
</li>
</ul>
</nav>... | @using System.Linq
@inject MitternachtWeb.Areas.Analysis.Services.UnknownKeyRequestsService UnknownKeyRequestsService
@{
Layout = "_Layout";
ViewData["Title"] = "Analysen";
}
<div class="row">
<nav class="col-md-3 col-xl-2">
<ul class="nav">
<li class="nav-item">
<a class="nav-link text-dark d-flex justif... | Add badge for unknown key request count. | Add badge for unknown key request count.
| C# | mit | Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW |
2e608f7977e58c07d37569746c3dd3b4c4b864e6 | trunk/src/bindings/EthernetFrame.cs | trunk/src/bindings/EthernetFrame.cs |
using System;
namespace TAPCfg {
public class EthernetFrame {
private byte[] data;
private byte[] src = new byte[6];
private byte[] dst = new byte[6];
private int etherType;
public EthernetFrame(byte[] data) {
this.data = data;
Array.Copy(data, 0, dst, 0, 6);
Array.Copy(data, 6, src, 0, 6);
et... |
using System;
namespace TAPCfg {
public enum EtherType : int {
InterNetwork = 0x0800,
ARP = 0x0806,
RARP = 0x8035,
AppleTalk = 0x809b,
AARP = 0x80f3,
InterNetworkV6 = 0x86dd,
CobraNet = 0x8819,
}
public class EthernetFrame {
private byte[] data;
privat... | Add EtherType enumeration for some types (not all) | Add EtherType enumeration for some types (not all)
git-svn-id: 8d82213adbbc6b1538a984bace977d31fcb31691@31 2f5d681c-ba19-11dd-a503-ed2d4bea8bb5
| C# | lgpl-2.1 | shutej/tapcfg,shutej/tapcfg,shutej/tapcfg,shutej/tapcfg,shutej/tapcfg,shutej/tapcfg,shutej/tapcfg |
c0d20d8ce430a2ee7257c7ac8cf34eeefd54489f | osu.Game.Rulesets.Catch/Objects/Drawables/IHasCatchObjectState.cs | osu.Game.Rulesets.Catch/Objects/Drawables/IHasCatchObjectState.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.Bindables;
using osuTK;
using osuTK.Graphics;
namespace osu.Game.Rulesets.Catch.Objects.Drawables
{
/// <summary>
/// Provides a visual state... | // 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 osuTK;
using osuTK.Graphics;
namespace osu.Game.Rulesets.Catch.Objects.Drawables
{
/// <summary>
/// Provides a visual state... | Add some spacing to interface class | Add some spacing to interface class
| C# | mit | peppy/osu-new,ppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,smoogipooo/osu,ppy/osu,smoogipoo/osu,ppy/osu,peppy/osu,UselessToucan/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu |
f147951d92ff5b4413d7ffdd55dcc91dfcfdfdca | samples/IdentitySample.Mvc/Program.cs | samples/IdentitySample.Mvc/Program.cs | using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
namespace IdentitySample
{
public static class Program
{
public static void Main(string[] args) => BuildWebHost(args).Run();
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
... | using System.IO;
using Microsoft.AspNetCore.Hosting;
namespace IdentitySample
{
public static class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
... | Revert "use WebHost.CreateDefaultBuilder in IdentitySample.Mvc" | Revert "use WebHost.CreateDefaultBuilder in IdentitySample.Mvc"
This reverts commit 20ec50d5d26f2052afcfcf640c69c6049208e799.
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
1d939c7f99f735e1a14611a90904f0dca48e1133 | StyleCopCmd.Core/Properties/CommonAssemblyInfo.cs | StyleCopCmd.Core/Properties/CommonAssemblyInfo.cs | //------------------------------------------------------------------------------
// <copyright
// file="CommonAssemblyInfo.cs"
// company="enckse">
// Copyright (c) All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
using System.Reflection;
using S... | //------------------------------------------------------------------------------
// <copyright
// file="CommonAssemblyInfo.cs"
// company="enckse">
// Copyright (c) All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
using System.Reflection;
using S... | Update assembly file version for next release | Update assembly file version for next release
| C# | bsd-3-clause | enckse/StyleCopCmd,enckse/StyleCopCmd |
c7836c384c152dc3ee0c6259198af6c454d48386 | src/Abp.AspNetCore.OData/AspNetCore/OData/Configuration/AbpAspNetCoreODataModuleConfiguration.cs | src/Abp.AspNetCore.OData/AspNetCore/OData/Configuration/AbpAspNetCoreODataModuleConfiguration.cs | using System;
using Abp.AspNetCore.Configuration;
using Abp.Configuration.Startup;
using Microsoft.AspNet.OData.Builder;
using Microsoft.AspNet.OData.Extensions;
namespace Abp.AspNetCore.OData.Configuration
{
internal class AbpAspNetCoreODataModuleConfiguration : IAbpAspNetCoreODataModuleConfiguration
{
... | using System;
using Abp.AspNetCore.Configuration;
using Abp.Configuration.Startup;
using Microsoft.AspNet.OData;
using Microsoft.AspNet.OData.Builder;
using Microsoft.AspNet.OData.Extensions;
namespace Abp.AspNetCore.OData.Configuration
{
internal class AbpAspNetCoreODataModuleConfiguration : IAbpAspNetCoreODataM... | Add workaround required after MapODataServiceRoute | Add workaround required after MapODataServiceRoute
| C# | mit | luchaoshuai/aspnetboilerplate,fengyeju/aspnetboilerplate,virtualcca/aspnetboilerplate,andmattia/aspnetboilerplate,virtualcca/aspnetboilerplate,verdentk/aspnetboilerplate,ilyhacker/aspnetboilerplate,verdentk/aspnetboilerplate,beratcarsi/aspnetboilerplate,AlexGeller/aspnetboilerplate,Nongzhsh/aspnetboilerplate,Nongzhsh/a... |
8483f71afead438c4fb63a7ba686e5d877386c6e | src/Assent/Reporters/DiffPrograms/DiffProgramBase.cs | src/Assent/Reporters/DiffPrograms/DiffProgramBase.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace Assent.Reporters.DiffPrograms
{
public abstract class DiffProgramBase : IDiffProgram
{
protected static IReadOnlyList<string> WindowsProgramFilePaths => new[]
{
... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace Assent.Reporters.DiffPrograms
{
public abstract class DiffProgramBase : IDiffProgram
{
protected static IReadOnlyList<string> WindowsProgramFilePaths => new[]
{
... | Add path for local vs code install | Add path for local vs code install
| C# | mit | droyad/Assent |
2269b17c0ec1783eab1a42710e87db7f863771f3 | src/Yio/Program.cs | src/Yio/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Yio.Utilities;
namespace Yio
{
public c... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Yio.Utilities;
namespace Yio
{
public c... | Modify main program to work with port again | Modify main program to work with port again
Breaks EF though :(
| C# | mit | Zyrio/ictus,Zyrio/ictus |
5108c25fd2bec05e809cf5dff9ddbabd1e262756 | Apps/BitChangeSetManager/AspNet/Api/Implementations/BitChangeSetManagerAppMessageHubEvents.cs | Apps/BitChangeSetManager/AspNet/Api/Implementations/BitChangeSetManagerAppMessageHubEvents.cs | using Bit.Signalr;
using Bit.Signalr.Implementations;
using BitChangeSetManager.DataAccess;
using BitChangeSetManager.Model;
using System;
using System.Threading;
using System.Threading.Tasks;
using Bit.Data.Contracts;
using BitChangeSetManager.DataAccess.Contracts;
namespace BitChangeSetManager.Api.Implementations
{... | using Bit.Signalr;
using Bit.Signalr.Implementations;
using BitChangeSetManager.DataAccess.Contracts;
using BitChangeSetManager.Model;
using Microsoft.Owin;
using System;
using System.Threading.Tasks;
namespace BitChangeSetManager.Api.Implementations
{
public class BitChangeSetManagerAppMessageHubEvents : Default... | Use IOwinContext in to pass Request.CallCancelled to repository | Use IOwinContext in to pass Request.CallCancelled to repository
| C# | mit | bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework |
3d60906aae3969eb77d40053ae802b5271963585 | src/ReverseMarkdown/Converters/Div.cs | src/ReverseMarkdown/Converters/Div.cs | using System;
using HtmlAgilityPack;
namespace ReverseMarkdown.Converters
{
public class Div : ConverterBase
{
public Div(Converter converter) : base(converter)
{
Converter.Register("div", this);
}
public override string Convert(HtmlNode node)
{
... | using System;
using HtmlAgilityPack;
namespace ReverseMarkdown.Converters
{
public class Div : ConverterBase
{
public Div(Converter converter) : base(converter)
{
Converter.Register("div", this);
}
public override string Convert(HtmlNode node)
{
... | Fix removal of code block space indent for pre with parent div | Fix removal of code block space indent for pre with parent div
| C# | mit | mysticmind/reversemarkdown-net |
05252900105993663ed3c073eec15f70539f1598 | CSharpGameLibrary/Math/Rectanglei.cs | CSharpGameLibrary/Math/Rectanglei.cs | using System;
using System.Numerics;
namespace CSGL.Math {
public struct Rectanglei {
public int X { get; set; }
public int Y { get; set; }
public int Width { get; set; }
public int Height { get; set; }
public Rectanglei(int x, int y, int width, int height) {
X... | using System;
using System.Numerics;
namespace CSGL.Math {
public struct Rectanglei {
public int X { get; set; }
public int Y { get; set; }
public int Width { get; set; }
public int Height { get; set; }
public Rectanglei(int x, int y, int width, int height) {
X... | Add Position and Size properties to Rectanclei | Add Position and Size properties to Rectanclei
| C# | mit | rhynodegreat/CSharpGameLibrary,rhynodegreat/CSharpGameLibrary,vazgriz/CSharpGameLibrary,vazgriz/CSharpGameLibrary |
c7a1553fdfea4bab68065614a65bd4bc20ac6395 | DirectoryHashTests/RecomputeTests.cs | DirectoryHashTests/RecomputeTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace DirectoryHash.Tests
{
public class RecomputeTests
{
[Fact]
public void RecomputeOnEmptyDirectory()
{
using (var temporaryDirectory = ne... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace DirectoryHash.Tests
{
public class RecomputeTests : IDisposable
{
private readonly TemporaryDirectory temporaryDirectory = new TemporaryDirectory();
void ... | Move some common test setup code into the test class constructor | Move some common test setup code into the test class constructor
| C# | mit | jasonmalinowski/directoryhash |
5f0e1bdf77261b84238a8ca84a79052a213c97d9 | src/Kata.GildedRose.CSharp.Unit.Tests/Factories/UpdateStockItemStrategy/UpdateItemStrategyFactory.cs | src/Kata.GildedRose.CSharp.Unit.Tests/Factories/UpdateStockItemStrategy/UpdateItemStrategyFactory.cs | using Kata.GildedRose.CSharp.Domain;
namespace Kata.GildedRose.CSharp.Unit.Tests.Factories.UpdateStockItemStrategy
{
public class UpdateItemStrategyFactory : IUpdateItemStrategyFactory
{
public IStockItemUpdateStrategy Create(Item stockItem)
{
return new AgedBrieUpdateStrategy();
... | using Kata.GildedRose.CSharp.Domain;
namespace Kata.GildedRose.CSharp.Unit.Tests.Factories.UpdateStockItemStrategy
{
public class UpdateItemStrategyFactory : IUpdateItemStrategyFactory
{
public IStockItemUpdateStrategy Create(Item stockItem)
{
switch (item.Name)
{
... | Test we can commit gain | Test we can commit gain
| C# | mit | TheTalkingDev/Kata.Solved.GildedRose.CSharp,dtro-devuk/Kata.Solved.GildedRose.CSharp |
f2ce788454abb0200cb49afebe67600e9133228e | src/Extensions/Nimbus.Transports.InProcess/MessageSendersAndReceivers/InProcessQueueReceiver.cs | src/Extensions/Nimbus.Transports.InProcess/MessageSendersAndReceivers/InProcessQueueReceiver.cs | using System.Threading;
using System.Threading.Tasks;
using Nimbus.ConcurrentCollections;
using Nimbus.Configuration.Settings;
using Nimbus.Infrastructure;
using Nimbus.Infrastructure.MessageSendersAndReceivers;
using Nimbus.Transports.InProcess.QueueManagement;
namespace Nimbus.Transports.InProcess.MessageSendersAndR... | using System.Threading;
using System.Threading.Tasks;
using Nimbus.ConcurrentCollections;
using Nimbus.Configuration.Settings;
using Nimbus.Infrastructure;
using Nimbus.Infrastructure.MessageSendersAndReceivers;
using Nimbus.Transports.InProcess.QueueManagement;
namespace Nimbus.Transports.InProcess.MessageSendersAndR... | Revert "Included call to base.WarmUp()." | Revert "Included call to base.WarmUp()."
This reverts commit c33d7b0c767eea6dc7b341865b2fa0cd800962c6.
| C# | mit | KodrAus/Nimbus,NimbusAPI/Nimbus,NimbusAPI/Nimbus,KodrAus/Nimbus,KodrAus/Nimbus |
7313c26a660bc0de717837911fc23f5770c7c313 | Source/Examples/WinUI/ModelViewer/Services/FilePickerService.cs | Source/Examples/WinUI/ModelViewer/Services/FilePickerService.cs | using System;
using System.Threading.Tasks;
using Microsoft.UI.Xaml;
using Windows.Storage.Pickers;
namespace ModelViewer.Services;
public sealed class FilePickerService
{
public async Task<string> StartFilePicker(string filters)
{
var tokens = filters.Split(';', StringSplitOptions.TrimEntries | Stri... | using System;
using System.Threading.Tasks;
using Microsoft.UI.Xaml;
using Windows.Storage.Pickers;
namespace ModelViewer.Services;
public sealed class FilePickerService
{
public async Task<string> StartFilePicker(string filters)
{
var tokens = filters.Split(';', StringSplitOptions.TrimEntries | Stri... | Fix WinUI demo null ref exception after cancelling file picker. | Fix WinUI demo null ref exception after cancelling file picker.
| C# | mit | helix-toolkit/helix-toolkit,holance/helix-toolkit |
5ccdd2b203512f9a6cb00947546b5474bfcd46a2 | osu.Game.Rulesets.Osu/Edit/OsuDistanceSnapGrid.cs | osu.Game.Rulesets.Osu/Edit/OsuDistanceSnapGrid.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.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Rulesets.Osu.Objects;
using osu.Game.Screens.Edit.Compose.Components;
namespace osu.Game.R... | // 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.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Rulesets.Osu.Objects;
using osu.Game.Screens.Edit.Compose.Components;
namespace osu.Game.R... | Mask the osu! beatsnap grid | Mask the osu! beatsnap grid
| C# | mit | NeoAdonis/osu,UselessToucan/osu,peppy/osu,johnneijzen/osu,smoogipoo/osu,peppy/osu-new,UselessToucan/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,EVAST9919/osu,EVAST9919/osu,2yangk23/osu,NeoAdonis/osu,peppy/osu,ppy/osu,2yangk23/osu,peppy/osu,johnneijzen/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,smoogipooo/osu |
974feee6a8827c2c115a2c066a7e0bf689e7c75c | SharpPhysFS/Properties/AssemblyInfo.cs | SharpPhysFS/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("Sh... | 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("Sh... | Add version and copyright info | Add version and copyright info
| C# | mit | frabert/SharpPhysFS |
02a60fc4d35bfb6cf728afcba84afd91f3d91af3 | src/Acr.MvvmCross.Plugins.UserDialogs.Droid/Plugin.cs | src/Acr.MvvmCross.Plugins.UserDialogs.Droid/Plugin.cs | using System;
using Cirrious.CrossCore;
using Cirrious.CrossCore.Droid.Platform;
using Cirrious.CrossCore.Plugins;
using Acr.UserDialogs;
namespace Acr.MvvmCross.Plugins.UserDialogs.Droid {
public class Plugin : IMvxPlugin {
public void Load() {
Mvx.CallbackWhenRegistered<IMvxAndroidCurrentT... | using System;
using Cirrious.CrossCore;
using Cirrious.CrossCore.Droid.Platform;
using Cirrious.CrossCore.Plugins;
using Acr.UserDialogs;
namespace Acr.MvvmCross.Plugins.UserDialogs.Droid {
public class Plugin : IMvxPlugin {
public void Load() {
Acr.UserDialogs.UserDialogs.Instance = new App... | Update mvx init for android | Update mvx init for android
| C# | mit | aritchie/userdialogs |
474e48d8a6dfdcbcad9755e39c0e5c34b72be9c9 | Assets/Scripts/BehaviorTree/Composites/Sequence.cs | Assets/Scripts/BehaviorTree/Composites/Sequence.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Sequence : CompositeTask {
private int taskIndex = 0;
public Sequence(string name) : base(name) { }
override public ReturnCode Update()
{
var returnCode = tasks[taskIndex].Update();
if (retur... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Sequence : CompositeTask {
private int taskIndex = 0;
public Sequence(string name) : base(name) { }
override public ReturnCode Update()
{
var returnCode = tasks[taskIndex].Update();
if (retur... | Fix out of range bug in sequence task. | Fix out of range bug in sequence task.
| C# | unlicense | marcotmp/BehaviorTree |
ce00b7de38f722a9021a1051ea5f69d562dc9616 | UnityBuildServer/Project/Archive/ZipArchiveStep.cs | UnityBuildServer/Project/Archive/ZipArchiveStep.cs | using System.IO;
using Ionic.Zip;
namespace UnityBuildServer
{
public class ZipArchiveStep : ArchiveStep
{
ZipArchiveConfig config;
public ZipArchiveStep(ZipArchiveConfig config)
{
this.config = config;
}
public override string TypeName
{
... | using System.IO;
using Ionic.Zip;
namespace UnityBuildServer
{
public class ZipArchiveStep : ArchiveStep
{
ZipArchiveConfig config;
public ZipArchiveStep(ZipArchiveConfig config)
{
this.config = config;
}
public override string TypeName
{
... | Fix zip file extension handling | Fix zip file extension handling
| C# | mit | mstevenson/SeudoBuild |
ee79cfbfd597f4047083bafec7ebe53204dcff30 | BuildingThemes/BuildingThemesMod.cs | BuildingThemes/BuildingThemesMod.cs | using ICities;
using BuildingThemes.GUI;
using UnityEngine;
namespace BuildingThemes
{
public class BuildingThemesMod : IUserMod
{
// we'll use this variable to pass the building position to GetRandomBuildingInfo method. It's here to make possible 81 Tiles compatibility
public static Vector3 p... | using ICities;
using BuildingThemes.GUI;
using UnityEngine;
namespace BuildingThemes
{
public class BuildingThemesMod : IUserMod
{
// we'll use this variable to pass the building position to GetRandomBuildingInfo method. It's here to make possible 81 Tiles compatibility
public static Vector3 p... | Fix 81 TIiles mod name | Fix 81 TIiles mod name
| C# | mit | boformer/BuildingThemes |
2b9d69fa8d3ada6505da6e94925987193e2c2c7d | ShopifySharp/Filters/OrderFilter.cs | ShopifySharp/Filters/OrderFilter.cs | using Newtonsoft.Json;
using ShopifySharp.Enums;
namespace ShopifySharp.Filters
{
/// <summary>
/// Options for filtering <see cref="OrderService.CountAsync(OrderFilter)"/> and
/// <see cref="OrderService.ListAsync(OrderFilter)"/> results.
/// </summary>
public class OrderFilter : ListFilter
{... | using System;
using Newtonsoft.Json;
using ShopifySharp.Enums;
namespace ShopifySharp.Filters
{
/// <summary>
/// Options for filtering <see cref="OrderService.CountAsync(OrderFilter)"/> and
/// <see cref="OrderService.ListAsync(OrderFilter)"/> results.
/// </summary>
public class OrderFilter : Li... | Add processed_at_min, processed_at_max and attribution_app_id | Add processed_at_min, processed_at_max and attribution_app_id
Closes #167
| C# | mit | clement911/ShopifySharp,nozzlegear/ShopifySharp,addsb/ShopifySharp |
93748c570669d22af8de5cd0d236808188ce2148 | src/Domain.Test/Users/UserTests.cs | src/Domain.Test/Users/UserTests.cs | using System;
using Xunit;
using ISTS.Domain.Users;
namespace ISTS.Domain.Tests.Users
{
public class UserTests
{
[Fact]
public void Create_Returns_New_User()
{
var user = User.Create("myemail@company.com", "Person", "12345", "password1");
Assert.NotNull(user);... | using System;
using Moq;
using Xunit;
using ISTS.Domain.Common;
using ISTS.Domain.Users;
namespace ISTS.Domain.Tests.Users
{
public class UserTests
{
private readonly Mock<IUserValidator> _userValidator;
public UserTests()
{
_userValidator = new Mock<IUserValidator>();
... | Create success-only stubs for user validator | Create success-only stubs for user validator
| C# | mit | meutley/ISTS |
916a91cd3a4e337e325122af507aea32fd56101e | src/Glimpse.Server.Web/Resources/MessageStreamResource.cs | src/Glimpse.Server.Web/Resources/MessageStreamResource.cs | namespace Glimpse.Server.Web
{
public class MessageStreamResource : IResourceStartup
{
private readonly IServerBroker _serverBroker;
public MessageStreamResource(IServerBroker serverBroker)
{
_serverBroker = serverBroker;
}
public void Configure(IResourceBu... | using System.Reactive.Concurrency;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using System.Threading.Tasks;
using Microsoft.AspNet.Http.Features;
using Microsoft.AspNet.Http;
using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Glimpse.Server.Web
{
public class Mess... | Bring across Server Sent Events resource implementation | Bring across Server Sent Events resource implementation
| C# | mit | peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,pranavkm/Glimpse.Prototype,zanetdev/Glimpse.Prototype,zanetdev/Glimpse.Prototype,pranavkm/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,peterblazejewicz/Gl... |
ac49f092337b7550fda9160b1d757d5593ea51d6 | App2Night.Model/Model/User.cs | App2Night.Model/Model/User.cs | using System.Collections.ObjectModel;
using System.ComponentModel;
using App2Night.Model.Enum;
namespace App2Night.Model.Model
{
public class User
{
public string Name { get; set; }
public int Age { get; set; }
public Gender Gender { get; set; } = Gender.Unkown;
public string Email ... | using System.Collections.ObjectModel;
using System.ComponentModel;
using App2Night.Model.Enum;
namespace App2Night.Model.Model
{
public class User
{
public string Name { get; set; }
public string Email { get; set; }
public ObservableCollection<Party> Events { get; set; }
publi... | Remove Gender, Age in Model. | Remove Gender, Age in Model.
| C# | mit | App2Night/App2Night.Xamarin |
559c827dbf597b5ea6cf4d914b051b729d580f7d | source/XeroApi/OAuth/Consumer/ConsumerRequestRunner.cs | source/XeroApi/OAuth/Consumer/ConsumerRequestRunner.cs | using System;
using System.Net;
namespace DevDefined.OAuth.Consumer
{
public interface IConsumerRequestRunner
{
IConsumerResponse Run(IConsumerRequest consumerRequest);
}
public class DefaultConsumerRequestRunner : IConsumerRequestRunner
{
public IConsumerResponse Run(IC... | using System;
using System.Net;
namespace DevDefined.OAuth.Consumer
{
public interface IConsumerRequestRunner
{
IConsumerResponse Run(IConsumerRequest consumerRequest);
}
public class DefaultConsumerRequestRunner : IConsumerRequestRunner
{
public IConsumerResponse Run(IC... | Include original WebException when throwing new ApplicationException | Include original WebException when throwing new ApplicationException
| C# | mit | jcvandan/XeroAPI.Net,TDaphneB/XeroAPI.Net,XeroAPI/XeroAPI.Net,MatthewSteeples/XeroAPI.Net |
af7214c0c1b6c652d2a8da30c6a172a0ae1ee89a | KAGTools/Windows/MainWindow.xaml.cs | KAGTools/Windows/MainWindow.xaml.cs | using GalaSoft.MvvmLight.Messaging;
using KAGTools.Helpers;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
u... | using GalaSoft.MvvmLight.Messaging;
using KAGTools.Helpers;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
u... | Use AssemblyHelper for MainWindow title version | Use AssemblyHelper for MainWindow title version
| C# | mit | CalebChalmers/KAGTools |
181056b56ede7e784a9bd74cbcfd87726e97ec6e | src/GIDX.SDK/Models/CustomerIdentity/CustomerRegistrationResponse.cs | src/GIDX.SDK/Models/CustomerIdentity/CustomerRegistrationResponse.cs | using System;
using System.Collections.Generic;
namespace GIDX.SDK.Models.CustomerIdentity
{
public class CustomerRegistrationResponse : ResponseBase, IReasonCodes
{
public string MerchantCustomerID { get; set; }
public decimal IdentityConfidenceScore { get; set; }
public decimal Fraud... | using System;
using System.Collections.Generic;
namespace GIDX.SDK.Models.CustomerIdentity
{
public class CustomerRegistrationResponse : ResponseBase, IReasonCodes
{
public string MerchantCustomerID { get; set; }
public decimal IdentityConfidenceScore { get; set; }
public decimal Fraud... | Add ProfileMatches to CustomerRegistration response | Add ProfileMatches to CustomerRegistration response
| C# | mit | TSEVOLLC/GIDX.SDK-csharp |
b2e82cbcfb1fbf31c2037aafc382b33d03f2d2d6 | Client/Asteroid.cs | Client/Asteroid.cs | /*
** Project ShiftDrive
** (C) Mika Molenkamp, 2016.
*/
using Microsoft.Xna.Framework;
namespace ShiftDrive {
/// <summary>
/// A <seealso cref="GameObject"/> representing a single asteroid.
/// </summary>
internal sealed class Asteroid : GameObject {
public Asteroid() {
type =... | /*
** Project ShiftDrive
** (C) Mika Molenkamp, 2016.
*/
using Microsoft.Xna.Framework;
namespace ShiftDrive {
/// <summary>
/// A <seealso cref="GameObject"/> representing a single asteroid.
/// </summary>
internal sealed class Asteroid : GameObject {
public Asteroid() {
type =... | Reduce collision velocity from ship-to-asteroid | Reduce collision velocity from ship-to-asteroid
| C# | bsd-3-clause | iridinite/shiftdrive |
b737872521c908fb6c99caf5a8b8a71619eb3847 | DigiTransit10/ExtensionMethods/TaskExtensions.cs | DigiTransit10/ExtensionMethods/TaskExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DigiTransit10.ExtensionMethods
{
public static class TaskExtensions
{
public static void DoNotAwait(this Task task) { }
public static void DoNotAwait<T>(this Task<T> t... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Foundation;
namespace DigiTransit10.ExtensionMethods
{
public static class TaskExtensions
{
public static void DoNotAwait(this Task task) { }
public static void Do... | Add DoNotAwait for WinRT style tasks | Add DoNotAwait for WinRT style tasks
| C# | mit | pingzing/digi-transit-10 |
5e7f8e7157ca278cc029fe66080cbffb2ce380fd | src/System.Globalization/tests/CultureInfo/CurrentCulture.cs | src/System.Globalization/tests/CultureInfo/CurrentCulture.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Globalization;
using Xunit;
namespace System.Globalization.Tests
{
public class Test
{
[Fact]
public void TestCurren... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Globalization;
using Xunit;
namespace System.Globalization.Tests
{
public class Test
{
[Fact]
public void TestCurren... | Add test for non invariant default locale and test for locale with collation | Add test for non invariant default locale and test for locale with collation
| C# | mit | pgavlin/corefx,ravimeda/corefx,benpye/corefx,mmitche/corefx,wtgodbe/corefx,Yanjing123/corefx,shahid-pk/corefx,parjong/corefx,twsouthwick/corefx,mokchhya/corefx,ViktorHofer/corefx,dotnet-bot/corefx,n1ghtmare/corefx,wtgodbe/corefx,weltkante/corefx,alexperovich/corefx,Petermarcu/corefx,marksmeltzer/corefx,jcme/corefx,mell... |
5b2cbf8f26da584dbc045e2132c04312a7e53fff | StyleCop.Analyzers/StyleCop.Analyzers.Test/Properties/AssemblyInfo.cs | StyleCop.Analyzers/StyleCop.Analyzers.Test/Properties/AssemblyInfo.cs | using System;
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("StyleCop.Analyzers.Test")]
[... | using System;
using System.Reflection;
using System.Runtime.InteropServices;
using Xunit;
// 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("StyleCop.Analyz... | Disable test parallelization due to shared state problems | Disable test parallelization due to shared state problems
The per-language options used by the AdhocWorkspace are currently shared.
This is caused by the default constructor of AdhocWorkspace using
MefHostServices.DefaultHost to provide workspace services, combined with
Workspace.WithChangedOption setting values back ... | C# | mit | DotNetAnalyzers/StyleCopAnalyzers |
facccc22784b5c04f4e1b5d95841c3a4e446561a | resharper/test/src/Feature/Services/CodeCompletion/UnityEventFunctionCompletionListTest.cs | resharper/test/src/Feature/Services/CodeCompletion/UnityEventFunctionCompletionListTest.cs | using JetBrains.ReSharper.FeaturesTestFramework.Completion;
using NUnit.Framework;
namespace JetBrains.ReSharper.Plugins.Unity.Tests.Feature.Services.CodeCompletion
{
// TODO: This doesn't test automatic completion
// The AutomaticCodeCompletionTestBase class is not in the SDK
[TestUnity]
public class... | using JetBrains.ReSharper.FeaturesTestFramework.Completion;
using NUnit.Framework;
namespace JetBrains.ReSharper.Plugins.Unity.Tests.Feature.Services.CodeCompletion
{
// TODO: This doesn't test automatic completion
// The AutomaticCodeCompletionTestBase class is not in the SDK
[TestUnity]
public class... | Disable test to get clean build | Disable test to get clean build
| C# | apache-2.0 | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity |
38dd5d447dc1182f5f1240f23269521b4d773626 | grr/Messages/OpenDirectoryMessage.cs | grr/Messages/OpenDirectoryMessage.cs | using System.Diagnostics;
using System.IO;
using System.Linq;
namespace grr.Messages
{
[System.Diagnostics.DebuggerDisplay("{GetRemoteCommand()}")]
public class OpenDirectoryMessage : DirectoryMessage
{
public OpenDirectoryMessage(RepositoryFilterOptions filter)
: base(filter)
{
}
protected override vo... | using System.Diagnostics;
using System.IO;
using System.Linq;
namespace grr.Messages
{
[System.Diagnostics.DebuggerDisplay("{GetRemoteCommand()}")]
public class OpenDirectoryMessage : DirectoryMessage
{
public OpenDirectoryMessage(RepositoryFilterOptions filter)
: base(filter)
{
}
protected override vo... | Add quotes to paths for Windows | Add quotes to paths for Windows
| C# | mit | awaescher/RepoZ,awaescher/RepoZ |
f60eb55fbb5cbb33c64dfd49148d43205a5c481a | Unity/ServoController/ServoControllerClient.cs | Unity/ServoController/ServoControllerClient.cs | using UnityEngine;
using SocketIOClient;
public class ServoControllerClient : AbstractSocketioClient {
private static readonly string SOCKETIO_SERVER = "http://192.168.1.51:5000";
private static readonly string SOCKETIO_NAMESPACE = "/servo";
public ServoControllerClient()
: base(SOCKETIO_SERVER, SOCKETI... | using UnityEngine;
using SocketIOClient;
public class ServoControllerClient : AbstractSocketioClient {
private static readonly string SOCKETIO_SERVER = "http://192.168.1.51:5000";
private static readonly string SOCKETIO_NAMESPACE = "/servo";
public ServoControllerClient()
: base(SOCKETIO_SERVER, SOCKETI... | Implement "enable" event to reenable after "stop". | [Unity] Implement "enable" event to reenable after "stop".
Signed-off-by: Juri Berlanda <5bfdca9e82c53adb0603ce7083f4ba4f2da5cacf@hotmail.com>
| C# | mit | j-be/vj-servo-controller,j-be/vj-servo-controller,j-be/vj-servo-controller,j-be/vj-servo-controller,j-be/vj-servo-controller |
be062b0cae79f08ebd009abc20eb4c3c868244af | EventStorePlayConsole/BookedInFact.cs | EventStorePlayConsole/BookedInFact.cs | using System;
using EventStore.ClientAPI;
using System.Net;
namespace EventStorePlayConsole
{
public class BookedInFact:Fact
{
public BookedInFact(string atValue, string someValue)
{
this.BookedInAtValue = atValue;
this.PreviousBookingValue = someValue;
}
... | using System;
using EventStore.ClientAPI;
using System.Net;
namespace EventStorePlayConsole
{
public class BookedInFact:Fact
{
public BookedInFact(string atValue, string someValue)
{
this.OccurredAt = DateTime.UtcNow;
this.BookedInAtValue = atValue;
this.Prev... | Include date in booked in fact | Include date in booked in fact
| C# | mit | tvjames/eventstore-bnosql-sample,tvjames/eventstore-bnosql-sample |
4009805617bf5c322efd92abadf483fcc9cf15b8 | SlackAPI/TeamPreferences.cs | SlackAPI/TeamPreferences.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SlackAPI
{
public class TeamPreferences
{
public AuthMode auth_mode;
public string[] default_channels;
public bool display_real_names;
public bool gatew... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SlackAPI
{
public class TeamPreferences
{
public AuthMode auth_mode;
public string[] default_channels;
public bool display_real_names;
public bool gatew... | Make stats_only_admins a nullable bool, we're seeing this cause json deserialization exceptions when calling SlackClient.ConnectAsync() | Make stats_only_admins a nullable bool, we're seeing this cause json deserialization exceptions when calling SlackClient.ConnectAsync()
| C# | mit | Inumedia/SlackAPI |
c3c47140d2e3d6671953042a03ef321f36ac7f29 | src/TramlineFive/TramlineFive/ViewModels/StopsViewModel.cs | src/TramlineFive/TramlineFive/ViewModels/StopsViewModel.cs | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TramlineFive.ViewModels.Wrappers;
namespace TramlineFive.ViewModels
{
public class StopsViewModel
{
public IList<StopViewModel> LineStops { ge... | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TramlineFive.ViewModels.Wrappers;
namespace TramlineFive.ViewModels
{
public class StopsViewModel
{
public IList<StopViewModel> LineStops { ge... | Fix schedule stops not being ordered. | Fix schedule stops not being ordered.
| C# | apache-2.0 | betrakiss/Tramline-5,betrakiss/Tramline-5 |
f491f893cfed74c690f4758fdd6a6ce259940648 | src/EditorFeatures/Core/EditorConfigSettings/Data/AnalyzerSetting.cs | src/EditorFeatures/Core/EditorConfigSettings/Data/AnalyzerSetting.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.Globalization;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft... | // 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.Globalization;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft... | Use CurrentUICulture for EditorConfig UI | Use CurrentUICulture for EditorConfig UI | C# | mit | shyamnamboodiripad/roslyn,CyrusNajmabadi/roslyn,dotnet/roslyn,jasonmalinowski/roslyn,weltkante/roslyn,diryboy/roslyn,CyrusNajmabadi/roslyn,eriawan/roslyn,KevinRansom/roslyn,shyamnamboodiripad/roslyn,eriawan/roslyn,sharwell/roslyn,sharwell/roslyn,eriawan/roslyn,KevinRansom/roslyn,diryboy/roslyn,KevinRansom/roslyn,mavasa... |
3d84c5b843ccacf6214c13a386ff4c8e7e0caee5 | src/Clide.IntegrationTests/GlobalSuppressions.cs | src/Clide.IntegrationTests/GlobalSuppressions.cs |
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "... |
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "... | Clean analyzer warnings on test projects | Clean analyzer warnings on test projects
| C# | mit | clariuslabs/clide,clariuslabs/clide,clariuslabs/clide |
600c66fa83b8f790f39c8a961f26570cd584ed27 | src/ProjectEuler.Tests/Puzzles/Puzzle014Tests.cs | src/ProjectEuler.Tests/Puzzles/Puzzle014Tests.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... | Add more tests for puzzle 14 | Add more tests for puzzle 14
| C# | apache-2.0 | martincostello/project-euler |
cb9ea11a98cd47d989c07732e21656021105586b | LiveSplit/LiveSplit.Core/Model/Comparisons/LastFinishedRunComparisonGenerator.cs | LiveSplit/LiveSplit.Core/Model/Comparisons/LastFinishedRunComparisonGenerator.cs | using LiveSplit.Options;
using System;
using System.Linq;
namespace LiveSplit.Model.Comparisons
{
public class LastFinishedRunComparisonGenerator : IComparisonGenerator
{
public IRun Run { get; set; }
public const string ComparisonName = "Last Finished Run";
public const string ShortCo... | using LiveSplit.Options;
using System;
using System.Linq;
namespace LiveSplit.Model.Comparisons
{
public class LastFinishedRunComparisonGenerator : IComparisonGenerator
{
public IRun Run { get; set; }
public const string ComparisonName = "Last Finished Run";
public const string ShortCo... | Fix crashing due to missing history in LFR | Fix crashing due to missing history in LFR
| C# | mit | ROMaster2/LiveSplit,LiveSplit/LiveSplit,ROMaster2/LiveSplit,ROMaster2/LiveSplit,kugelrund/LiveSplit,kugelrund/LiveSplit,Glurmo/LiveSplit,kugelrund/LiveSplit,Glurmo/LiveSplit,Glurmo/LiveSplit |
693b00459ad26946336afd304d5d3e20c629de62 | Content.Shared/Follower/Components/OrbitVisualsComponent.cs | Content.Shared/Follower/Components/OrbitVisualsComponent.cs | using Robust.Shared.Animations;
namespace Content.Shared.Follower.Components;
[RegisterComponent]
public sealed class OrbitVisualsComponent : Component
{
/// <summary>
/// How long should the orbit animation last in seconds, before being randomized?
/// </summary>
public float OrbitLength = 2.0f;... | using Robust.Shared.Animations;
using Robust.Shared.GameStates;
namespace Content.Shared.Follower.Components;
[RegisterComponent]
[NetworkedComponent]
public sealed class OrbitVisualsComponent : Component
{
/// <summary>
/// How long should the orbit animation last in seconds, before being randomized?
... | Fix ghost orbit not syncing to other clients | Fix ghost orbit not syncing to other clients
Closes #6797
| C# | mit | space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14 |
cfa47905fb7dcc3dd7f49a7bbbd7e0480e594ea7 | src/CyclomaticComplexity/ZoneMarker.cs | src/CyclomaticComplexity/ZoneMarker.cs | using JetBrains.Application.BuildScript.Application.Zones;
namespace JetBrains.ReSharper.Plugins.CyclomaticComplexity
{
[ZoneMarker]
public class ZoneMarker
{
}
} | using JetBrains.Application.BuildScript.Application.Zones;
using JetBrains.ReSharper.Resources.Shell;
namespace JetBrains.ReSharper.Plugins.CyclomaticComplexity
{
[ZoneMarker]
public class ZoneMarker : IRequire<PsiFeaturesImplZone>
{
}
} | Add PsiFeaturesImplZone for parent settings key. | Add PsiFeaturesImplZone for parent settings key.
| C# | apache-2.0 | JetBrains/resharper-cyclomatic-complexity,JetBrains/resharper-cyclomatic-complexity,JetBrains/resharper-cyclomatic-complexity,JetBrains/resharper-cyclomatic-complexity,JetBrains/resharper-cyclomatic-complexity |
fed954d950c5f20cefc06c2e118a6d660b996558 | csharp/leap/Year.cs | csharp/leap/Year.cs | using System;
public class Year
{
public static Boolean IsLeap(int i)
{
if (i % 4 != 0)
{
return false;
}
if (i % 100 == 0)
{
if (i % 400 != 0)
{
return false;
}
}
return true;
}
} | public class Year
{
public static bool IsLeap(int i)
{
if (i % 4 != 0)
{
return false;
}
if (i % 100 == 0)
{
if (i % 400 != 0)
{
return false;
}
}
return true;
}
} | Replace Boolean with bool so we can remove System | Replace Boolean with bool so we can remove System
| C# | mit | leoshaw/exercism-solutions |
267bef959fd7049dcf80557196cd211e3f81686f | osu.Game/Beatmaps/IBeatSyncProvider.cs | osu.Game/Beatmaps/IBeatSyncProvider.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.
#nullable enable
using osu.Framework.Allocation;
using osu.Framework.Audio.Track;
using osu.Framework.Timing;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Graph... | // 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.
#nullable enable
using osu.Framework.Allocation;
using osu.Framework.Audio.Track;
using osu.Framework.Timing;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Graph... | Remove unnecessary cache type specification | Remove unnecessary cache type specification
Co-authored-by: Bartłomiej Dach <809709723693c4e7ecc6f5379a3099c830279741@gmail.com> | C# | mit | NeoAdonis/osu,NeoAdonis/osu,peppy/osu,ppy/osu,peppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,ppy/osu |
baaaf67c681f78a9a08f99d549100c8ced66b8b1 | BitTools/BitCodeAnalyzer.Test/SystemAnalyzers/WebAnalyzers/DoNotUseSystemWebAssemblyAnalyzerTests.cs | BitTools/BitCodeAnalyzer.Test/SystemAnalyzers/WebAnalyzers/DoNotUseSystemWebAssemblyAnalyzerTests.cs | using System;
using System.Reflection;
using System.Web.Hosting;
using BitCodeAnalyzer.SystemAnalyzers.WebAnalyzers;
using BitCodeAnalyzer.Test.Helpers;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
us... | using System;
using System.Reflection;
using BitCodeAnalyzer.SystemAnalyzers.WebAnalyzers;
using BitCodeAnalyzer.Test.Helpers;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Threading.Tasks... | Load system web assembly before running do not use system web assembly analyzer tests | Load system web assembly before running do not use system web assembly analyzer tests
| C# | mit | bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework |
7d0c091559535e9ff37b61915297bd4c4b4cf8ba | HttpMock/RequestCacheKey.cs | HttpMock/RequestCacheKey.cs | using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Primitives;
using System;
using System.Collections.Generic;
using System.Linq;
namespace HttpMock
{
public class RequestCacheKey
{
public string Scheme { get; private set; }
public string Host { get; private set; }
public int?... | using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Primitives;
using System;
using System.Collections.Generic;
using System.Linq;
namespace HttpMock
{
public class RequestCacheKey
{
public string Method { get; private set; }
public string Scheme { get; private set; }
public st... | Include method in cache key | Include method in cache key
| C# | mit | selvasingh/azure-sdk-for-java,selvasingh/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,selvasingh/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java |
5e02a68886f55a82b5823e00e7a544fcc80aabfe | src/Dawn.SocketAwaitable/Properties/AssemblyInfo.cs | src/Dawn.SocketAwaitable/Properties/AssemblyInfo.cs | // Copyright
// ----------------------------------------------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="https://github.com/safakgur/Dawn.SocketAwaitable">
// MIT
// </copyright>
// <license>
// This source code is subject to terms and condit... | // Copyright
// ----------------------------------------------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="https://github.com/safakgur/Dawn.SocketAwaitable">
// MIT
// </copyright>
// <license>
// This source code is subject to terms and condit... | Increase assembly version to 1.1. | Increase assembly version to 1.1.
| C# | mit | safakgur/Dawn.SocketAwaitable |
51d0295fb9267fdef95139d558e2c23ffa1615df | src/AsmResolver.DotNet/Memory/MemoryLayoutAttributes.cs | src/AsmResolver.DotNet/Memory/MemoryLayoutAttributes.cs | using System;
namespace AsmResolver.DotNet.Memory
{
[Flags]
public enum MemoryLayoutAttributes
{
Is32Bit = 0b0,
Is64Bit = 0b1,
BitnessMask = 0b1,
IsPlatformDependent = 0b10,
}
}
| using System;
namespace AsmResolver.DotNet.Memory
{
/// <summary>
/// Defines members for all possible attributes that can be assigned to a <see cref="TypeMemoryLayout"/> instance.
/// </summary>
[Flags]
public enum MemoryLayoutAttributes
{
/// <summary>
/// Indicates the layout... | Add xmldoc to mem layout attributes. | Add xmldoc to mem layout attributes.
| C# | mit | Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver |
6f4b672dd4fb90cbeb76b24915c69392b897375c | CSharp/Core.Test/TestDBFunctions.cs | CSharp/Core.Test/TestDBFunctions.cs | using System;
using NUnit.Framework;
namespace Business.Core.Test
{
[TestFixture]
public class TestDBFunctions
{
[Test]
public void Book() {
var profile = new Profile.Profile();
var database = new Fake.Database(profile);
database.Connect();
var bookName = "Sales";
float bookAmount = 111.11F;
... | using System;
using NUnit.Framework;
namespace Business.Core.Test
{
[TestFixture]
public class TestDBFunctions
{
[Test]
public void Book() {
var profile = new Profile.Profile();
var database = new Fake.Database(profile);
database.Connect();
var bookName = "Sales";
float bookAmount = 111.11F;
... | Test Server-side function called in transaction fails | Test Server-side function called in transaction fails
| C# | mit | jazd/Business,jazd/Business,jazd/Business |
ca303ca3725026d89cd2438121a34e7b488ee856 | hangman.cs | hangman.cs | using System;
namespace Hangman {
public class Hangman {
public static void Main(string[] args) {
char key = Console.ReadKey(true).KeyChar;
var game = new Game("HANG THE MAN");
bool wasCorrect = game.GuessLetter(key);
Console.WriteLine(wasCorrect.ToString());
var output = game.Sho... | using System;
namespace Hangman {
public class Hangman {
public static void Main(string[] args) {
// char key = Console.ReadKey(true).KeyChar;
// var game = new Game("HANG THE MAN");
// bool wasCorrect = game.GuessLetter(key);
// Console.WriteLine(wasCorrect.ToString());
// var ou... | Comment out game logic and replace table code | Comment out game logic and replace table code
Time to set up the game layout.
| C# | unlicense | 12joan/hangman |
9b1dba3a0e58834356b195d3e6f17679958c328b | FileReplacer/FileReplacer/FileHelper.cs | FileReplacer/FileReplacer/FileHelper.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace FileReplacer
{
public static class FileHelper
{
public static readonly Encoding UTF8N = new UTF8Encoding();
public static void ReplaceContent(FileInfo file, string oldV... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace FileReplacer
{
public static class FileHelper
{
public static readonly Encoding UTF8N = new UTF8Encoding();
public static void ReplaceContent(FileInfo file, string oldV... | Exclude files that can not be accessed | Exclude files that can not be accessed
| C# | mit | sakapon/Tools-2016 |
6d996f3a8a14d5cc63fe96520170f03692c6b92c | NuPack.Core/Utility/HttpWebRequestor.cs | NuPack.Core/Utility/HttpWebRequestor.cs | namespace NuPack {
using System;
using System.IO;
using System.Net;
using System.Net.Cache;
// REVIEW: This class isn't super clean. Maybe this object should be passed around instead
// of being static
public static class HttpWebRequestor {
[System.Diagnostics.CodeAnalysis... | namespace NuPack {
using System;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Net;
using System.Net.Cache;
// REVIEW: This class isn't super clean. Maybe this object should be passed around instead
// of being static
public static class HttpWebRequestor... | Add caching option when downloading package. | Add caching option when downloading package.
--HG--
extra : rebase_source : 0701678b4b47fd6ce968f0cb29629d227f60c3df
| C# | apache-2.0 | chocolatey/nuget-chocolatey,jmezach/NuGet2,themotleyfool/NuGet,mono/nuget,indsoft/NuGet2,indsoft/NuGet2,mrward/NuGet.V2,GearedToWar/NuGet2,xoofx/NuGet,ctaggart/nuget,mrward/NuGet.V2,pratikkagda/nuget,xoofx/NuGet,anurse/NuGet,ctaggart/nuget,xoofx/NuGet,jholovacs/NuGet,indsoft/NuGet2,antiufo/NuGet2,dolkensp/node.net,prat... |
5cfb6636054316676c34af3173f8351adf45a6cd | MaxMind.MaxMindDb.Test/ThreadingTest.cs | MaxMind.MaxMindDb.Test/ThreadingTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using NUnit.Framework;
namespace MaxMind.MaxMindDb.Test
{
[TestFixture]
public class ThreadingTest
{
[Test]
public void TestParallelFor()
{
var reader = ne... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using NUnit.Framework;
namespace MaxMind.MaxMindDb.Test
{
[TestFixture]
public class ThreadingTest
{
[Test]
public void TestParallelFor()
{
var reader = ne... | Correct error message in thread test | Correct error message in thread test
| C# | apache-2.0 | fairtradex/MaxMind-DB-Reader-dotnet |
aff3d3a6f604c2ca717c6858a817dafe20f3c53d | CountryFoodSubscribe/Web/CountryFood.Web.Infrastructure/Mappings/AutoMapperConfig.cs | CountryFoodSubscribe/Web/CountryFood.Web.Infrastructure/Mappings/AutoMapperConfig.cs | namespace CountryFood.Web.Infrastructure.Mappings
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using AutoMapper;
public class AutoMapperConfig
{
private Assembly assembly;
public AutoMapperConfig(Assembly assembly)
... | namespace CountryFood.Web.Infrastructure.Mappings
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using AutoMapper;
public class AutoMapperConfig
{
private Assembly assembly;
public AutoMapperConfig(Assembly assembly)
... | Add map from view model to db model. | Add map from view model to db model.
| C# | mit | yyankova/CountryFoodSubscribe,yyankova/CountryFoodSubscribe |
866bf0340a2db0ad4dba0e9303e360a09a596095 | test/MediatR.Tests/NotificationHandlerTests.cs | test/MediatR.Tests/NotificationHandlerTests.cs | using System.IO;
using System.Text;
using System.Threading.Tasks;
using Shouldly;
using Xunit;
namespace MediatR.Tests
{
public class NotificationHandlerTests
{
public class Ping : INotification
{
public string Message { get; set; }
}
public class PongChildHandler :... | using System.IO;
using System.Text;
using System.Threading.Tasks;
using Shouldly;
using Xunit;
namespace MediatR.Tests
{
public class NotificationHandlerTests
{
public class Ping : INotification
{
public string Message { get; set; }
}
public class PongChildHandler :... | Rename unit test function to be more explicit on its purpose. | Rename unit test function to be more explicit on its purpose.
Co-Authored-By: FuncLun <711c73f64afdce07b7e38039a96d2224209e9a6c@functionallunacy.com> | C# | apache-2.0 | jbogard/MediatR |
423e3cc9b6c8291a4d6b4f71148d1f47c3bc36da | GesturesViewer/ModelSelector.cs | GesturesViewer/ModelSelector.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using System.Text.RegularExpressions;
using Common.Logging;
namespace GesturesViewer {
class ModelSelector : INotifyPropertyChanged {
static readonly... | using System;
using System.IO;
using System.ComponentModel;
using System.Text.RegularExpressions;
using System.Collections.ObjectModel;
using Common.Logging;
namespace GesturesViewer {
class ModelSelector : INotifyPropertyChanged {
static readonly ILog Log = LogManager.GetCurrentClassLogger();
static reado... | Use ObservableCollection for ComboBox item source so that the ComboBox updates when the list changes. | Use ObservableCollection for ComboBox item source so that the ComboBox updates when the list changes.
| C# | mit | ushadow/handinput,ushadow/handinput,ushadow/handinput |
e42b20ae4fafc1487ba950203c5a89bb13f47697 | src/ProjectEuler/Puzzles/Puzzle010.cs | src/ProjectEuler/Puzzles/Puzzle010.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 System;
/// <summary>
/// A class representing the solution to <c>https://pro... | // 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 System;
/// <summary>
/// A class representing the solution to <c>https://pro... | Fix regression in puzzle 10 | Fix regression in puzzle 10
Fix regression in puzzle 10 caused by bounds being calculated
incorrectly after change from using Enumerable.Range().
| C# | apache-2.0 | martincostello/project-euler |
78f8baab3b043f99599f792ac2885ecb3b80fdab | PS.Mothership.Core/PS.Mothership.Core.Common/Dto/SchedulerManagement/TriggerProfileDto.cs | PS.Mothership.Core/PS.Mothership.Core.Common/Dto/SchedulerManagement/TriggerProfileDto.cs | using PS.Mothership.Core.Common.Template.Gen;
using Quartz;
using System;
using System.Collections.Generic;
namespace PS.Mothership.Core.Common.Dto.SchedulerManagement
{
public class TriggerProfileDto
{
public string Name { get; set; }
public TriggerState State { get; set; }
public Dat... | using PS.Mothership.Core.Common.Template.Gen;
using Quartz;
using System;
using System.Collections.Generic;
namespace PS.Mothership.Core.Common.Dto.SchedulerManagement
{
public class TriggerProfileDto
{
public string Name { get; set; }
public TriggerState State { get; set; }
public Dat... | Add PreviousFireTime to trigger profile dto | Add PreviousFireTime to trigger profile dto
| C# | mit | Paymentsense/Dapper.SimpleSave |
b39d38e74de9bb391a4f78428be4f67738dede10 | templates/log_rss.cs | templates/log_rss.cs | <?xml version="1.0"?>
<!-- RSS generated by Trac v<?cs var:trac.version ?> on <?cs var:trac.time ?> -->
<rss version="2.0">
<channel><?cs
if:project.name_encoded ?>
<title><?cs var:project.name_encoded ?>: Revisions of <?cs var:log.path ?></title><?cs
else ?>
<title>Revisions of <?cs var:log.path ?></title... | <?xml version="1.0"?>
<!-- RSS generated by Trac v<?cs var:trac.version ?> on <?cs var:trac.time ?> -->
<rss version="2.0">
<channel><?cs
if:project.name_encoded ?>
<title><?cs var:project.name_encoded ?>: Revisions of <?cs var:log.path ?></title><?cs
else ?>
<title>Revisions of <?cs var:log.path ?></title... | Fix category of revision log RSS feeds. | Fix category of revision log RSS feeds.
git-svn-id: f68c6b3b1dcd5d00a2560c384475aaef3bc99487@2261 af82e41b-90c4-0310-8c96-b1721e28e2e2
| C# | bsd-3-clause | dokipen/trac,dafrito/trac-mirror,dokipen/trac,moreati/trac-gitsvn,moreati/trac-gitsvn,exocad/exotrac,dafrito/trac-mirror,dafrito/trac-mirror,exocad/exotrac,exocad/exotrac,moreati/trac-gitsvn,moreati/trac-gitsvn,dokipen/trac,dafrito/trac-mirror,exocad/exotrac |
1a7d86176b0d1942006e9a55d7729c7f5197d409 | src/Pingu/PngFile.cs | src/Pingu/PngFile.cs | using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using Pingu.Chunks;
namespace Pingu
{
public class PngFile : IEnumerable<Chunk>
{
List<Chunk> chunksToWrite = new List<Chunk>();
static readonly byte[] magic = new byte[] { 0x89, 0x50, ... | using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using Pingu.Chunks;
namespace Pingu
{
public class PngFile : IEnumerable<Chunk>
{
List<Chunk> chunksToWrite = new List<Chunk>();
static readonly byte[] magic = new byte[] { 0x89, 0x50, ... | Enumerate via self instead of directly | Pingu: Enumerate via self instead of directly
Makes changing underlying storage easier. :)
| C# | mit | bojanrajkovic/pingu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.