<commit_before>﻿using System;

namespace Digimezzo.Utilities.Packaging
{
    public class Package
    {
        #region Properties
        private string name { get; set; }
        private Version version { get; set; }
        private Configuration configuration { get; set; }

        public string Name
        {
            get
            {
                return this.name;
            }
        }

        public Version Version
        {
            get
            {
                return this.version;
            }
        }

        public string FormattedVersion
        {
            get
            {
                //  {0}: Major Version,
                //  {1}: Minor Version,
                //  {2}: Build Number,
                //  {3}: Revision

                if (this.version.Build != 0)
                {
                    return string.Format("{0}.{1}.{2} (Build {3})", this.version.Major, this.version.Minor, this.version.Build, this.version.Revision);
                }
                else
                {
                    return string.Format("{0}.{1} (Build {2})", this.version.Major, this.version.Minor, this.version.Revision);
                }
            }
        }

        public string FormattedVersionNoBuild
        {
            get
            {
                //  {0}: Major Version,
                //  {1}: Minor Version,
                //  {2}: Build Number,
                //  {3}: Revision

                if (this.version.Build != 0)
                {
                    return string.Format("{0}.{1}.{2})", this.version.Major, this.version.Minor, this.version.Build, this.version.Revision);
                }
                else
                {
                    return string.Format("{0}.{1}", this.version.Major, this.version.Minor, this.version.Revision);
                }
            }
        }

        public Configuration Configuration
        {
            get
            {
                return this.configuration;
            }
        }

        public string Label
        {
            get { return this.configuration == Configuration.Debug ? Constants.Preview : Constants.Release; }
        }

        public string Filename
        {
            get
            {
                string filename = string.Format("{0} {1}", this.name, this.version.ToString());

                if (this.Configuration == Configuration.Debug)
                {
                    filename += " " + Constants.Preview;<commit_msg>Fixed a bug<commit_after>﻿using System;

namespace Digimezzo.Utilities.Packaging
{
    public class Package
    {
        #region Properties
        private string name { get; set; }
        private Version version { get; set; }
        private Configuration configuration { get; set; }

        public string Name
        {
            get
            {
                return this.name;
            }
        }

        public Version Version
        {
            get
            {
                return this.version;
            }
        }

        public string FormattedVersion
        {
            get
            {
                //  {0}: Major Version,
                //  {1}: Minor Version,
                //  {2}: Build Number,
                //  {3}: Revision

                if (this.version.Build != 0)
                {
                    return string.Format("{0}.{1}.{2} (Build {3})", this.version.Major, this.version.Minor, this.version.Build, this.version.Revision);
                }
                else
                {
                    return string.Format("{0}.{1} (Build {2})", this.version.Major, this.version.Minor, this.version.Revision);
                }
            }
        }

        public string FormattedVersionNoBuild
        {
            get
            {
                //  {0}: Major Version,
                //  {1}: Minor Version,
                //  {2}: Build Number,
                //  {3}: Revision

                if (this.version.Build != 0)
                {
                    return string.Format("{0}.{1}.{2}", this.version.Major, this.version.Minor, this.version.Build, this.version.Revision);
                }
                else
                {
                    return string.Format("{0}.{1}", this.version.Major, this.version.Minor, this.version.Revision);
                }
            }
        }

        public Configuration Configuration
        {
            get
            {
                return this.configuration;
            }
        }

        public string Label
        {
            get { return this.configuration == Configuration.Debug ? Constants.Preview : Constants.Release; }
        }

        public string Filename
        {
            get
            {
                string filename = string.Format("{0} {1}", this.name, this.version.ToString());

                if (this.Configuration == Configuration.Debug)
                {
                    filename += " " + Constants.Preview;
{'fraction_non_alphanumeric': 0.10466279767860716, 'fraction_numerical': 0.009605763458074845, 'mean_word_length': 1.0525667351129364, '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': '4139061', 'n_tokens_mistral': 1288, 'n_tokens_neox': 1184, 'n_words': 261}