<commit_before>﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="VersionNumberBehaviour.cs" company="Slash Games">
//   Copyright (c) Slash Games. All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace Slash.Unity.Common.Utils
{
    using UnityEngine;

    [RequireComponent(typeof(GUIText))]
    public class VersionNumberBehaviour : MonoBehaviour
    {
        #region Fields

        /// <summary>
        ///   Path to file which contains version string.
        /// </summary>
        public string VersionFilePath = "Misc/Version";

        #endregion

        #region Methods

        private void Start()
        {
            var versionAsset = (TextAsset)Resources.Load(this.VersionFilePath);
            this.guiText.text = string.Format("Version {0}", versionAsset.text);
        }

        #endregion
    }
}<commit_msg>CHANGED: Utils - Version number behaviour is solely used for parsing the version number, no longer for displaying it.<commit_after>﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="VersionNumberBehaviour.cs" company="Slash Games">
//   Copyright (c) Slash Games. All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace Slash.Unity.Common.Utils
{
    using UnityEngine;

    public class VersionNumberBehaviour : MonoBehaviour
    {
        #region Fields

        /// <summary>
        ///   Path to file which contains version string.
        /// </summary>
        public string VersionFilePath = "Misc/Version";

        public string Version { get; private set; }

        #endregion

        #region Methods

        private void Awake()
        {
            var versionAsset = (TextAsset)Resources.Load(this.VersionFilePath);
            this.Version = versionAsset.text;
        }

        #endregion
    }
}
{'fraction_non_alphanumeric': 0.29916512059369205, 'fraction_numerical': 0.00046382189239332097, 'mean_word_length': 1.1854103343465046, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3522011', 'n_tokens_mistral': 464, 'n_tokens_neox': 441, 'n_words': 122}