<commit_before>﻿// <copyright file="CommandBase.cs" company="<NAME>">
//  Copyright (c) <NAME>. All rights reserved.
// </copyright>

namespace Xbehave.Internal
{
    using System.Globalization;
    using System.Linq;
    using Xunit.Sdk;

    internal abstract class CommandBase : TestCommand
    {
        protected CommandBase(MethodCall call, int? contextOrdinal, int commandOrdinal, string commandName)
            : base(call.Method, commandName, MethodUtility.GetTimeoutParameter(call.Method))
        {
            var provider = CultureInfo.InvariantCulture;
            var tokens = new[]
                {
                    call.ToString(),
                    contextOrdinal.HasValue ? string.Format(provider, "context {0} ", contextOrdinal.Value.ToString("D2", provider)) : null,
                    string.Format(provider, "test {0} ", commandOrdinal.ToString("D2", provider)),
                    commandName,
                };

            this.DisplayName = string.Join(", ", tokens.Where(token => token != null).ToArray());
        }
    }
}<commit_msg>changed command name format to "{call} [{context ordinal}, {test ordinal}] {command name}"<commit_after>﻿// <copyright file="CommandBase.cs" company="<NAME>">
//  Copyright (c) <NAME>. All rights reserved.
// </copyright>

namespace Xbehave.Internal
{
    using System.Globalization;
    using Xunit.Sdk;

    internal abstract class CommandBase : TestCommand
    {
        protected CommandBase(MethodCall call, int? contextOrdinal, int commandOrdinal, string commandName)
            : base(call.Method, commandName, MethodUtility.GetTimeoutParameter(call.Method))
        {
            var provider = CultureInfo.InvariantCulture;
            this.DisplayName = string.Format(
                provider,
                "{0} [{1}{2}] {3}",
                call.ToString(),
                contextOrdinal.HasValue ? string.Format(provider, "context {0}, ", contextOrdinal.Value.ToString("D2", provider)) : null,
                string.Format(provider, "test {0}", commandOrdinal.ToString("D2", provider)),
                commandName);
        }
    }
}
{'fraction_non_alphanumeric': 0.12453007518796992, 'fraction_numerical': 0.005639097744360902, 'mean_word_length': 2.4844517184942716, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, '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': '1776368', 'n_tokens_mistral': 565, 'n_tokens_neox': 551, 'n_words': 129}