<commit_before>﻿using System;

namespace FlubuCore.Tasks.Versioning
{
    public class BuildVersion
    {
        public Version Version { get; set; }

        public string VersionQuality { get; set; }

        public string BuildVersionWithQuality(int versionFieldCount)
        {
            string quality = null;

            if (!string.IsNullOrEmpty(VersionQuality))
            {
                quality = VersionQuality.StartsWith("-") ? VersionQuality : $"-{VersionQuality}";
            }

            return $"{Version.ToString(versionFieldCount)}{quality}";
        }
    }
}<commit_msg>Version field count parameter is now  optional.<commit_after>﻿using System;

namespace FlubuCore.Tasks.Versioning
{
    public class BuildVersion
    {
        public Version Version { get; set; }

        public string VersionQuality { get; set; }

        public string BuildVersionWithQuality(int? versionFieldCount)
        {
            string quality = null;

            if (!string.IsNullOrEmpty(VersionQuality))
            {
                quality = VersionQuality.StartsWith("-") ? VersionQuality : $"-{VersionQuality}";
            }

            return versionFieldCount.HasValue ? $"{Version.ToString(versionFieldCount.Value)}{quality}" : $"{Version.ToString()}{quality}";
        }
    }
}
{'fraction_non_alphanumeric': 0.10421455938697317, 'fraction_numerical': 0.0, 'mean_word_length': 2.348717948717949, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2132299', 'n_tokens_mistral': 349, 'n_tokens_neox': 329, 'n_words': 72}