<commit_before>﻿namespace SexyFishHorse.CitiesSkylines.Infrastructure.UI.Extensions
{
    using ColossalFramework.UI;
    using Validation.Arguments;

    public static class UISliderExtensions
    {
        public static string GetLabelText(this UISlider slider)
        {
            var panel = slider.GetComponentInParent<UIPanel>();
            var uiLabel = panel.Find<UILabel>("Label");

            return uiLabel.text;
        }

        public static void SetLabelText(this UISlider slider, string label)
        {
            label.ShouldNotBeNullOrEmpty("label");

            var panel = slider.GetComponentInParent<UIPanel>();
            var uiLabel = panel.Find<UILabel>("Label");

            uiLabel.text = label;
        }
    }
}
<commit_msg>made set ui label text into a string format method<commit_after>﻿namespace SexyFishHorse.CitiesSkylines.Infrastructure.UI.Extensions
{
    using System.Linq;
    using ColossalFramework.UI;
    using JetBrains.Annotations;
    using Validation.Arguments;

    [UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]
    public static class UiSliderExtensions
    {
        [CanBeNull]
        public static string GetLabelText(this UISlider slider)
        {
            var panel = slider.GetComponentInParent<UIPanel>();
            var uiLabel = panel.Find<UILabel>("Label");

            return uiLabel.text;
        }

        [StringFormatMethod("label")]
        public static void SetLabelText(this UISlider slider, [NotNull] string label, params object[] args)
        {
            label.ShouldNotBeNullOrEmpty("label");

            var panel = slider.GetComponentInParent<UIPanel>();
            var uiLabel = panel.Find<UILabel>("Label");

            if (args != null && args.Any())
            {
                label = string.Format(label, args);
            }

            uiLabel.text = label;
        }
    }
}

{'fraction_non_alphanumeric': 0.092641609317099, 'fraction_numerical': 0.0, 'mean_word_length': 2.3333333333333335, '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': '2396383', 'n_tokens_mistral': 535, 'n_tokens_neox': 520, 'n_words': 109}