<commit_before>﻿// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using System.Collections.Generic;
using UnityEngine;

namespace Microsoft.MixedReality.Toolkit.UI
{
    /// <summary>
    /// Base class for themes
    /// </summary>

    [System.Serializable]
    public class InteractableThemeProperty
    {
        public string Name;
        public InteractableThemePropertyValueTypes Type;
        public List<InteractableThemePropertyValue> Values;
        public InteractableThemePropertyValue StartValue;
        public int PropId; // i.e OptionIndex
        public List<ShaderProperties> ShaderOptions;
        public List<string> ShaderOptionNames;
        public InteractableThemePropertyValue Default;
        public string ShaderName;

        private List<int> ShaderPropertyIDs = null;
        private const string DefaultProperty = "_Color";

        public int GetShaderPropertyId()
        {
            // Lazy load Shader Properties
            if (ShaderPropertyIDs == null)
            {
                ShaderPropertyIDs = new List<int>(ShaderOptionNames.Count);
                for(int i = 0; i < this.ShaderOptionNames.Count; i++)
                {
                    ShaderPropertyIDs.Add(Shader.PropertyToID(this.ShaderOptionNames[i]));
                }
            }

            if (ShaderPropertyIDs.Count > PropId)
            {
                return ShaderPropertyIDs[PropId];
            }

            return Shader.PropertyToID(DefaultProperty);
        }

        public string GetShaderPropertyName()
        {
            if (ShaderOptions.Count > PropId)
            {
                return ShaderOptionNames[PropId];
            }

            return DefaultProperty;
        }
    }
}<commit_msg>Minor fix<commit_after>﻿// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using System.Collections.Generic;
using UnityEngine;

namespace Microsoft.MixedReality.Toolkit.UI
{
    /// <summary>
    /// Base class for themes
    /// </summary>

    [System.Serializable]
    public class InteractableThemeProperty
    {
        public string Name;
        public InteractableThemePropertyValueTypes Type;
        public List<InteractableThemePropertyValue> Values;
        public InteractableThemePropertyValue StartValue;
        public int PropId; // i.e OptionIndex
        public List<ShaderProperties> ShaderOptions;
        public List<string> ShaderOptionNames;
        public InteractableThemePropertyValue Default;
        public string ShaderName;

        private List<int> ShaderPropertyIDs = null;
        private const string DefaultProperty = "_Color";

        public int GetShaderPropertyId()
        {
            // Lazy load Shader Properties
            if (ShaderPropertyIDs == null)
            {
                ShaderPropertyIDs = new List<int>(ShaderOptionNames.Count);
                for(int i = 0; i < this.ShaderOptionNames.Count; i++)
                {
                    ShaderPropertyIDs.Add(Shader.PropertyToID(this.ShaderOptionNames[i]));
                }
            }

            if (ShaderPropertyIDs.Count > PropId)
            {
                return ShaderPropertyIDs[PropId];
            }

            return Shader.PropertyToID(DefaultProperty);
        }

        public string GetShaderPropertyName()
        {
            if (ShaderOptionNames.Count > PropId)
            {
                return ShaderOptionNames[PropId];
            }

            return DefaultProperty;
        }
    }
}
{'fraction_non_alphanumeric': 0.0737527114967462, 'fraction_numerical': 0.0005422993492407809, 'mean_word_length': 2.004071661237785, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, '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': '988498', 'n_tokens_mistral': 912, 'n_tokens_neox': 876, 'n_words': 227}