<commit_before>// Copyright <NAME>, <NAME> 2018.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE

using System;
using System.Linq;
using Nuke.Core.BuildServers;
using Nuke.Core.Execution;
using Nuke.Core.Utilities;

namespace Nuke.Core
{
    public static partial class EnvironmentInfo
    {
        private static Lazy<HostType> s_hostType = new Lazy<HostType>(() =>
        {
            var hostType = Parameter<HostType?>(nameof(NukeBuild.Host));
            if (hostType.HasValue)
                return hostType.Value;

            if (AppVeyor.IsRunningAppVeyor)
                return HostType.AppVeyor;
            if (Jenkins.IsRunningJenkins)
                return HostType.Jenkins;
            if (TeamCity.IsRunningTeamCity)
                return HostType.TeamCity;
            if (TeamServices.IsRunningTeamServices)
                return HostType.TeamServices;
            if (Bitrise.IsRunningBitrise)
                return HostType.Bitrise;

            return HostType.Console;
        });

        internal static HostType HostType => s_hostType.Value;

        internal static bool IsLocalBuild => HostType == HostType.Console;<commit_msg>Fix EnvironmentInfo.HostType to check for GitLab and Travis.<commit_after>// Copyright <NAME>, <NAME> 2018.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE

using System;
using System.Linq;
using Nuke.Core.BuildServers;
using Nuke.Core.Execution;
using Nuke.Core.Utilities;

namespace Nuke.Core
{
    public static partial class EnvironmentInfo
    {
        private static Lazy<HostType> s_hostType = new Lazy<HostType>(() =>
        {
            var hostType = Parameter<HostType?>(nameof(NukeBuild.Host));
            if (hostType.HasValue)
                return hostType.Value;

            if (AppVeyor.IsRunningAppVeyor)
                return HostType.AppVeyor;
            if (Jenkins.IsRunningJenkins)
                return HostType.Jenkins;
            if (TeamCity.IsRunningTeamCity)
                return HostType.TeamCity;
            if (TeamServices.IsRunningTeamServices)
                return HostType.TeamServices;
            if (Bitrise.IsRunningBitrise)
                return HostType.Bitrise;
            if (GitLab.IsRunningGitLab)
                return HostType.GitLab;
            if (Travis.IsRunningTravis)
                return HostType.Travis;

            return HostType.Console;
        });

        internal static HostType HostType => s_hostType.Value;

        internal static bool IsLocalBuild => HostType == HostType.Console;
{'fraction_non_alphanumeric': 0.08596424496006086, 'fraction_numerical': 0.0030429821224800305, 'mean_word_length': 2.199513381995134, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, 'https://': 2, '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': '1359884', 'n_tokens_mistral': 759, 'n_tokens_neox': 716, 'n_words': 162}