<commit_before>#module nuget:?package=Cake.BuildSystems.Module&version=3.0.1
#tool "nuget:?package=OctopusTools&version=7.4.3127"

using System.Text.RegularExpressions;

var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");

var baseVersion = "1.7.3";
var subVersion = "";
var subVersionNumber = "";
var isMasterOrDevelop = false;
var isLocal = BuildSystem.IsLocalBuild;

if (BuildSystem.TeamCity.IsRunningOnTeamCity)
{
    var branchName = BuildSystem.TeamCity.Environment.Build.BranchName;
    var buildNumber = BuildSystem.TeamCity.Environment.Build.Number;

    if(branchName == "master")
    {
        subVersion = $".{buildNumber}";
        subVersionNumber = $".{buildNumber}";
        isMasterOrDevelop = true;
    }
    else if(branchName == "develop")
    {
        subVersion = $"-develop-{buildNumber}";
        subVersionNumber = $".{buildNumber}";
        isMasterOrDevelop = true;
    }
    else
    {
        var versionBranch = branchName.Replace("feature/", "").Replace("pull/","pull-").ToLower();
        versionBranch = Regex.Replace(versionBranch, @"[^0-9a-z-]", "-");
        subVersion = $"-{versionBranch}-{buildNumber}";
        subVersionNumber = $".{buildNumber}";<commit_msg>bump version<commit_after>#module nuget:?package=Cake.BuildSystems.Module&version=3.0.1
#tool "nuget:?package=OctopusTools&version=7.4.3127"

using System.Text.RegularExpressions;

var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");

var baseVersion = "1.7.4";
var subVersion = "";
var subVersionNumber = "";
var isMasterOrDevelop = false;
var isLocal = BuildSystem.IsLocalBuild;

if (BuildSystem.TeamCity.IsRunningOnTeamCity)
{
    var branchName = BuildSystem.TeamCity.Environment.Build.BranchName;
    var buildNumber = BuildSystem.TeamCity.Environment.Build.Number;

    if(branchName == "master")
    {
        subVersion = $".{buildNumber}";
        subVersionNumber = $".{buildNumber}";
        isMasterOrDevelop = true;
    }
    else if(branchName == "develop")
    {
        subVersion = $"-develop-{buildNumber}";
        subVersionNumber = $".{buildNumber}";
        isMasterOrDevelop = true;
    }
    else
    {
        var versionBranch = branchName.Replace("feature/", "").Replace("pull/","pull-").ToLower();
        versionBranch = Regex.Replace(versionBranch, @"[^0-9a-z-]", "-");
        subVersion = $"-{versionBranch}-{buildNumber}";
        subVersionNumber = $".{buildNumber}";
{'fraction_non_alphanumeric': 0.15673730507796882, 'fraction_numerical': 0.011195521791283487, 'mean_word_length': 3.83011583011583, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5844278', 'n_tokens_mistral': 795, 'n_tokens_neox': 772, 'n_words': 128}