<commit_before>using System;
using LandauMedia.Telemetry.Internal;

namespace LandauMedia.Telemetry
{
    public class Gauge : ITelemeter
    {
        readonly Lazy<string> _lazyName;
        Action<Lazy<string>, long> _gauge;

        internal Gauge(LazyName lazyName)
        {
            _lazyName = lazyName.Get(this);
        }

        void ITelemeter.ChangeImplementation(ITelemeterImpl impl)
        {
            _gauge = impl.GetGauge();
        }

        public void Set(long value)
        {
            _gauge(_lazyName, value);
        }
    }
}<commit_msg>Nullable overload for Gauge. Which does not send guage data when null<commit_after>using System;
using LandauMedia.Telemetry.Internal;

namespace LandauMedia.Telemetry
{
    public class Gauge : ITelemeter
    {
        readonly Lazy<string> _lazyName;
        Action<Lazy<string>, long> _gauge;

        internal Gauge(LazyName lazyName)
        {
            _lazyName = lazyName.Get(this);
        }

        void ITelemeter.ChangeImplementation(ITelemeterImpl impl)
        {
            _gauge = impl.GetGauge();
        }

        public void Set(long value)
        {
            _gauge(_lazyName, value);
        }

        public void Set(long? value)
        {
            if(value.HasValue)
                _gauge(_lazyName, value.Value);
        }
    }
}
{'fraction_non_alphanumeric': 0.08351976137211037, 'fraction_numerical': 0.0, 'mean_word_length': 1.9365426695842451, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3936514', 'n_tokens_mistral': 409, 'n_tokens_neox': 391, 'n_words': 82}