<commit_before>﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="AppInfo.cs" company="Kephas Software SRL">
//   Copyright (c) Kephas Software SRL. All rights reserved.
//   Licensed under the MIT license. See LICENSE file in the project root for full license information.
// </copyright>
// <summary>
//   Implements the application information class.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Kephas.Application.Reflection
{
    using System;
    using System.Collections.Generic;
    using System.Collections.ObjectModel;

    using Kephas.Dynamic;
    using Kephas.Reflection;
    using Kephas.Runtime;

    /// <summary>
    /// Information about the application.
    /// </summary>
    public class AppInfo : Expando, IAppInfo
    {
        private static readonly IEnumerable<object> EmptyAnnotations = new ReadOnlyCollection<object>(new List<object>());
        private static readonly IEnumerable<IParameterInfo> EmptyParameters = new ReadOnlyCollection<IParameterInfo>(new List<IParameterInfo>());

        /// <summary>
        /// Initializes a new instance of the <see cref="AppInfo"/> class.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <param name="version">Optional. The version.</param>
        /// <param name="description">Optional. The description.</param>
        public AppInfo(string name, Version version = null, string description = null)
        {
            this.Name = name;
            this.Version = version;
            this.Description = description;
        }

        /// <summary>
        /// Gets the application name.
        /// </summary>
        /// <value>
        /// The application name.
        /// </value>
        public string Name { get; }

        /// <summary>
        /// Gets the application version.
        /// </summary>
        /// <value>
        /// The application version.
        /// </value>
        public Version Version { get; }

        /// <summary>
        /// Gets the application description.
        /// </summary>
        /// <value>
        /// The description.
        /// </value><commit_msg>Made AppInfo.Version string instead of Version class.<commit_after>﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="AppInfo.cs" company="Kephas Software SRL">
//   Copyright (c) Kephas Software SRL. All rights reserved.
//   Licensed under the MIT license. See LICENSE file in the project root for full license information.
// </copyright>
// <summary>
//   Implements the application information class.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Kephas.Application.Reflection
{
    using System;
    using System.Collections.Generic;
    using System.Collections.ObjectModel;

    using Kephas.Dynamic;
    using Kephas.Reflection;
    using Kephas.Runtime;

    /// <summary>
    /// Information about the application.
    /// </summary>
    public class AppInfo : Expando, IAppInfo
    {
        private static readonly IEnumerable<object> EmptyAnnotations = new ReadOnlyCollection<object>(new List<object>());
        private static readonly IEnumerable<IParameterInfo> EmptyParameters = new ReadOnlyCollection<IParameterInfo>(new List<IParameterInfo>());

        /// <summary>
        /// Initializes a new instance of the <see cref="AppInfo"/> class.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <param name="version">Optional. The version.</param>
        /// <param name="description">Optional. The description.</param>
        public AppInfo(string name, string version = null, string description = null)
        {
            this.Name = name;
            this.Version = version;
            this.Description = description;
        }

        /// <summary>
        /// Gets the application name.
        /// </summary>
        /// <value>
        /// The application name.
        /// </value>
        public string Name { get; }

        /// <summary>
        /// Gets the application version.
        /// </summary>
        /// <value>
        /// The application version.
        /// </value>
        public string Version { get; }

        /// <summary>
        /// Gets the application description.
        /// </summary>
        /// <value>
        /// The description.
        /// </value>
{'fraction_non_alphanumeric': 0.2193020249892288, 'fraction_numerical': 0.0, 'mean_word_length': 1.49757934373319, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '1551678', 'n_tokens_mistral': 1058, 'n_tokens_neox': 1048, 'n_words': 317}