<commit_before>﻿// 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
namespace DotNetNuke.Build.Tasks
{
    using System;
    using System.Linq;

    using Cake.Common.Tools.MSBuild;
    using Cake.Frosting;

    using DotNetNuke.Build;

    /// <summary>A cake task to compile the platform.</summary>
    [Dependency(typeof(CleanWebsite))]
    [Dependency(typeof(RestoreNuGetPackages))]
    public sealed class Build : FrostingTask<Context>
    {
        /// <inheritdoc/>
        public override void Run(Context context)
        {
            var cleanSettings = new MSBuildSettings().SetConfiguration(context.BuildConfiguration)
                .WithTarget("Clean")
                .EnableBinaryLogger("clean.binlog")
                .SetNoConsoleLogger(context.IsRunningInCI);
            context.MSBuild(context.DnnSolutionPath, cleanSettings);

            var buildSettings = new MSBuildSettings().SetConfiguration(context.BuildConfiguration)
                .SetPlatformTarget(PlatformTarget.MSIL)
                .WithTarget("Rebuild")
                .SetMaxCpuCount(4)
                .WithProperty("SourceLinkCreate", "true")
                .EnableBinaryLogger("rebuild.binlog")
                .SetNoConsoleLogger(context.IsRunningInCI);
            context.MSBuild(context.DnnSolutionPath, buildSettings);
        }<commit_msg>Don't use hardcoded CPU count<commit_after>﻿// 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
namespace DotNetNuke.Build.Tasks
{
    using System;
    using System.Linq;

    using Cake.Common.Tools.MSBuild;
    using Cake.Frosting;

    using DotNetNuke.Build;

    /// <summary>A cake task to compile the platform.</summary>
    [Dependency(typeof(CleanWebsite))]
    [Dependency(typeof(RestoreNuGetPackages))]
    public sealed class Build : FrostingTask<Context>
    {
        /// <inheritdoc/>
        public override void Run(Context context)
        {
            var cleanSettings = new MSBuildSettings().SetConfiguration(context.BuildConfiguration)
                .WithTarget("Clean")
                .SetMaxCpuCount(0)
                .EnableBinaryLogger("clean.binlog")
                .SetNoConsoleLogger(context.IsRunningInCI);
            context.MSBuild(context.DnnSolutionPath, cleanSettings);

            var buildSettings = new MSBuildSettings().SetConfiguration(context.BuildConfiguration)
                .SetPlatformTarget(PlatformTarget.MSIL)
                .WithTarget("Rebuild")
                .SetMaxCpuCount(0)
                .WithProperty("SourceLinkCreate", "true")
                .EnableBinaryLogger("rebuild.binlog")
                .SetNoConsoleLogger(context.IsRunningInCI);
            context.MSBuild(context.DnnSolutionPath, buildSettings);
        }
{'fraction_non_alphanumeric': 0.09093904448105436, 'fraction_numerical': 0.0009884678747940692, 'mean_word_length': 2.5592028135990623, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3700305', 'n_tokens_mistral': 805, 'n_tokens_neox': 754, 'n_words': 181}