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 |
|---|---|---|---|---|---|---|---|---|---|
a7c0cbfb3ef60c62b15dccee3f1ec9916ed6f88e | Wox.Infrastructure/Logger/Log.cs | Wox.Infrastructure/Logger/Log.cs | using NLog;
namespace Wox.Infrastructure.Logger
{
public class Log
{
private static NLog.Logger logger = LogManager.GetCurrentClassLogger();
public static void Error(System.Exception e)
{
#if DEBUG
throw e;
#else
while (e.InnerException != null)
{
... | using NLog;
using Wox.Infrastructure.Exception;
namespace Wox.Infrastructure.Logger
{
public class Log
{
private static NLog.Logger logger = LogManager.GetCurrentClassLogger();
public static void Error(System.Exception e)
{
#if DEBUG
throw e;
#else
while (e.Inn... | Fix using for Release build | Fix using for Release build
| C# | mit | yozora-hitagi/Saber,JohnTheGr8/Wox,dstiert/Wox,dstiert/Wox,dstiert/Wox,jondaniels/Wox,Launchify/Launchify,Megasware128/Wox,danisein/Wox,jondaniels/Wox,JohnTheGr8/Wox,medoni/Wox,Launchify/Launchify,Megasware128/Wox,zlphoenix/Wox,medoni/Wox,yozora-hitagi/Saber,danisein/Wox,zlphoenix/Wox |
d1c52323f2134dc0f51eb3a9f251d9f9383bb0ec | src/Microsoft.DotNet.Watcher.Core/Internal/Implementation/Project.cs | src/Microsoft.DotNet.Watcher.Core/Internal/Implementation/Project.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.Collections.Generic;
using System.IO;
using System.Linq;
using Microsoft.DotNet.ProjectModel.Graph;
namespace Microsoft.DotNet.Watcher.Co... | // 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.Collections.Generic;
using System.IO;
using System.Linq;
using Microsoft.DotNet.ProjectModel.Graph;
namespace Microsoft.DotNet.Watcher.Co... | Revert "Revert "Reacting to CLI breaking change"" | Revert "Revert "Reacting to CLI breaking change""
This reverts commit e74665e55058c79becda81baa4055d1c78d5ae2b.
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
51034697bfc49e1d96c62bffd0105ba657999fef | Portal.CMS.Entities/Seed/MenuSeed.cs | Portal.CMS.Entities/Seed/MenuSeed.cs | using Portal.CMS.Entities.Entities;
using System.Collections.Generic;
using System.Linq;
namespace Portal.CMS.Entities.Seed
{
public static class MenuSeed
{
public static void Seed(PortalEntityModel context)
{
if (!context.Menus.Any(x => x.MenuName == "Main Menu"))
{
... | using Portal.CMS.Entities.Entities;
using System.Collections.Generic;
using System.Linq;
namespace Portal.CMS.Entities.Seed
{
public static class MenuSeed
{
public static void Seed(PortalEntityModel context)
{
if (!context.Menus.Any(x => x.MenuName == "Main Menu"))
{
... | Remove My Profile Page Menu Item Seed | Remove My Profile Page Menu Item Seed
| C# | mit | tommcclean/PortalCMS,tommcclean/PortalCMS,tommcclean/PortalCMS |
f8bc0006673cb1b24e1cb009414cf2d952cdc5f8 | RealmNet.XamarinIOS/InteropConfig.cs | RealmNet.XamarinIOS/InteropConfig.cs | /* Copyright 2015 Realm Inc - All Rights Reserved
* Proprietary and Confidential
*/
using System;
namespace RealmNet
{
public static class InteropConfig
{
public static bool Is64Bit
{
#if REALM_32
get {
Debug.Assert(IntPtr.Size == 4);
retu... | /* Copyright 2015 Realm Inc - All Rights Reserved
* Proprietary and Confidential
*/
using System;
using UIKit;
using Foundation;
using System.IO;
namespace RealmNet
{
public static class InteropConfig
{
public static bool Is64Bit
{
#if REALM_32
get {
Debu... | Fix namespaces in ios interopconfig | Fix namespaces in ios interopconfig
| C# | apache-2.0 | realm/realm-dotnet,Shaddix/realm-dotnet,Shaddix/realm-dotnet,Shaddix/realm-dotnet,realm/realm-dotnet,realm/realm-dotnet,Shaddix/realm-dotnet |
1e9464a86509002884a3827d8afca5e42b1cbc66 | src/VisualStudio/Core/Def/ExternalAccess/ProjectSystem/Api/IProjectSystemUpdateReferenceOperation.cs | src/VisualStudio/Core/Def/ExternalAccess/ProjectSystem/Api/IProjectSystemUpdateReferenceOperation.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.Threading.Tasks;
namespace Microsoft.VisualStudio.LanguageServices.ExternalAccess.ProjectSystem.Api
{... | // 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;
using System.Threading.Tasks;
namespace Microsoft.VisualStudio.LanguageServices.ExternalAccess.Proje... | Add remark about failure scenarios | Add remark about failure scenarios
| C# | mit | KevinRansom/roslyn,weltkante/roslyn,weltkante/roslyn,shyamnamboodiripad/roslyn,jasonmalinowski/roslyn,CyrusNajmabadi/roslyn,diryboy/roslyn,bartdesmet/roslyn,dotnet/roslyn,physhi/roslyn,wvdd007/roslyn,wvdd007/roslyn,KevinRansom/roslyn,jasonmalinowski/roslyn,diryboy/roslyn,AmadeusW/roslyn,wvdd007/roslyn,mavasani/roslyn,b... |
efa450cf9b745532b98c63466e5072b1cc6a821b | src/Sitecore.FakeDb.Serialization/Pipelines/CopyParentId.cs | src/Sitecore.FakeDb.Serialization/Pipelines/CopyParentId.cs | namespace Sitecore.FakeDb.Serialization.Pipelines
{
using Sitecore.Data;
using Sitecore.Data.Serialization.ObjectModel;
using Sitecore.Diagnostics;
using Sitecore.FakeDb.Pipelines;
public class CopyParentId
{
public void Process(DsItemLoadingArgs args)
{
Assert.ArgumentNotNull(args, "args");... | namespace Sitecore.FakeDb.Serialization.Pipelines
{
using Sitecore.Data;
using Sitecore.Diagnostics;
using Sitecore.FakeDb.Pipelines;
public class CopyParentId
{
public void Process(DsItemLoadingArgs args)
{
Assert.ArgumentNotNull(args, "args");
var syncItem = args.DsDbItem.SyncItem;
... | Add 'todo' to avoid type casting | Add 'todo' to avoid type casting
| C# | mit | pveller/Sitecore.FakeDb,sergeyshushlyapin/Sitecore.FakeDb |
1a9b142e826384c41d9c04e658537fac07e763b6 | src/StudentFollowingSystem/Views/Students/Import.cshtml | src/StudentFollowingSystem/Views/Students/Import.cshtml | @{
ViewBag.Title = "Studenten importeren";
}
<h2>Studenten importeren</h2>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">>
<p>Kopieer het CSV bestand in het veld hieronder.</p>
<textarea name="csv" id="csv" class="form-control"></textarea>
</div>
... | @{
ViewBag.Title = "Studenten importeren";
}
<h2>Studenten importeren</h2>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<p>Kopieer het CSV bestand in het veld hieronder.</p>
<textarea name="csv" id="csv" class="form-control"></textarea>
</div>
... | Solve bug henk import script | Solve bug henk import script
| C# | mit | henkmollema/StudentFollowingSystem,henkmollema/StudentFollowingSystem |
7e08fa2fd6e1ce7a2268a2c3ba250b6ef69fb8d1 | MonacoEditorTestApp/Helpers/EditorHoverProvider.cs | MonacoEditorTestApp/Helpers/EditorHoverProvider.cs | using Monaco;
using Monaco.Editor;
using Monaco.Languages;
using System;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Threading;
using Windows.Foundation;
namespace MonacoEditorTestApp.Helpers
{
class EditorHoverProvider : HoverProvider
{
public IAsyncOperation<Hover> ProvideHover... | using Monaco;
using Monaco.Editor;
using Monaco.Languages;
using System;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Threading;
using Windows.Foundation;
namespace MonacoEditorTestApp.Helpers
{
class EditorHoverProvider : HoverProvider
{
public IAsyncOperation<Hover> ProvideHover... | Fix another issue where the word Hit wasn't highlighted from the start. | Fix another issue where the word Hit wasn't highlighted from the start.
| C# | mit | hawkerm/monaco-editor-uwp,hawkerm/monaco-editor-uwp,hawkerm/monaco-editor-uwp |
31b7af2ae0d20d95777df2dbacc75576c0ba669a | Akavache.Sqlite3/AsyncLock.cs | Akavache.Sqlite3/AsyncLock.cs | using System;
using System.Threading;
using System.Threading.Tasks;
namespace Akavache.Sqlite3.Internal
{
// Straight-up thieved from http://www.hanselman.com/blog/ComparingTwoTechniquesInNETAsynchronousCoordinationPrimitives.aspx
public sealed class AsyncLock
{
readonly SemaphoreSlim m_semaphore... | using System;
using System.Threading;
using System.Threading.Tasks;
namespace Akavache.Sqlite3.Internal
{
// Straight-up thieved from http://www.hanselman.com/blog/ComparingTwoTechniquesInNETAsynchronousCoordinationPrimitives.aspx
public sealed class AsyncLock
{
readonly SemaphoreSlim m_semaphore... | Allow LockAsync to be canceled | Allow LockAsync to be canceled
| C# | mit | MarcMagnin/Akavache,bbqchickenrobot/Akavache,akavache/Akavache,kmjonmastro/Akavache,martijn00/Akavache,MathieuDSTP/MyAkavache,PureWeen/Akavache,mms-/Akavache,shana/Akavache,Loke155/Akavache,ghuntley/AkavacheSandpit,shana/Akavache,christer155/Akavache,jcomtois/Akavache,gimsum/Akavache |
93158c202cedaba149d146afef6438d3a3e95789 | Assets/Fungus/Flowchart/Scripts/EventHandlers/FlowchartEnabled.cs | Assets/Fungus/Flowchart/Scripts/EventHandlers/FlowchartEnabled.cs | using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
namespace Fungus
{
[EventHandlerInfo("",
"Flowchart Enabled",
"The block will execute when the Flowchart game object is enabled.")]
[AddComponentMenu("")]
public class FlowchartEnabled... | using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
namespace Fungus
{
[EventHandlerInfo("",
"Flowchart Enabled",
"The block will execute when the Flowchart game object is enabled.")]
[AddComponentMenu("")]
public class FlowchartEnabled... | Fix for Flowchart Enabled event handler coroutine issue | Fix for Flowchart Enabled event handler coroutine issue
| C# | mit | tapiralec/Fungus,kdoore/Fungus,snozbot/fungus,inarizushi/Fungus,RonanPearce/Fungus,FungusGames/Fungus,lealeelu/Fungus,Nilihum/fungus |
4354df02c90cd3df08920a3112bf600668d59fc3 | Engine/Plugins/Klawr/KlawrEditorPlugin/Resources/Templates/Template.cs | Engine/Plugins/Klawr/KlawrEditorPlugin/Resources/Templates/Template.cs | using Klawr.ClrHost.Interfaces;
using Klawr.UnrealEngine;
namespace $RootNamespace$
{
public class $ScriptName$ : UKlawrScriptComponent
{
public $ScriptName$(long instanceID, UObjectHandle nativeComponent)
: base(instanceID, nativeComponent)
{
}
}
}
| using Klawr.ClrHost.Interfaces;
using Klawr.ClrHost.Managed.SafeHandles;
using Klawr.UnrealEngine;
namespace $RootNamespace$
{
public class $ScriptName$ : UKlawrScriptComponent
{
public $ScriptName$(long instanceID, UObjectHandle nativeComponent)
: base(instanceID, nativeComponent)
... | Add missing namespace to Klawr script component template | Add missing namespace to Klawr script component template
This fixes an issue where adding a new script in UnrealEd broke
building of the GameScripts assembly.
| C# | mit | enlight/klawr,Algorithman/klawr,enlight/klawr,Algorithman/klawr,enlight/klawr,Algorithman/klawr |
9e44dcfaf2afa981ef477248999b07575019990a | Projects/CsProjArrange/CsProjArrange/AttributeKeyComparer.cs | Projects/CsProjArrange/CsProjArrange/AttributeKeyComparer.cs | using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
namespace CsProjArrange
{
/// <summary>
/// Compares a list of attributes in order by value.
/// </summary>
public class AttributeKeyComparer : IComparer<IEnumerable<XAttribute>>
{
public AttributeKeyComparer(IEnume... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
namespace CsProjArrange
{
/// <summary>
/// Compares a list of attributes in order by value.
/// </summary>
public class AttributeKeyComparer : IComparer<IEnumerable<XAttribute>>
{
public AttributeKeyC... | Use invariant culture for string comparisons | Use invariant culture for string comparisons
| C# | apache-2.0 | miratechcorp/CsProjArrange |
1a60b16fdc46fd7a315235b22c1fc0db3ea057de | WalletWasabi.Fluent/ViewModels/Wallets/Actions/WalletActionViewModel.cs | WalletWasabi.Fluent/ViewModels/Wallets/Actions/WalletActionViewModel.cs | using WalletWasabi.Fluent.ViewModels.NavBar;
using WalletWasabi.Helpers;
namespace WalletWasabi.Fluent.ViewModels.Wallets.Actions
{
public abstract partial class WalletActionViewModel : NavBarItemViewModel
{
[AutoNotify] private bool _isEnabled;
protected WalletActionViewModel(WalletViewModelBase wallet)
{
... | using System.Reactive;
using System.Reactive.Linq;
using ReactiveUI;
using WalletWasabi.Fluent.ViewModels.NavBar;
using WalletWasabi.Helpers;
using WalletWasabi.Wallets;
namespace WalletWasabi.Fluent.ViewModels.Wallets.Actions
{
public abstract partial class WalletActionViewModel : NavBarItemViewModel
{
[AutoNoti... | Set IsEnabled wallet action property depending on wallet state | Set IsEnabled wallet action property depending on wallet state
| C# | mit | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet |
4746163493c14f9c435bbe99f830e12cb73dd895 | SCPI/Acquire/ACQUIRE_SRATE.cs | SCPI/Acquire/ACQUIRE_SRATE.cs | using System.Globalization;
using System.Text;
namespace SCPI.Acquire
{
public class ACQUIRE_SRATE : ICommand
{
public string Description => "Query the current sample rate. The default unit is Sa/s.";
public float SampleRate { get; private set; }
public string Command(params string[]... | using SCPI.Extensions;
using System.Text;
namespace SCPI.Acquire
{
public class ACQUIRE_SRATE : ICommand
{
public string Description => "Query the current sample rate. The default unit is Sa/s.";
public float SampleRate { get; private set; }
public string Command(params string[] para... | Use extension method for string to float conversion | Use extension method for string to float conversion
| C# | mit | tparviainen/oscilloscope |
a6eb30a878aba7151e976975b6dc283a6dadfa01 | Code/Mod.cs | Code/Mod.cs | using ICities;
using CitiesHarmony.API;
namespace UOCRevisited
{
/// <summary>
/// The base mod class for instantiation by the game.
/// </summary>
public class UOCRMod : IUserMod
{
// Public mod name and description.
public string Name => ModName + " " + Version;
public s... | using ICities;
using CitiesHarmony.API;
namespace UOCRevisited
{
/// <summary>
/// The base mod class for instantiation by the game.
/// </summary>
public class UOCRMod : IUserMod
{
// Public mod name and description.
public string Name => ModName + " " + Version;
public s... | Prepare for 1.0 BETA 2. | Prepare for 1.0 BETA 2.
| C# | mit | earalov/Skylines-UnlimitedOutsideConnections |
6f14066a51097b22eace9ba481a4a7fb1599dfcf | OpenStardriveServer/Startup.cs | OpenStardriveServer/Startup.cs | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using OpenStardriveServer.Domain.Database;
using OpenStardriveServer.HostedServices;
namespace OpenStardriveServer;
public class Startup
{
public void Configu... | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using OpenStardriveServer.Domain.Database;
using OpenStardriveServer.HostedServices;
namespace OpenStardriveServer;
public class Startup
{
public void Configu... | Add CORS for local testing | Add CORS for local testing
| C# | apache-2.0 | openstardrive/server,openstardrive/server,openstardrive/server |
c5c688cf86f82d6d80f4e78ad08a3b824f4e2a33 | test/Raygun.Owin.Tests/Messages/Tests/RaygunClientMessageTests.cs | test/Raygun.Owin.Tests/Messages/Tests/RaygunClientMessageTests.cs | namespace Raygun.Messages.Tests
{
using NUnit.Framework;
using Shouldly;
[TestFixture]
public class RaygunClientMessageTests
{
[Test]
public void Should_return_name_from_the_AssemblyTitleAttribute()
{
// Given
var sut = SutFactory();
//... | namespace Raygun.Messages.Tests
{
using NUnit.Framework;
using Shouldly;
[TestFixture]
public class RaygunClientMessageTests
{
[Test]
public void Should_return_name_from_the_AssemblyTitleAttribute()
{
// Given
var sut = SutFactory();
//... | Load the expected version from the assembly | Load the expected version from the assembly
| C# | mit | xt0rted/Raygun.Owin |
5995e674d46f8e6c34f775875f5fd7c29c791ff7 | Prometheus.HttpExporter.AspNetCore/InFlight/HttpInFlightOptions.cs | Prometheus.HttpExporter.AspNetCore/InFlight/HttpInFlightOptions.cs | namespace Prometheus.HttpExporter.AspNetCore.InFlight
{
public class HttpInFlightOptions : HttpExporterOptionsBase
{
public Gauge Gauge { get; set; } =
Metrics.CreateGauge(DefaultName, DefaultHelp);
private const string DefaultName = "aspnet_http_inflight";
private c... | namespace Prometheus.HttpExporter.AspNetCore.InFlight
{
public class HttpInFlightOptions : HttpExporterOptionsBase
{
public Gauge Gauge { get; set; } =
Metrics.CreateGauge(DefaultName, DefaultHelp);
private const string DefaultName = "http_executing_requests";
privat... | Change http inflight requests default name to match Prometheus guidelines | Change http inflight requests default name to match Prometheus guidelines
| C# | mit | andrasm/prometheus-net |
718c6b837ba5822bd84cc7757af1871211f49da1 | SourceSchemaParser/Dota2/DotaSchemaItem.cs | SourceSchemaParser/Dota2/DotaSchemaItem.cs | using Newtonsoft.Json;
using SourceSchemaParser.JsonConverters;
using System;
using System.Collections.Generic;
namespace SourceSchemaParser.Dota2
{
public class DotaSchemaItem : SchemaItem
{
public DotaSchemaItemTool Tool { get; set; }
[JsonProperty("tournament_url")]
public string T... | using Newtonsoft.Json;
using SourceSchemaParser.JsonConverters;
using System;
using System.Collections.Generic;
namespace SourceSchemaParser.Dota2
{
public class DotaSchemaItem : SchemaItem
{
public DotaSchemaItemTool Tool { get; set; }
[JsonProperty("tournament_url")]
public string T... | Add item quality to schema items. | Add item quality to schema items.
| C# | mit | babelshift/SourceSchemaParser |
85afb011a9fc3d7265ff9d882c1a3b93753ad06a | src/Smooth.IoC.Dapper.Repository.UnitOfWork/Repo/RepositoryGet.cs | src/Smooth.IoC.Dapper.Repository.UnitOfWork/Repo/RepositoryGet.cs | using System;
using System.Data;
using System.Threading.Tasks;
using Dapper.FastCrud;
using Dapper.FastCrud.Configuration.StatementOptions.Builders;
using Smooth.IoC.Dapper.Repository.UnitOfWork.Data;
using Smooth.IoC.Dapper.Repository.UnitOfWork.Helpers;
namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Repo
{
p... | using System;
using System.Data;
using System.Threading.Tasks;
using Dapper.FastCrud;
using Dapper.FastCrud.Configuration.StatementOptions.Builders;
using Smooth.IoC.Dapper.Repository.UnitOfWork.Data;
using Smooth.IoC.Dapper.Repository.UnitOfWork.Helpers;
namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Repo
{
p... | Add an entity get. and change old get to get key | Add an entity get. and change old get to get key
| C# | mit | generik0/Smooth.IoC.Dapper.Repository.UnitOfWork,generik0/Smooth.IoC.Dapper.Repository.UnitOfWork |
d0546487436677594dfc7ad0218d6b0c845884a8 | src/AndroidDebugLauncher/TargetArchitectureExtensions.cs | src/AndroidDebugLauncher/TargetArchitectureExtensions.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.Diagnostics;
using MICore;
namespace AndroidDebugLauncher
{
internal static class TargetArchitectureExtensions
{
public sta... | // 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.Diagnostics;
using MICore;
namespace AndroidDebugLauncher
{
internal static class TargetArchitectureExtensions
{
public sta... | Use correct extension for Android x64 folder | Use correct extension for Android x64 folder
| C# | mit | Microsoft/MIEngine,orbitcowboy/MIEngine,Microsoft/MIEngine,orbitcowboy/MIEngine,Microsoft/MIEngine,orbitcowboy/MIEngine,orbitcowboy/MIEngine,Microsoft/MIEngine |
db9c0103d18d69bb1892c048b917e4f2ed17e274 | test/Bartender.Tests/CancellableAsyncQueryDispatcherTests.cs | test/Bartender.Tests/CancellableAsyncQueryDispatcherTests.cs | using Bartender.Tests.Context;
using Moq;
using Xunit;
namespace Bartender.Tests
{
public class CancellableAsyncQueryDispatcherTests : DispatcherTests
{
[Fact]
public async void ShouldHandleQueryOnce_WhenCallDispatchAsyncMethod()
{
await CancellableAsyncQueryDispatcher.Dispa... | using Bartender.Tests.Context;
using Moq;
using Shouldly;
using Xunit;
namespace Bartender.Tests
{
public class CancellableAsyncQueryDispatcherTests : DispatcherTests
{
[Fact]
public async void ShouldHandleQueryOnce_WhenCallDispatchAsyncMethod()
{
await CancellableAsyncQuery... | Add test cover for cancellable async query handling | Add test cover for cancellable async query handling
| C# | mit | Vtek/Bartender |
aac97a4aff2526737888c7578e42a2de6baec71d | src/Seq.Api/Api/Model/Diagnostics/ServerMetricsEntity.cs | src/Seq.Api/Api/Model/Diagnostics/ServerMetricsEntity.cs | using System;
using System.Collections.Generic;
namespace Seq.Api.Model.Diagnostics
{
public class ServerMetricsEntity : Entity
{
public ServerMetricsEntity()
{
RunningTasks = new List<RunningTaskPart>();
}
public double EventStoreDaysRecorded { get; set; }
... | using System;
using System.Collections.Generic;
namespace Seq.Api.Model.Diagnostics
{
public class ServerMetricsEntity : Entity
{
public ServerMetricsEntity()
{
RunningTasks = new List<RunningTaskPart>();
}
public double EventStoreDaysRecorded { get; set; }
... | Remove active transactions metric no longer supplied by Seq 4 | Remove active transactions metric no longer supplied by Seq 4
| C# | apache-2.0 | continuousit/seq-api,datalust/seq-api |
4f92891340bb228f8240268705436629bc2ea514 | Dcc.Test/DccMiddlewareTests.cs | Dcc.Test/DccMiddlewareTests.cs | using Xunit;
namespace Dcc.Test
{
public class DccMiddlewareTests
{
[Fact]
public void SanityTest()
{
Assert.True(true);
}
}
} | using FluentAssertions;
using Xunit;
namespace Dcc.Test
{
public class DccMiddlewareTests
{
[Fact]
public void SanityTest()
{
true.Should().BeTrue();
}
}
} | Make use of FluentAssertions in sanity unit test. | Make use of FluentAssertions in sanity unit test.
| C# | mit | tiesmaster/DCC,tiesmaster/DCC |
825a5f7faedbf0d60204f48969c59996da6f53cd | Framework/Source/Tralus.Framework.Migration/Migrations/Configuration.cs | Framework/Source/Tralus.Framework.Migration/Migrations/Configuration.cs | using System;
using Tralus.Framework.BusinessModel.Entities;
namespace Tralus.Framework.Migration.Migrations
{
using System.Data.Entity.Migrations;
public sealed class Configuration : TralusDbMigrationConfiguration<Data.FrameworkDbContext>
{
public Configuration()
{
AutomaticM... | using System;
using Tralus.Framework.BusinessModel.Entities;
namespace Tralus.Framework.Migration.Migrations
{
using System.Data.Entity.Migrations;
public sealed class Configuration : TralusDbMigrationConfiguration<Data.FrameworkDbContext>
{
public Configuration()
{
AutomaticM... | Correct Administrators Role (set IsAdministrator to false) | Correct Administrators Role (set IsAdministrator to false)
| C# | apache-2.0 | mehrandvd/Tralus,mehrandvd/Tralus |
5570c35e2be81d1db1066a079f16b6b8002d9e71 | src/CompetitionPlatform/Data/ProjectCategory/ProjectCategoriesRepository.cs | src/CompetitionPlatform/Data/ProjectCategory/ProjectCategoriesRepository.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using CompetitionPlatform.Data.ProjectCategory;
namespace CompetitionPlatform.Data.ProjectCategory
{
public class ProjectCategoriesRepository : IProjectCategoriesRepository
{
public List<string> GetCategor... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using CompetitionPlatform.Data.ProjectCategory;
namespace CompetitionPlatform.Data.ProjectCategory
{
public class ProjectCategoriesRepository : IProjectCategoriesRepository
{
public List<string> GetCategor... | Add new category - "Communications and media". | Add new category - "Communications and media".
| C# | mit | LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform |
3761711ebcd3b5ea13079c1affbb23a98dfe2f8b | StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp7/SpacingRules/SA1008CSharp7UnitTests.cs | StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp7/SpacingRules/SA1008CSharp7UnitTests.cs | // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
namespace StyleCop.Analyzers.Test.CSharp7.SpacingRules
{
using Test.SpacingRules;
public class SA1008CSharp7UnitTests : SA1008Unit... | // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
namespace StyleCop.Analyzers.Test.CSharp7.SpacingRules
{
using System.Threading;
using System.Threading.Tasks;
using StyleCop.A... | Add SA1008 tests for ref expressions | Add SA1008 tests for ref expressions
| C# | mit | DotNetAnalyzers/StyleCopAnalyzers |
5b14199c12368b03cec5003266d66369265864c1 | src/Fixie.Assertions/EnumerableEqualityComparer.cs | src/Fixie.Assertions/EnumerableEqualityComparer.cs | namespace Fixie.Assertions
{
using System;
using System.Collections;
class EnumerableEqualityComparer
{
public bool EnumerableEqual(IEnumerable x, IEnumerable y)
{
var enumeratorX = x.GetEnumerator();
var enumeratorY = y.GetEnumerator();
while (true)... | namespace Fixie.Assertions
{
using System;
using System.Collections;
class EnumerableEqualityComparer
{
public bool EnumerableEqual(IEnumerable x, IEnumerable y)
{
var enumeratorX = x.GetEnumerator();
var enumeratorY = y.GetEnumerator();
while (true)... | Rename Enumerable.Equals(object, object, Type) to ItemsEqual, for clarity of purpose. | Rename Enumerable.Equals(object, object, Type) to ItemsEqual, for clarity of purpose.
| C# | mit | fixie/fixie |
067beeb2bce379dd9eac2f3b0f101c50203ce5ed | TechSupportService/Service1.svc.cs | TechSupportService/Service1.svc.cs | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using DbAndRepository;
using DbAndRepository.IRepositories;
using DbAndR... | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using DbAndRepository;
using DbAndRepository.IRepositories;
using DbAndR... | Update TecSupportService1 with the new parameter list. | Update TecSupportService1 with the new parameter list.
| C# | mit | eky0151/SchProject,eky0151/SchProject,eky0151/SchProject |
12385e5117b0678a779a2afe00fbf12a43ac108a | Entitas.Unity/Assets/Entitas/Unity/Editor/ScriptingDefineSymbols.cs | Entitas.Unity/Assets/Entitas/Unity/Editor/ScriptingDefineSymbols.cs | using System;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
namespace Entitas.Unity {
public class ScriptingDefineSymbols {
public Dictionary<BuildTargetGroup, string> buildTargetToDefSymbol { get { return _buildTargetToDefSymbol; } }
readonly Dictionary<BuildTargetGrou... | using System;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
namespace Entitas.Unity {
public class ScriptingDefineSymbols {
public Dictionary<BuildTargetGroup, string> buildTargetToDefSymbol { get { return _buildTargetToDefSymbol; } }
readonly Dictionary<BuildTargetGrou... | Fix error when turning visual debugging on/off in Unity 5.4 or newer | Fix error when turning visual debugging on/off in Unity 5.4 or newer
| C# | mit | sschmid/Entitas-CSharp,sschmid/Entitas-CSharp |
3045a7c4af791bab688c610c5e4115dabdeebc09 | ForecastPCL.Test/LanguageTests.cs | ForecastPCL.Test/LanguageTests.cs | namespace ForecastPCL.Test
{
using System;
using System.Configuration;
using System.Threading.Tasks;
using DarkSkyApi;
using NUnit.Framework;
[TestFixture]
public class LanguageTests
{
// These coordinates came from the Forecast API documentation,
// and should return... | namespace ForecastPCL.Test
{
using System;
using System.Configuration;
using System.Threading.Tasks;
using DarkSkyApi;
using NUnit.Framework;
[TestFixture]
public class LanguageTests
{
// These coordinates came from the Forecast API documentation,
// and should return... | Use OneTimeSetUp instead of TestFixtureSetUp. | Use OneTimeSetUp instead of TestFixtureSetUp.
| C# | mit | jcheng31/ForecastPCL,jcheng31/DarkSkyApi |
3070c9daab25154643704b815127d7f2c3680e0a | src/System.Net.NameResolution/tests/FunctionalTests/LoggingTest.cs | src/System.Net.NameResolution/tests/FunctionalTests/LoggingTest.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.Diagnostics.Tracing;
using System.Reflection;
using Xunit;
namespace System.Net.NameResolution.Tests
{... | // 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.Diagnostics.Tracing;
using System.Reflection;
using Xunit;
namespace System.Net.NameResolution.Tests
{... | Fix build for versions without Assembly.Location | Fix build for versions without Assembly.Location | C# | mit | axelheer/corefx,krk/corefx,parjong/corefx,MaggieTsang/corefx,cydhaselton/corefx,tijoytom/corefx,JosephTremoulet/corefx,axelheer/corefx,ravimeda/corefx,nchikanov/corefx,ravimeda/corefx,cydhaselton/corefx,dotnet-bot/corefx,mmitche/corefx,jlin177/corefx,MaggieTsang/corefx,lggomez/corefx,Ermiar/corefx,stone-li/corefx,marks... |
18c3965d7798eca06221b24a6ca1e9186d2cf823 | src/SFA.DAS.EmployerAccounts.Web/Authorization/AuthorizationConstants.cs | src/SFA.DAS.EmployerAccounts.Web/Authorization/AuthorizationConstants.cs | namespace SFA.DAS.EmployerAccounts.Web.Authorization
{
public static class AuthorizationConstants
{
public const string Tier2User = "Tier2User";
public const string TeamViewRoute = "accounts/{hashedaccountid}/teams/view";
public const string TeamRoute = "accounts/{hashedaccountid}/teams... | namespace SFA.DAS.EmployerAccounts.Web.Authorization
{
public static class AuthorizationConstants
{
public const string Tier2User = "Tier2User";
public const string TeamViewRoute = "accounts/{hashedaccountid}/teams/view";
public const string TeamRoute = "accounts/{hashedaccountid}/teams... | Update remove route to correct value | Update remove route to correct value
| C# | mit | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice |
0c9ac7fa45140e06bfb74865ed651f4cff35ba79 | src/Umbraco.Core/Logging/SerilogExtensions/Log4NetLevelMapperEnricher.cs | src/Umbraco.Core/Logging/SerilogExtensions/Log4NetLevelMapperEnricher.cs | using Serilog.Core;
using Serilog.Events;
namespace Umbraco.Core.Logging.SerilogExtensions
{
/// <summary>
/// This is used to create a new property in Logs called 'Log4NetLevel'
/// So that we can map Serilog levels to Log4Net levels - so log files stay consistent
/// </summary>
public class Log4... | using Serilog.Core;
using Serilog.Events;
namespace Umbraco.Core.Logging.SerilogExtensions
{
/// <summary>
/// This is used to create a new property in Logs called 'Log4NetLevel'
/// So that we can map Serilog levels to Log4Net levels - so log files stay consistent
/// </summary>
internal class Lo... | Make Log4NetLevel enricher internal - no need for it to be public | Make Log4NetLevel enricher internal - no need for it to be public
| C# | mit | tcmorris/Umbraco-CMS,mattbrailsford/Umbraco-CMS,hfloyd/Umbraco-CMS,KevinJump/Umbraco-CMS,rasmuseeg/Umbraco-CMS,lars-erik/Umbraco-CMS,abjerner/Umbraco-CMS,KevinJump/Umbraco-CMS,marcemarc/Umbraco-CMS,tcmorris/Umbraco-CMS,bjarnef/Umbraco-CMS,robertjf/Umbraco-CMS,tompipe/Umbraco-CMS,NikRimington/Umbraco-CMS,umbraco/Umbraco... |
5aaaae3790d0297ec8b4e3bdb8a41c0842e2b631 | Connectors/src/AspDotNetCore/Rabbit/Controllers/RabbitController.cs | Connectors/src/AspDotNetCore/Rabbit/Controllers/RabbitController.cs | using System.Text;
using Microsoft.AspNetCore.Mvc;
using RabbitMQ.Client;
namespace Rabbit.Controllers
{
public class RabbitController : Controller
{
ConnectionFactory _rabbitConnection;
public RabbitController([FromServices] ConnectionFactory rabbitConnection)
{
_rabbitCo... | using System.Text;
using Microsoft.AspNetCore.Mvc;
using RabbitMQ.Client;
#if SSL
using System.Security.Authentication;
using System.Net.Security;
#endif
namespace Rabbit.Controllers
{
public class RabbitController : Controller
{
ConnectionFactory _rabbitConnection;
public RabbitController([... | Add SSL option to Rabbit sample | Add SSL option to Rabbit sample
| C# | apache-2.0 | SteelToeOSS/Samples,SteelToeOSS/Samples,SteelToeOSS/Samples,SteelToeOSS/Samples |
71500e795058a3add358d5de6049e53964b7d95e | Ets.Mobile/Ets.Mobile.WindowsPhone/Content/Settings/Options.xaml.cs | Ets.Mobile/Ets.Mobile.WindowsPhone/Content/Settings/Options.xaml.cs | using Ets.Mobile.ViewModel.Contracts.Settings;
using System;
using System.Reactive.Linq;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using ReactiveUI;
using System.Reactive.Concurrency;
namespace Ets.Mobile.Content.Settings
{
public sealed partial class Options : UserControl
{
public Option... | using Ets.Mobile.ViewModel.Contracts.Settings;
using System;
using System.Reactive.Linq;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
namespace Ets.Mobile.Content.Settings
{
public sealed partial class Options : UserControl
{
public Options()
{
InitializeComponent();
... | Use ReactiveUI Events for Data Context Changed | Use ReactiveUI Events for Data Context Changed
| C# | apache-2.0 | ApplETS/ETSMobile-WindowsPlatforms,ApplETS/ETSMobile-WindowsPlatforms |
a23e28683cd0403e556c3fcd27acd90cf257af94 | Zk/Views/Shared/_Layout.cshtml | Zk/Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<title>Zaaikalender | @ViewBag.Title</title>
<link rel="stylesheet" href="/Content/Stylesheets/responsive-square-elements.css">
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="/Scripts/flowtype.js"></script>
<script src="/Scripts/font-sett... | <!DOCTYPE html>
<html>
<head>
<title>Zaaikalender | @ViewBag.Title</title>
<link rel="stylesheet" href="/Content/Stylesheets/responsive-square-elements.css">
<!--[if lte IE 8]>
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/4.0.3/es5-shim.min.js"></script>
<script src="//cdnjs.c... | Add scripts that make HTML5, CSS and JavaScript work in Internet Explorer 8 and lower | Add scripts that make HTML5, CSS and JavaScript work in Internet Explorer 8 and lower
| C# | mit | erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner |
ddc3621512eb8010b13daea8e36a216e1b0ba31e | Palaso/Xml/XmlDomExtensions.cs | Palaso/Xml/XmlDomExtensions.cs | using System.Xml;
namespace Palaso.Xml
{
public static class XmlDomExtensions
{
public static XmlDocument StripXHtmlNameSpace(this XmlDocument node)
{
XmlDocument x = new XmlDocument();
x.LoadXml(node.OuterXml.Replace("xmlns", "xmlnsNeutered"));
return x;
}
public static void AddStyleSheet(this Xm... | using System;
using System.IO;
using System.Xml;
namespace Palaso.Xml
{
public static class XmlDomExtensions
{
public static XmlDocument StripXHtmlNameSpace(this XmlDocument node)
{
XmlDocument x = new XmlDocument();
x.LoadXml(node.OuterXml.Replace("xmlns", "xmlnsNeutered"));
return x;
}
public st... | Tweak Stylesheet Link writing in XMlDomExtenstions | Tweak Stylesheet Link writing in XMlDomExtenstions
| C# | mit | darcywong00/libpalaso,tombogle/libpalaso,darcywong00/libpalaso,sillsdev/libpalaso,hatton/libpalaso,ddaspit/libpalaso,tombogle/libpalaso,gtryus/libpalaso,marksvc/libpalaso,tombogle/libpalaso,glasseyes/libpalaso,gmartin7/libpalaso,JohnThomson/libpalaso,gmartin7/libpalaso,marksvc/libpalaso,andrew-polk/libpalaso,ddaspit/li... |
f4533db6c2eb955d5433cf52e85d32a223a7bba8 | CIV/Program.cs | CIV/Program.cs | using static System.Console;
using CIV.Ccs;
using CIV.Interfaces;
namespace CIV
{
class Program
{
static void Main(string[] args)
{
var text = System.IO.File.ReadAllText(args[0]);
var processes = CcsFacade.ParseAll(text);
var trace = CcsFacade.RandomTrace(processes["... | using static System.Console;
using System.Linq;
using CIV.Ccs;
using CIV.Hml;
namespace CIV
{
class Program
{
static void Main(string[] args)
{
var text = System.IO.File.ReadAllText(args[0]);
var processes = CcsFacade.ParseAll(text);
var hmlText = "[[ack]][[ack]][[ack... | Remove RandomTrace stuff from main | Remove RandomTrace stuff from main
| C# | mit | lou1306/CIV,lou1306/CIV |
37e56ebe5371b2474df26379b6e082c80102806b | src/Meraki.Console/Program.cs | src/Meraki.Console/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using CommandLine;
using Meraki;
namespace Meraki.Console
{
class Program
{
static void Main(string[] args)
{
try
{
Parser.Default.ParseArguments<LabOptions,... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using CommandLine;
using Meraki;
namespace Meraki.Console
{
class Program
{
static void Main(string[] args)
{
try
{
Parser.Default.ParseArguments<LabOptions,... | Fix command line error display | Fix command line error display
| C# | mit | anthonylangsworth/Meraki |
40e086d2f3fffc773d0edc38dde558df7fdb8946 | KenticoInspector.Core/Models/ReportResults.cs | KenticoInspector.Core/Models/ReportResults.cs | using System.Dynamic;
namespace KenticoInspector.Core.Models
{
public class ReportResults
{
public ReportResults()
{
Data = new ExpandoObject();
}
public dynamic Data { get; set; }
public string Status { get; set; }
public string Summary { get; set;... | using System.Dynamic;
namespace KenticoInspector.Core.Models
{
public class ReportResults
{
public ReportResults()
{
Data = new ExpandoObject();
}
public dynamic Data { get; set; }
public string Heading { get; set; }
public string Status { get; set;... | Add heading to report result class | Add heading to report result class
| C# | mit | Kentico/KInspector,Kentico/KInspector,ChristopherJennings/KInspector,Kentico/KInspector,ChristopherJennings/KInspector,ChristopherJennings/KInspector,Kentico/KInspector,ChristopherJennings/KInspector |
73ee7adef95a89e27edbb46df47094de29eef20a | src/Arkivverket.Arkade.Core/Util/FileFormatIdentification/IFileFormatInfoFilesGenerator.cs | src/Arkivverket.Arkade.Core/Util/FileFormatIdentification/IFileFormatInfoFilesGenerator.cs | using System.Collections.Generic;
namespace Arkivverket.Arkade.Core.Util.FileFormatIdentification;
public interface IFileFormatInfoFilesGenerator
{
void Generate(IEnumerable<IFileFormatInfo> fileFormatInfoSet, string relativePathRoot, string resultFileFullPath);
} | using System.Collections.Generic;
namespace Arkivverket.Arkade.Core.Util.FileFormatIdentification
{
public interface IFileFormatInfoFilesGenerator
{
void Generate(IEnumerable<IFileFormatInfo> fileFormatInfoSet, string relativePathRoot,
string resultFileFullPath);
}
} | Add namespace brackets - because of teamcity | Add namespace brackets - because of teamcity
ARKADE-631 | C# | agpl-3.0 | arkivverket/arkade5,arkivverket/arkade5,arkivverket/arkade5 |
899d2d2a405793df099a479e3741cc9a39a2df71 | PathViewer/PathViewForm.cs | PathViewer/PathViewForm.cs | using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace PathViewer
{
public partial class FormPathViewer : Form
{
... | using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace PathViewer
{
public partial class FormPathViewer : Form
{
... | Set the column width to resize when the listview resizes | Set the column width to resize when the listview resizes
| C# | mit | Slapout/PathViewer |
a6f8c5298dc648ece7cf664fd63a4a2e3a0dcaa8 | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Autofac.Extras.Tests.Moq")]
[assembly: AssemblyDescription("")]
| using System.Reflection;
[assembly: AssemblyTitle("Autofac.Extras.Tests.Moq")]
| Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major. | Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major.
| C# | mit | autofac/Autofac.Extras.Moq |
46411c5c8a3775cf781656845665ce82de6535ff | SteamGames/GameRenderer.cs | SteamGames/GameRenderer.cs | using System.Drawing;
using System.Windows.Forms;
using BrightIdeasSoftware;
namespace SteamGames
{
internal sealed class GameRenderer : AbstractRenderer
{
private readonly StringFormat sf;
public GameRenderer()
{
sf = new StringFormat(StringFormat.GenericTypographic);
sf.Alignment = StringAlignment.C... | using System.Drawing;
using System.Windows.Forms;
using BrightIdeasSoftware;
namespace SteamGames
{
internal sealed class GameRenderer : AbstractRenderer
{
private readonly StringFormat sf;
private Brush SelectionBrush = new SolidBrush(Color.FromKnownColor(KnownColor.Highlight));
public GameRenderer()
{
... | Use system highlight color in game list selection | Use system highlight color in game list selection
| C# | mit | zr40/steamgames |
aab96523d5af3c82125bf7098b2dd3a8dac4fadc | src/Assent/Reporters/DiffReporter.cs | src/Assent/Reporters/DiffReporter.cs | using System;
using System.Collections.Generic;
using Assent.Reporters.DiffPrograms;
namespace Assent.Reporters
{
public class DiffReporter : IReporter
{
#if NET45
internal static readonly bool IsWindows = Environment.OSVersion.Platform == PlatformID.Win32NT;
#else
internal static readonly bool... | using System;
using System.Collections.Generic;
using Assent.Reporters.DiffPrograms;
namespace Assent.Reporters
{
public class DiffReporter : IReporter
{
#if NET45
internal static readonly bool IsWindows = Environment.OSVersion.Platform == PlatformID.Win32NT;
#else
internal static readonly bool... | Support Beyond Compare on linux | Support Beyond Compare on linux | C# | mit | droyad/Assent |
719b08b22fc0f078194b3fa54c64c78f88786666 | osu.Game/Online/RealtimeMultiplayer/MultiplayerRoomSettings.cs | osu.Game/Online/RealtimeMultiplayer/MultiplayerRoomSettings.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 System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using osu.Game.Online.API;
namespace osu.Game.Online.Re... | // 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 System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using osu.Game.Online.API;
namespace osu.Game.Online.Re... | Make room setting's BeatmapID non-nullable | Make room setting's BeatmapID non-nullable
| C# | mit | ppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,peppy/osu-new,ppy/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,peppy/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,smoogipooo/osu,smoogipoo/osu |
b3f5f7f162d39d41530e230e14f1079828acbdaf | Source/Lib/TraktApiSharp/Objects/Get/Users/Lists/TraktListIds.cs | Source/Lib/TraktApiSharp/Objects/Get/Users/Lists/TraktListIds.cs | namespace TraktApiSharp.Objects.Get.Users.Lists
{
using Newtonsoft.Json;
using System.Globalization;
/// <summary>
/// A collection of ids for various web services for a Trakt list.
/// </summary>
public class TraktListIds
{
/// <summary>
/// The Trakt numeric id for the li... | namespace TraktApiSharp.Objects.Get.Users.Lists
{
using Newtonsoft.Json;
/// <summary>A collection of ids for various web services, including the Trakt id, for a Trakt list.</summary>
public class TraktListIds
{
/// <summary>Gets or sets the Trakt numeric id.</summary>
[JsonProperty(Pr... | Update existing documentation for list ids. | Update existing documentation for list ids.
| C# | mit | henrikfroehling/TraktApiSharp |
394012ec124b7f81c3e44c6d3f5fd24684742ee1 | src/MassTransit/Internals/Mapping/NullableValueObjectMapper.cs | src/MassTransit/Internals/Mapping/NullableValueObjectMapper.cs | // Copyright 2007-2015 Chris Patterson, Dru Sellers, Travis Smith, et. al.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at
//
// http://www.apache.org/licenses/LICENSE-2.0... | // Copyright 2007-2015 Chris Patterson, Dru Sellers, Travis Smith, et. al.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at
//
// http://www.apache.org/licenses/LICENSE-2.0... | Use a type converter to try and convert values | Use a type converter to try and convert values
Former-commit-id: 9abec8ae101be7d50e3c33ca999a128a7d4cad98 | C# | apache-2.0 | MassTransit/MassTransit,MassTransit/MassTransit,SanSYS/MassTransit,SanSYS/MassTransit,jacobpovar/MassTransit,phatboyg/MassTransit,jacobpovar/MassTransit,phatboyg/MassTransit |
7e4ba2d805416f9dc7e146e40a0ca2a63a007bac | SecretSanta/Utilities/EmailMessage.cs | SecretSanta/Utilities/EmailMessage.cs | using MailKit.Net.Smtp;
using MimeKit;
using MimeKit.Text;
using System;
using System.Collections.Generic;
namespace SecretSanta.Utilities
{
public static class EmailMessage
{
public static void Send(MailboxAddress from, IEnumerable<MailboxAddress> to, string subject, string body)
{
... | using MailKit.Net.Smtp;
using MimeKit;
using MimeKit.Text;
using System;
using System.Collections.Generic;
namespace SecretSanta.Utilities
{
public static class EmailMessage
{
public static void Send(MailboxAddress from, IEnumerable<MailboxAddress> to, string subject, string body)
{
... | Disable SSL for sending e-mails | Disable SSL for sending e-mails
| C# | apache-2.0 | bradwestness/SecretSanta,bradwestness/SecretSanta |
8ccf98333ea636f6a313aa0cb65423f6e89b78d7 | Content.Client/GameObjects/Components/Movement/PlayerInputMoverComponent.cs | Content.Client/GameObjects/Components/Movement/PlayerInputMoverComponent.cs | using Content.Shared.GameObjects.Components.Movement;
using Robust.Client.Player;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Map;
#nullable enable
namespace Content.Client.GameObjects.Components.Movement
{
[RegisterComponent]
[ComponentReference(typeof(IMoverComponent))]
... | using Content.Shared.GameObjects.Components.Movement;
using Robust.Shared.GameObjects;
using Robust.Shared.Map;
#nullable enable
namespace Content.Client.GameObjects.Components.Movement
{
[RegisterComponent]
[ComponentReference(typeof(IMoverComponent))]
public class PlayerInputMoverComponent : SharedPlaye... | Remove bad component state hack from client mover component. | Remove bad component state hack from client mover component.
| C# | mit | space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14-content,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 |
5e14f6e5c19d4ea763f13278e7ad93d5c9e7e32c | src/Dangl.WebDocumentation/ViewModels/Admin/CreateProjectViewModel.cs | src/Dangl.WebDocumentation/ViewModels/Admin/CreateProjectViewModel.cs | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Dangl.WebDocumentation.ViewModels.Admin
{
public class CreateProjectViewModel
{
[Display(Name ="Name")]
public string ProjectName { get; set; }
[Display(Name ="Public access")]
public bool... | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Dangl.WebDocumentation.ViewModels.Admin
{
public class CreateProjectViewModel
{
[Display(Name ="Name")]
[Required]
public string ProjectName { get; set; }
[Display(Name ="Public access")]
... | Mark required properties in ViewModel | Mark required properties in ViewModel
| C# | mit | GeorgDangl/WebDocu,GeorgDangl/WebDocu,GeorgDangl/WebDocu |
a36afe0b4467705736f2a4c84a64895cb423e595 | DAQ/PHBonesawFileSystem.cs | DAQ/PHBonesawFileSystem.cs | using System;
namespace DAQ.Environment
{
public class PHBonesawFileSystem : DAQ.Environment.FileSystem
{
public PHBonesawFileSystem()
{
Paths.Add("MOTMasterDataPath", "C:\\Users\\cafmot\\Box\\CaF MOT\\MOTData\\MOTMasterData\\");
Paths.Add("scriptListPath", "C:\\Control... | using System;
namespace DAQ.Environment
{
public class PHBonesawFileSystem : DAQ.Environment.FileSystem
{
public PHBonesawFileSystem()
{
Paths.Add("MOTMasterDataPath", "C:\\Users\\cafmot\\Box Sync\\CaF MOT\\MOTData\\MOTMasterData\\");
Paths.Add("scriptListPath", "C:\\Co... | Change CaF file system paths | Change CaF file system paths
- We've moved back to using Box sync (instead of Box drive) on lab
computer so file paths have changed
| C# | mit | ColdMatter/EDMSuite,ColdMatter/EDMSuite,ColdMatter/EDMSuite,ColdMatter/EDMSuite |
3489431415773b108b17f6162a1569af9b59817a | pvcfile.csx | pvcfile.csx | #load ../amazon.csx
pvc.Task("push", () => {
pvc.Source("src/**/*.*")
.Pipe(new PvcCloudFront(
accessKey: keys.accessKey,
secretKey: keys.secretKey,
bucketName: "pvcbuild-com",
distributionId: "E13RNZ6AJTCYUR"
));
});
| #load ../amazon.csx
pvc.Task("push", () => {
pvc.Source("src/**/*.*")
.Pipe((streams) => {
// strip src folder from paths
var currentDirectory = Directory.GetCurrentDirectory();
var resultStreams = new List<PvcStream>();
foreach (var stream in streams) {
var fullPath = Path.GetFullPath(stream.StreamNam... | Remove src folder from paths before pushing | Remove src folder from paths before pushing
| C# | mit | pvcbuild/pvcbuild.com,pvcbuild/pvcbuild.com |
7bce71b8f109c3daa09604931468f362787d8c4e | src/NLogging/Handler.cs | src/NLogging/Handler.cs | namespace NLogging
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public abstract class Handler : IHandler
{
private IFormatter formatter;
private LogLevel logLevel;
protected Handler()
... | namespace NLogging
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public abstract class Handler : IHandler
{
private IFormatter formatter;
protected Handler()
{
this.formatter = new ... | Remove set log level from base handler class. | Remove set log level from base handler class.
| C# | mit | eternnoir/NLogging |
50a5e0944e56fe194114ccaa97587c99083d1bd2 | src/Booma.Proxy.Client.Unity.Ship/Handlers/Command/6D/Default6DCommandHandler.cs | src/Booma.Proxy.Client.Unity.Ship/Handlers/Command/6D/Default6DCommandHandler.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common.Logging;
using GladNet;
namespace Booma.Proxy
{
[SceneTypeCreate(GameSceneType.Pioneer2)]
public sealed class Default6DCommandHandler : Command6DHandler<UnknownSubCommand6DCommand>
{
p... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common.Logging;
using GladNet;
namespace Booma.Proxy
{
[SceneTypeCreate(GameSceneType.Pioneer2)]
public sealed class Default6DCommandHandler : Command6DHandler<UnknownSubCommand6DCommand>
{
p... | Fix fault in temp impl of 6D handling | Fix fault in temp impl of 6D handling
| C# | agpl-3.0 | HelloKitty/Booma.Proxy |
30a39d0fdbf8f5d643063299f101c7364fad44db | src/ReverseMarkdown/Converters/Ol.cs | src/ReverseMarkdown/Converters/Ol.cs |
using System;
using HtmlAgilityPack;
namespace ReverseMarkdown.Converters
{
public class Ol
: ConverterBase
{
public Ol(Converter converter)
: base(converter)
{
this.Converter.Register("ol", this);
this.Converter.Register("ul", this);
}
public override string Convert(HtmlNode node)
{
retu... |
using System;
using HtmlAgilityPack;
namespace ReverseMarkdown.Converters
{
public class Ol
: ConverterBase
{
public Ol(Converter converter)
: base(converter)
{
this.Converter.Register("ol", this);
this.Converter.Register("ul", this);
}
public override string Convert(HtmlNode node)
{
retu... | Add NewLine at the end of the list | Add NewLine at the end of the list
| C# | mit | mysticmind/reversemarkdown-net |
9912c0d979ed471915ce82fb967723997e5dc223 | Source/Lib/TraktApiSharp/Objects/Get/Shows/Episodes/TraktEpisodeIds.cs | Source/Lib/TraktApiSharp/Objects/Get/Shows/Episodes/TraktEpisodeIds.cs | namespace TraktApiSharp.Objects.Get.Shows.Episodes
{
using Basic;
/// <summary>A collection of ids for various web services, including the Trakt id, for a Trakt episode.</summary>
public class TraktEpisodeIds : TraktIds
{
}
}
| namespace TraktApiSharp.Objects.Get.Shows.Episodes
{
using Attributes;
using Newtonsoft.Json;
/// <summary>A collection of ids for various web services, including the Trakt id, for a Trakt episode.</summary>
public class TraktEpisodeIds
{
/// <summary>Gets or sets the Trakt numeric id.</su... | Remove slug from episode ids. | Remove slug from episode ids.
| C# | mit | henrikfroehling/TraktApiSharp |
03a0a627946f3b07f90d747e6512cd19c0cd2cd8 | Source/NSubstitute.Acceptance.Specs/MatchingDerivedTypesForGenerics.cs | Source/NSubstitute.Acceptance.Specs/MatchingDerivedTypesForGenerics.cs | using NUnit.Framework;
namespace NSubstitute.Acceptance.Specs
{
[TestFixture]
public class MatchingDerivedTypesForGenerics
{
IGenMethod _sub;
[SetUp]
public void Setup()
{
_sub = Substitute.For<IGenMethod>();
}
[Test]
public void Calls_to_generic_types_with_derived_parameters_should_be_matched (... | using NUnit.Framework;
namespace NSubstitute.Acceptance.Specs
{
[TestFixture]
public class MatchingDerivedTypesForGenerics
{
IGenMethod _sub;
[SetUp]
public void Setup()
{
_sub = Substitute.For<IGenMethod>();
}
[Test]
public void Calls_to_generic_types_with_derived_parameters_should_be_matched (... | Test demonstrating an edge case of generic interfaces | Test demonstrating an edge case of generic interfaces
| C# | bsd-3-clause | mrinaldi/NSubstitute,huoxudong125/NSubstitute,mrinaldi/NSubstitute,dnm240/NSubstitute,mrinaldi/NSubstitute,jbialobr/NSubstitute,jannickj/NSubstitute,jbialobr/NSubstitute,jbialobr/NSubstitute,iamkoch/NSubstitute,mrinaldi/NSubstitute,paulcbetts/NSubstitute,jannickj/NSubstitute,jannickj/NSubstitute,jannickj/NSubstitute,ia... |
57ac9f23d3080dfcc733bae2b507c66a2c4807d5 | Client/Systems/VesselRemoveSys/VesselRemoveMessageSender.cs | Client/Systems/VesselRemoveSys/VesselRemoveMessageSender.cs | using LunaClient.Base;
using LunaClient.Base.Interface;
using LunaClient.Network;
using LunaCommon.Message.Client;
using LunaCommon.Message.Data.Vessel;
using LunaCommon.Message.Interface;
using System;
namespace LunaClient.Systems.VesselRemoveSys
{
public class VesselRemoveMessageSender : SubSystem<VesselRemoveS... | using LunaClient.Base;
using LunaClient.Base.Interface;
using LunaClient.Network;
using LunaCommon.Message.Client;
using LunaCommon.Message.Data.Vessel;
using LunaCommon.Message.Interface;
using System;
namespace LunaClient.Systems.VesselRemoveSys
{
public class VesselRemoveMessageSender : SubSystem<VesselRemoveS... | Fix when reverting a vessel so they are not fully removed from server | Fix when reverting a vessel so they are not fully removed from server
| C# | mit | gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer,DaggerES/LunaMultiPlayer |
c264f506edf9343c658619dd8f6292eea2890ccd | GUI/Types/ParticleRenderer/Emitters/InstantaneousEmitter.cs | GUI/Types/ParticleRenderer/Emitters/InstantaneousEmitter.cs | using System;
using ValveResourceFormat.Serialization;
namespace GUI.Types.ParticleRenderer.Emitters
{
public class InstantaneousEmitter : IParticleEmitter
{
public bool IsFinished { get; private set; }
private readonly IKeyValueCollection baseProperties;
private Action particleEmitCa... | using System;
using ValveResourceFormat.Serialization;
namespace GUI.Types.ParticleRenderer.Emitters
{
public class InstantaneousEmitter : IParticleEmitter
{
public bool IsFinished { get; private set; }
private readonly IKeyValueCollection baseProperties;
private Action particleEmitCa... | Use number provider for m_flStartTime | Use number provider for m_flStartTime
| C# | mit | SteamDatabase/ValveResourceFormat |
b97d4ca5a10855174dd0699a88ee107869431780 | LanguageServer/GrammarDescriptionFactory.cs | LanguageServer/GrammarDescriptionFactory.cs | namespace LanguageServer
{
//using Options;
using System;
using System.Collections.Generic;
using System.Reflection;
public class ManualAssemblyResolver : IDisposable
{
private readonly List<Assembly> _assemblies;
public ManualAssemblyResolver()
{
AppDomai... | namespace LanguageServer
{
//using Options;
using System;
using System.Collections.Generic;
using System.Reflection;
public class GrammarDescriptionFactory
{
private static readonly IGrammarDescription _antlr = new AntlrGrammarDescription();
public static List<string> AllLangua... | Clean up---cannot utilize dynamic loading of dll in VS. | Clean up---cannot utilize dynamic loading of dll in VS.
| C# | mit | kaby76/AntlrVSIX,kaby76/AntlrVSIX,kaby76/AntlrVSIX,kaby76/AntlrVSIX,kaby76/AntlrVSIX |
7013d4e2114e620431b6a9258ca5b749a44776b9 | Weave/Program.cs | Weave/Program.cs | // -----------------------------------------------------------------------
// <copyright file="Program.cs" company="(none)">
// Copyright © 2013 John Gietzen. All Rights Reserved.
// This source is subject to the MIT license.
// Please see license.txt for more information.
// </copyright>
// -------------------... | // -----------------------------------------------------------------------
// <copyright file="Program.cs" company="(none)">
// Copyright © 2013 John Gietzen. All Rights Reserved.
// This source is subject to the MIT license.
// Please see license.txt for more information.
// </copyright>
// -------------------... | Set up the basic program structure. | Set up the basic program structure.
| C# | mit | otac0n/Weave |
591aee99ac6b9ff6f1f2a25bc70e7478190051d8 | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("NDeproxy")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: As... | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("NDeproxy")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: As... | Add year to copyright attribute. | Add year to copyright attribute.
| C# | mit | izrik/NDeproxy |
27f0222c34b8fac9282de32148cbfbd26b9dc4a9 | src/ServerTelemetryChannel/Managed/Shared/Implementation/SamplingScoreGenerator.cs | src/ServerTelemetryChannel/Managed/Shared/Implementation/SamplingScoreGenerator.cs | namespace Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.Implementation
{
using System;
using Microsoft.ApplicationInsights.Channel;
/// <summary>
/// Utility class for sampling score generation.
/// </summary>
internal static class SamplingScoreGenerator
{
/// <summ... | namespace Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.Implementation
{
using System;
using Microsoft.ApplicationInsights.Channel;
/// <summary>
/// Utility class for sampling score generation.
/// </summary>
internal static class SamplingScoreGenerator
{
/// <summ... | Fix null check to use string.IsNullOrEmpty. Even though unlikely, if a string.empty is passed as input it will result in an infinite loop. | Fix null check to use string.IsNullOrEmpty. Even though unlikely, if a string.empty is passed as input it will result in an infinite loop.
| C# | mit | Microsoft/ApplicationInsights-dotnet,pharring/ApplicationInsights-dotnet,pharring/ApplicationInsights-dotnet,pharring/ApplicationInsights-dotnet |
6a003f9d4bdc649c2a995d9a553270f0db342d31 | src/AppHarbor/AppHarborInstaller.cs | src/AppHarbor/AppHarborInstaller.cs | using System;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using Castle.MicroKernel.Resolvers.SpecializedResolvers;
namespace AppHarbor
{
public class AppHarborInstaller : IWindsorInstaller
{
public void Install(IWindsorContainer container, IConfi... | using System;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using Castle.MicroKernel.Resolvers.SpecializedResolvers;
namespace AppHarbor
{
public class AppHarborInstaller : IWindsorInstaller
{
public void Install(IWindsorContainer container, IConfi... | Use AccessTokenConfiguration to register AuthInfo | Use AccessTokenConfiguration to register AuthInfo
| C# | mit | appharbor/appharbor-cli |
d77c8113ca2ed022aa6634436fd21264c020174c | Source/EverlastingStudent/EverlastingStudent.Models/Difficulty.cs | Source/EverlastingStudent/EverlastingStudent.Models/Difficulty.cs | namespace EverlastingStudent.Models
{
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using EverlastingStudent.Common;
public class Difficulty
{
private ICollection<Homework> homeworks;
private ICollection<FreelanceProject> freelanceProjects;
... | namespace EverlastingStudent.Models
{
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using EverlastingStudent.Common.Models;
public class Difficulty
{
private ICollection<Homework> homeworks;
private ICollection<FreelanceProject> freelanceProjects;
... | Fix path to enum namespace | Fix path to enum namespace
| C# | mit | EverlastingStudent/EverlastingStudent,EverlastingStudent/EverlastingStudent,EverlastingStudent/EverlastingStudent |
923419680e598a2279b0807487eb351a62d0b958 | src/System.Net.WebSockets.Client/src/System/Net/WebSockets/WebSocketHandle.WinRT.cs | src/System.Net.WebSockets.Client/src/System/Net/WebSockets/WebSocketHandle.WinRT.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.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics;
using System.Net;
using Sy... | // 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.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics;
using System.Net;
using Sy... | Fix broken build of System.Net.WebSockets.Client.NETNative.csproj due to missing types. | Fix broken build of System.Net.WebSockets.Client.NETNative.csproj due to missing types.
Comment out code for now so that build will work.
[tfs-changeset: 1539097]
| C# | mit | iamjasonp/corefx,dhoehna/corefx,Priya91/corefx-1,benjamin-bader/corefx,ellismg/corefx,690486439/corefx,nchikanov/corefx,SGuyGe/corefx,seanshpark/corefx,jcme/corefx,iamjasonp/corefx,dotnet-bot/corefx,DnlHarvey/corefx,weltkante/corefx,kkurni/corefx,shimingsg/corefx,wtgodbe/corefx,twsouthwick/corefx,shahid-pk/corefx,Peter... |
918088b7b2b46b6308bb471e7265b3331750a2c8 | src/Abp.AspNetCore/AspNetCore/Mvc/Auditing/HttpContextClientInfoProvider.cs | src/Abp.AspNetCore/AspNetCore/Mvc/Auditing/HttpContextClientInfoProvider.cs | using System;
using Abp.Auditing;
using Castle.Core.Logging;
using Microsoft.AspNetCore.Http;
using Abp.Extensions;
namespace Abp.AspNetCore.Mvc.Auditing
{
public class HttpContextClientInfoProvider : IClientInfoProvider
{
public string BrowserInfo => GetBrowserInfo();
public string ClientIpA... | using System;
using Abp.Auditing;
using Castle.Core.Logging;
using Microsoft.AspNetCore.Http;
using Abp.Extensions;
namespace Abp.AspNetCore.Mvc.Auditing
{
public class HttpContextClientInfoProvider : IClientInfoProvider
{
public string BrowserInfo => GetBrowserInfo();
public string ClientIpA... | Remove read ip from header | Remove read ip from header
| C# | mit | ilyhacker/aspnetboilerplate,ryancyq/aspnetboilerplate,ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,luchaoshuai/aspnetboilerplate,ilyhacker/aspnetboilerplate,carldai0106/aspnetboilerplate,carldai0106/aspnetboilerplate,ryancyq/aspnetboilerplate,verdentk/aspnetboilerplate,ryancyq/aspnetboilerplate,aspnetb... |
c864cbc6a5fb5b10a30d9bad228e7162aa52f7ec | Source/Lib/TraktApiSharp/Requests/Base/TraktPaginationOptions.cs | Source/Lib/TraktApiSharp/Requests/Base/TraktPaginationOptions.cs | namespace TraktApiSharp.Requests
{
internal struct TraktPaginationOptions
{
internal TraktPaginationOptions(int? page, int? limit)
{
Page = page;
Limit = limit;
}
internal int? Page { get; set; }
internal int? Limit { get; set; }
}
}
| namespace TraktApiSharp.Requests
{
internal struct TraktPaginationOptions
{
internal TraktPaginationOptions(int? page, int? limit)
{
Page = page;
Limit = limit;
}
internal int? Page { get; }
internal int? Limit { get; }
}
}
| Remove unused setters of pagination properties. | Remove unused setters of pagination properties.
| C# | mit | henrikfroehling/TraktApiSharp |
8a5ad4868ee23842333d09a356bdbeeed56e3981 | Tests/Boxed.Templates.Test/Framework/CancellationTokenFactory.cs | Tests/Boxed.Templates.Test/Framework/CancellationTokenFactory.cs | namespace Boxed.Templates.Test
{
using System;
using System.Threading;
public static class CancellationTokenFactory
{
public static CancellationToken GetCancellationToken(TimeSpan? timeout) =>
GetCancellationToken(timeout ?? TimeSpan.FromSeconds(20));
public static Cancella... | namespace Boxed.Templates.Test
{
using System;
using System.Threading;
public static class CancellationTokenFactory
{
public static CancellationToken GetCancellationToken(TimeSpan? timeout) =>
GetCancellationToken(timeout ?? TimeSpan.FromSeconds(30));
public static Cancella... | Increase default timeout to 30 secs | Increase default timeout to 30 secs
| C# | mit | ASP-NET-Core-Boilerplate/Templates,ASP-NET-Core-Boilerplate/Templates,ASP-NET-MVC-Boilerplate/Templates,RehanSaeed/ASP.NET-MVC-Boilerplate,RehanSaeed/ASP.NET-MVC-Boilerplate,ASP-NET-Core-Boilerplate/Templates,RehanSaeed/ASP.NET-MVC-Boilerplate,ASP-NET-MVC-Boilerplate/Templates |
720614c1181b97e8695337ebc9921ec0f97dd28d | CenturyLinkCloudSDK.Integration.Tests/Credentials.cs | CenturyLinkCloudSDK.Integration.Tests/Credentials.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CenturyLinkCloudSDK.IntegrationTests
{
public static class Credentials
{
public static string Username = "";
public static string Password = "";
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CenturyLinkCloudSDK.IntegrationTests
{
public static class Credentials
{
public static string Username = "";
public static string Password = "";
public static s... | Add stub object storage credentials | Add stub object storage credentials | C# | apache-2.0 | CenturyLinkCloud/clc-net-sdk,CenturyLinkCloud/clc-net-sdk |
f0a79add143d1c97938d0bb2b16a9f3e0e51bccb | Core/Notification/Example/FormNotificationExample.cs | Core/Notification/Example/FormNotificationExample.cs | using System.Windows.Forms;
using TweetDuck.Plugins;
using TweetDuck.Resources;
namespace TweetDuck.Core.Notification.Example{
sealed class FormNotificationExample : FormNotificationMain{
public override bool RequiresResize => true;
protected override bool CanDragWindow => Program.UserConfig.Notif... | using System.Windows.Forms;
using TweetDuck.Core.Controls;
using TweetDuck.Plugins;
using TweetDuck.Resources;
namespace TweetDuck.Core.Notification.Example{
sealed class FormNotificationExample : FormNotificationMain{
public override bool RequiresResize => true;
protected override bool CanDragWin... | Fix broken example notification after closing it and then changing options | Fix broken example notification after closing it and then changing options
| C# | mit | chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck |
8aebeb6d86a6df3e5dff800d848b6ec31b4053ea | GreenMemory/PlayerView.xaml.cs | GreenMemory/PlayerView.xaml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Med... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Med... | Change to use higher res score image | Change to use higher res score image
| C# | mit | nissafors/GreenMemory |
7d94498c5dc22b7008a1461630bbc689eed29d51 | src/Features/CSharp/Portable/Completion/KeywordRecommenders/ParamsKeywordRecommender.cs | src/Features/CSharp/Portable/Completion/KeywordRecommenders/ParamsKeywordRecommender.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.Threading;
using Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery;
namespace Microsoft.CodeAnaly... | // 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.Threading;
using Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery;
namespace Microsoft.CodeAnaly... | Allow `params` completion in lambdas | Allow `params` completion in lambdas
| C# | mit | CyrusNajmabadi/roslyn,dotnet/roslyn,mavasani/roslyn,mavasani/roslyn,dotnet/roslyn,mavasani/roslyn,CyrusNajmabadi/roslyn,dotnet/roslyn,CyrusNajmabadi/roslyn |
f05392e17aa371748a333658867504362cec3aef | Src/SwqlStudio/QueryParameters.cs | Src/SwqlStudio/QueryParameters.cs | using System.ComponentModel;
using System.Linq;
using System.Windows.Forms;
using SolarWinds.InformationService.Contract2;
namespace SwqlStudio
{
public partial class QueryParameters : Form
{
public QueryParameters(PropertyBag queryParameters)
{
InitializeComponent();
P... | using System.ComponentModel;
using System.Linq;
using System.Windows.Forms;
using SolarWinds.InformationService.Contract2;
namespace SwqlStudio
{
public partial class QueryParameters : Form
{
public QueryParameters(PropertyBag queryParameters)
{
InitializeComponent();
P... | Fix crash when editing query parameters and one has a null value | Fix crash when editing query parameters and one has a null value
| C# | apache-2.0 | solarwinds/OrionSDK |
7c7b97a6215e028fad48cd8aa087823461f40a8f | source/Calamari/Integration/Processes/VariableDictionaryExtensions.cs | source/Calamari/Integration/Processes/VariableDictionaryExtensions.cs | using System;
using Octostache;
namespace Calamari.Integration.Processes
{
public static class VariableDictionaryExtensions
{
public static void EnrichWithEnvironmentVariables(this VariableDictionary variables)
{
var environmentVariables = Environment.GetEnvironmentVariables();
... | using System;
using Calamari.Deployment;
using Octostache;
namespace Calamari.Integration.Processes
{
public static class VariableDictionaryExtensions
{
public static void EnrichWithEnvironmentVariables(this VariableDictionary variables)
{
var environmentVariables = Environment.GetE... | Set Tentacle Instance Name variable | Set Tentacle Instance Name variable
| C# | apache-2.0 | merbla/Calamari,NoesisLabs/Calamari,NoesisLabs/Calamari,allansson/Calamari,allansson/Calamari,merbla/Calamari |
54a01475c4a7c151e658d85b8dd7ac4318bebd3c | src/JenkinsTitleUpdater/Program.cs | src/JenkinsTitleUpdater/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HtmlAgilityPack;
namespace JenkinsTitleUpdater
{
class Program
{
static int Main(string[] args)
{
if (args.Length == 0)
{
Usage();
return -1;
}
HtmlDocu... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HtmlAgilityPack;
namespace JenkinsTitleUpdater
{
class Program
{
static int Main(string[] args)
{
if (args.Length == 0)
{
Usage();
return -1;
}
HtmlDocu... | Update help with correct name | Update help with correct name
| C# | mit | wbsimms/JenkinsTitleUpdater |
15c88ba1f00c5b6ffdc25c3b29d99e536724421d | CefSharp/NavStateChangedEventArgs.cs | CefSharp/NavStateChangedEventArgs.cs | using System;
namespace CefSharp
{
/// <summary>
/// Event arguments to the LoadCompleted event handler set up in IWebBrowser.
/// </summary>
public class NavStateChangedEventArgs : EventArgs
{
public bool CanGoForward { get; private set; }
public bool CanGoBack { get; private set;... | using System;
namespace CefSharp
{
/// <summary>
/// Event arguments to the NavStateChanged event handler set up in IWebBrowser.
/// </summary>
public class NavStateChangedEventArgs : EventArgs
{
public bool CanGoForward { get; private set; }
public bool CanGoBack { get; private se... | Fix error in comment (should have been NavStateChanged) | Fix error in comment (should have been NavStateChanged)
| C# | bsd-3-clause | windygu/CefSharp,twxstar/CefSharp,haozhouxu/CefSharp,joshvera/CefSharp,Livit/CefSharp,dga711/CefSharp,windygu/CefSharp,haozhouxu/CefSharp,ITGlobal/CefSharp,twxstar/CefSharp,wangzheng888520/CefSharp,illfang/CefSharp,zhangjingpu/CefSharp,VioletLife/CefSharp,haozhouxu/CefSharp,jamespearce2006/CefSharp,ITGlobal/CefSharp,rl... |
0b12c5f1a0ac5f48ca2cee1cd546e93c7799c378 | Badger/Views/MainView.xaml.cs | Badger/Views/MainView.xaml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | Add function for configuring settings | Add function for configuring settings
| C# | mit | lucasbrendel/Badger |
99bdddfffbb5e1f481655406f647de1c84c04563 | src/TypeScriptBinding/Properties/AddinInfo.cs | src/TypeScriptBinding/Properties/AddinInfo.cs |
using System;
using Mono.Addins;
using Mono.Addins.Description;
[assembly:Addin ("TypeScript",
Namespace = "MonoDevelop",
Version = "0.4",
Category = "Web Development")]
[assembly:AddinName ("TypeScript")]
[assembly:AddinDescription ("Adds TypeScript support. Updated to use TypeScript 1.4")]
[assembly:AddinDepe... |
using System;
using Mono.Addins;
using Mono.Addins.Description;
[assembly:Addin ("TypeScript",
Namespace = "MonoDevelop",
Version = "0.5",
Category = "Web Development")]
[assembly:AddinName ("TypeScript")]
[assembly:AddinDescription ("Adds TypeScript support. Updated to use TypeScript 1.4")]
[assembly:AddinDepe... | Update addin version to 0.5 | Update addin version to 0.5
| C# | mit | mrward/typescript-addin,mrward/typescript-addin |
2fecfbe7c832e2285e6b6c9b0bcf9250e78f62e8 | Assets/_Scripts/CustomSimplePlayer.cs | Assets/_Scripts/CustomSimplePlayer.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CustomSimplePlayer : MonoBehaviour {
public int speed = 10;
Rigidbody rigidbody;
Vector3 velocity;
// Use this for initialization
void Start () {
rigidbody = GetComponent<Rigidbody>();
}
// Updat... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CustomSimplePlayer : MonoBehaviour {
public float speed = 10.0f;
Rigidbody rigidbody;
Vector3 velocity;
// Use this for initialization
void Start () {
Cursor.lockState = CursorLockMode.Locked;
... | Add code to allow first-person character to control more like a traditional FPS. | Add code to allow first-person character to control more like a traditional FPS.
| C# | mit | BerniceChua/Unity-Procedural-Cave-Generation-Tutorial |
bca630a1f4135a3350333e12ad873e64c7019e07 | Assets/Scripts/HarryPotterUnity/Cards/Spells/Charms/EndlessSandwiches.cs | Assets/Scripts/HarryPotterUnity/Cards/Spells/Charms/EndlessSandwiches.cs | using System.Collections.Generic;
using HarryPotterUnity.Cards.Generic;
using JetBrains.Annotations;
namespace HarryPotterUnity.Cards.Spells.Charms
{
[UsedImplicitly]
public class EndlessSandwiches : GenericSpell {
protected override void SpellAction(List<GenericCard> targets)
{
wh... | using System.Collections.Generic;
using HarryPotterUnity.Cards.Generic;
using JetBrains.Annotations;
namespace HarryPotterUnity.Cards.Spells.Charms
{
[UsedImplicitly]
public class EndlessSandwiches : GenericSpell {
protected override void SpellAction(List<GenericCard> targets)
{
in... | Fix an animation bug with Endless Sandwiches | Fix an animation bug with Endless Sandwiches
| C# | mit | StefanoFiumara/Harry-Potter-Unity |
bd3c7808f5491b01351b1d0b6a0db4495d14c280 | tests/cs/properties/Properties.cs | tests/cs/properties/Properties.cs | using System;
public struct Vector2
{
public Vector2(double X, double Y)
{
this.x = X;
this.Y = Y;
}
private double x;
public double X { get { return x; } private set { x = value; } }
public double Y { get; private set; }
public double this[int i]
{
get { retur... | using System;
public struct Vector2
{
public Vector2(double X, double Y)
{
this.x = X;
this.Y = Y;
}
private double x;
public double X { get { return x; } private set { x = value; } }
public double Y { get; private set; }
public double this[int i]
{
get { retur... | Update the properties test with new-style accessor syntax | Update the properties test with new-style accessor syntax
| C# | mit | jonathanvdc/ecsc |
eaf0fdaabc41860efd1f4af84a57f84c3ee9338a | Mvc/ModelStateDictionaryExtensions.cs | Mvc/ModelStateDictionaryExtensions.cs | namespace Mios.Validation.Mvc {
using System.Collections.Generic;
using System.Web.Mvc;
public static class ModelStateDictionaryExtensions {
public static void AddErrors(this ModelStateDictionary modelState, IEnumerable<ValidationError> errors) {
foreach(var error in errors) {
modelState.AddModelEr... | namespace Mios.Validation.Mvc {
using System.Collections.Generic;
using System.Web.Mvc;
public static class ModelStateDictionaryExtensions {
public static void AddErrors(this ModelStateDictionary modelState, IEnumerable<ValidationError> errors) {
foreach(var error in errors) {
modelState.AddModelEr... | Fix inverted result from Into(ModelState) | Fix inverted result from Into(ModelState)
| C# | bsd-2-clause | mios-fi/mios.validation |
d13b67f5c970bd951bd7780e0c6dc6ea3baeae1e | test/Pather.CSharp.UnitTests/ResolverTests.cs | test/Pather.CSharp.UnitTests/ResolverTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace Pather.CSharp.UnitTests
{
// This project can output the Class library as a NuGet Package.
// To enable this option, right-click on the project and select the Properties menu item. In the Bu... | using FluentAssertions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace Pather.CSharp.UnitTests
{
// This project can output the Class library as a NuGet Package.
// To enable this option, right-click on the project and select the Propert... | Add unit tests for simple single and multiple property resolution | Add unit tests for simple single and multiple property resolution
| C# | mit | Domysee/Pather.CSharp |
b293e0bda10bda4c5e8b8cd8e45d3f79f99694fe | src/Gelf4Net/TypeForwarders.cs | src/Gelf4Net/TypeForwarders.cs | using System.Runtime.CompilerServices;
[assembly:TypeForwardedTo(typeof(Gelf4Net.Layout.GelfLayout))]
[assembly:TypeForwardedTo(typeof(Gelf4Net.Appender.GelfHttpAppender))]
[assembly:TypeForwardedTo(typeof(Gelf4Net.Appender.GelfUdpAppender))]
[assembly:TypeForwardedTo(typeof(Gelf4Net.Appender.AsyncGelfUdpAppender))]
[... | using System.Runtime.CompilerServices;
[assembly:TypeForwardedTo(typeof(Gelf4Net.Layout.GelfLayout))]
[assembly:TypeForwardedTo(typeof(Gelf4Net.Appender.GelfHttpAppender))]
[assembly:TypeForwardedTo(typeof(Gelf4Net.Appender.AsyncGelfHttpAppender))]
[assembly:TypeForwardedTo(typeof(Gelf4Net.Appender.GelfUdpAppender))]
... | Add Type Forwarder for New Appender | Add Type Forwarder for New Appender
This makes the new appender consistent with the other async ones.
| C# | mit | jjchiw/gelf4net,jjchiw/gelf4net |
abdd37ca73cdf7d81567f59f1e543d7964c8b472 | src/Logging/IErrorReporting.cs | src/Logging/IErrorReporting.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Substructio.Logging
{
public interface IErrorReporting
{
void ReportError(Exception e);
void ReportMessage(string message);
}
public class NullErrorReporting :... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Substructio.Logging
{
public interface IErrorReporting
{
string ReportError(Exception e);
string ReportMessage(string message);
}
public class NullErrorReporti... | Return even information in string for error reporting | Return even information in string for error reporting
| C# | mit | opcon/Substructio,opcon/Substructio |
22ffe1496abcf9a76a8c82c20707fe994f1f7bc9 | R7.University.EduProgramProfiles/Views/Contingent/_ActualRow.cshtml | R7.University.EduProgramProfiles/Views/Contingent/_ActualRow.cshtml | @inherits DotNetNuke.Web.Mvc.Framework.DnnWebViewPage<ContingentViewModel>
@using DotNetNuke.Web.Mvc.Helpers
@using R7.University.EduProgramProfiles.ViewModels
<td itemprop="eduCode">@Model.EduProgramProfile.EduProgram.Code</td>
<td itemprop="eduName">@Model.EduProgramProfileTitle</td>
<td itemprop="eduLevel">@... | @inherits DotNetNuke.Web.Mvc.Framework.DnnWebViewPage<ContingentViewModel>
@using DotNetNuke.Web.Mvc.Helpers
@using R7.University.EduProgramProfiles.ViewModels
<td itemprop="eduCode">@Model.EduProgramProfile.EduProgram.Code</td>
<td itemprop="eduName">@Model.EduProgramProfileTitle</td>
<td itemprop="eduLevel">@... | Fix actual contingent table structure | Fix actual contingent table structure
| C# | agpl-3.0 | roman-yagodin/R7.University,roman-yagodin/R7.University,roman-yagodin/R7.University |
b4829b41402321a0a6f0f3c02766a5b25ebd09a1 | test/clang-tidy/hicpp-exception-baseclass.cpp | test/clang-tidy/hicpp-exception-baseclass.cpp | // RUN: %check_clang_tidy %s hicpp-exception-baseclass %t
namespace std {
class exception {};
} // namespace std
class derived_exception : public std::exception {};
class non_derived_exception {};
void problematic() {
try {
throw int(42); // Built in is not allowed
// CHECK-MESSAGES: [[@LINE-1]]:5: warning: th... | // RUN: %check_clang_tidy %s hicpp-exception-baseclass %t -- -- -fcxx-exceptions
namespace std {
class exception {};
} // namespace std
class derived_exception : public std::exception {};
class non_derived_exception {};
void problematic() {
try {
throw int(42); // Built in is not allowed
// CHECK-MESSAGES: [[@... | Enable exceptions for this test case to speculatively fix the build bots. | Enable exceptions for this test case to speculatively fix the build bots.
Hopefully corrects: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/15666
git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@310732 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra |
c91029f2fd832db64d88ce996a42ac52616ec07d | src/utils/mapped_file.cpp | src/utils/mapped_file.cpp | #include "mapped_file.h"
#include <exception/os.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
namespace sasm { namespace utils {
mapped_file::~mapped_file()
{
if (_is_mapped)
unmap();
}
void mapped_file::map()
{
int fd;
struct stat buf;
char* begin;
if ((fd = open(get_path(), O... | #include "mapped_file.h"
#include <exception/elf.h>
#include <exception/os.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
namespace sasm { namespace utils {
mapped_file::~mapped_file()
{
if (_is_mapped)
unmap();
}
void mapped_file::map()
{
int fd;
struct stat buf;
char* begin;
i... | Handle a little bug with empty files. | Handle a little bug with empty files.
When giving a length of 0 to mmap(2) we get an EINVAL so the exception
thrown was not accurate.
| C++ | bsd-2-clause | sas/sasm,sas/sasm |
ab62ea73a165617a21b894c5dafe18da5211fba2 | doc/snippets/DenseBase_setLinSpaced.cpp | doc/snippets/DenseBase_setLinSpaced.cpp | VectorXf v;
v.setLinSpaced(5,0.5f,1.5f).transpose();
cout << v << endl;
| VectorXf v;
v.setLinSpaced(5,0.5f,1.5f);
cout << v << endl;
| Remove confusing transpose() in setLinSpaced() docs. | Remove confusing transpose() in setLinSpaced() docs.
| C++ | bsd-3-clause | robustrobotics/eigen,robustrobotics/eigen,robustrobotics/eigen,robustrobotics/eigen |
2a895e80879c69fc230b0e3c98cbb330ce8e3775 | test/std/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/lock.pass.cpp | test/std/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/lock.pass.cpp | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | Mark another test as flaky | Mark another test as flaky
Reported on the NetBSD 8 buildbot.
git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@352064 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx |
7676b8dd1e0ac0193b42fdf92df56480cfeb7e23 | test/core.cpp | test/core.cpp |
#include <cppunit/XmlOutputter.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h>
#include <cppunit/TestResult.h>
#include <cppunit/TestResultCollector.h>
#include "SystemTest.h"
int main(int argc, char* argv[])
{
CppUnit::TestResult controller;
CppUnit::TestResult... |
#include <cppunit/XmlOutputter.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h>
#include <cppunit/TestResult.h>
#include <cppunit/TestResultCollector.h>
#include "SystemTest.h"
int main(int argc, char* argv[])
{
CppUnit::TestResult controller;
CppUnit::TestResult... | Send correct exit code on test failure. | Send correct exit code on test failure.
| C++ | mit | marblar/demon,marblar/demon,marblar/demon,marblar/demon |
b0a25e347ed85fd1d8ad60be268e9b0b7f4b9b03 | lib/imul.tas.cpp | lib/imul.tas.cpp | #include "common.th"
// c <- multiplicand
// d <- multiplier
// b -> product
.global imul
imul:
pushall(h,i,j)
b <- 0
#if IMUL_EARLY_EXITS
i <- d == 0
i <- c == 0 + i
i <- i <> 0
jnzrel(i, L_done)
#endif
h <- 1
j <- d >> 31 // save sign bit in j
j <- -j // convert sign... | #include "common.th"
// c <- multiplicand
// d <- multiplier
// b -> product
.global imul
imul:
#if IMUL_EARLY_EXITS
b <- c == 0
d <- d &~ b // d = (c == 0) ? 0 : d
b <- d <> 0
jzrel(b, L_done)
#endif
pushall(h,i,j)
b <- 0
h <- 1
j <- d >> 31 // save sign bit in j
j <- -j ... | Make early exits, when active, more efficient | Make early exits, when active, more efficient
| C++ | mit | kulp/tenyr,kulp/tenyr,kulp/tenyr |
fa1ffb84f105f603dd736dec81797fe16a26428c | cpp/lib/src/SysLog.cc | cpp/lib/src/SysLog.cc | /** \file SysLog.h
* \brief Declaration of class SysLog.
* \author Dr. Johannes Ruscheinski
*/
/*
* Copyright 2020 University Library of Tübingen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by ... | /** \file SysLog.h
* \brief Declaration of class SysLog.
* \author Dr. Johannes Ruscheinski
*/
/*
* Copyright 2020 University Library of Tübingen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by ... | Use progran name as default log entry prefix. | Use progran name as default log entry prefix.
| C++ | agpl-3.0 | ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools |
2f997d72a3a3039e0b2c4d41cdd01f68ca36a7b6 | doc/snippets/MatrixBase_eval.cpp | doc/snippets/MatrixBase_eval.cpp | Matrix2f M = Matrix2f::Random();
Matrix2f m;
m = M;
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Now we want to replace m by its own transpose." << endl;
cout << "If we do m = m.transpose(), then m becomes:" << endl;
m = m.transpose() * 1;
cout << m << endl << "which is wrong!" << endl;
cout << "Now l... | Matrix2f M = Matrix2f::Random();
Matrix2f m;
m = M;
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Now we want to copy a column into a row." << endl;
cout << "If we do m.col(1) = m.row(0), then m becomes:" << endl;
m.col(1) = m.row(0);
cout << m << endl << "which is wrong!" << endl;
cout << "Now let us ... | Make snippet run successfully again: the snippet for 'eval' was taking m=m.transpose() as an example of code that needs an explicit call to eval(), but that doesn't work anymore now that we have the clever assert detecting aliasing issues. | Make snippet run successfully again:
the snippet for 'eval' was taking m=m.transpose() as an example of code
that needs an explicit call to eval(), but that doesn't work anymore now
that we have the clever assert detecting aliasing issues.
| C++ | bsd-3-clause | mjbshaw/Eigen,rotorliu/eigen,rotorliu/eigen,rotorliu/eigen,rotorliu/eigen,mjbshaw/Eigen,madlib/eigen_backup,madlib/eigen_backup,mjbshaw/Eigen,madlib/eigen_backup,mjbshaw/Eigen,madlib/eigen_backup |
5fdc466315a2764ea7a242b97c3ced5656bcce97 | src/runtime/android_clock.cpp | src/runtime/android_clock.cpp | #define SYS_CLOCK_GETTIME 263
#include "linux_clock.cpp"
| #ifdef BITS_64
#define SYS_CLOCK_GETTIME 113
#endif
#ifdef BITS_32
#define SYS_CLOCK_GETTIME 263
#endif
#include "linux_clock.cpp"
| Fix a syscall number for 64-bit arm | Fix a syscall number for 64-bit arm
Former-commit-id: 3009473fe53734890768250e4b4ae81a42df9c85 | C++ | mit | darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide |
fa0e59df936e05ee2b01cc1b96ff4aa93baad19d | chrome/browser/idle_linux.cc | chrome/browser/idle_linux.cc | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/idle.h"
#include "base/basictypes.h"
#if defined(USE_X11)
#include "chrome/browser/idle_query_x11.h"
#endif
#if !defined(O... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/idle.h"
#include "base/basictypes.h"
#if defined(USE_X11)
#include "chrome/browser/idle_query_x11.h"
#endif
#if !defined(O... | Check idle state for Ozone platform | chrome: Check idle state for Ozone platform
X11 screen savers are special ones but we hope that most of the Ozone
implementations won't need these special treatment as in here. Therefore just
return false.
BUG=295089
Review URL: https://chromiumcodereview.appspot.com/24114007
git-svn-id: de016e52bd170d2d4f2344f9bf9... | C++ | bsd-3-clause | Chilledheart/chromium,dednal/chromium.src,anirudhSK/chromium,hgl888/chromium-crosswalk,M4sse/chromium.src,bright-sparks/chromium-spacewalk,fujunwei/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,ondra-novak/chromium.src,PeterWangIntel/chromium-crosswalk,ltilve/chromium,mohamed--abdel-maksoud... |
f9dff4e1068eecd0fe31761258fa5b50a303a2d4 | test/asan/TestCases/Windows/queue_user_work_item_report.cc | test/asan/TestCases/Windows/queue_user_work_item_report.cc | // RUN: %clang_cl_asan -O0 %s -Fe%t
// RUN: not %run %t 2>&1 | FileCheck %s
#include <windows.h>
HANDLE done;
DWORD CALLBACK work_item(LPVOID) {
int subscript = -1;
volatile char stack_buffer[42];
stack_buffer[subscript] = 42;
// CHECK: AddressSanitizer: stack-buffer-underflow on address [[ADDR:0x[0-9a-f]+]]
/... | // RUN: %clang_cl_asan -O0 %s -Fe%t
// RUN: not %run %t 2>&1 | FileCheck %s
#include <windows.h>
HANDLE done;
DWORD CALLBACK work_item(LPVOID) {
int subscript = -1;
volatile char stack_buffer[42];
stack_buffer[subscript] = 42;
// CHECK: AddressSanitizer: stack-buffer-underflow on address [[ADDR:0x[0-9a-f]+]]
/... | Remove stale CHECK lines that should have been included in r277478 | Remove stale CHECK lines that should have been included in r277478
We no longer assign ids to unregistered threads. We don't have any stack
trace for thread creation for these worker threads, so this shouldn't
affect report quality much.
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@277514 91177308-0d34-0410-b... | C++ | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.