<commit_before>using Microsoft.Win32;
using XElement.DotNet.System.Environment.Startup;

namespace XElement.SDM.ManagementLogic
{
#region not unit-tested
    internal class RegistryProgramLogic : IProgramLogic
    {
        public RegistryProgramLogic( IProgramInfo programInfo )
        {
            this._programInfo = programInfo;
        }


        public void /*IProgramLogic.*/DelayStartup()
        {
            this.Do();
        }


        public void /*IProgramLogic.*/Do()
        {
            this.SubKey.DeleteValue( this.Origin.ValueName );
        }


        private IRegistryOrigin Origin
        {
            get { return (IRegistryOrigin)this._programInfo.Origin; }
        }


        public void /*IProgramLogic.*/PromoteStartup()
        {
            this.Undo();
        }


        private RegistryKey SubKey
        {
            get
            {
                var baseKey = RegistryKey.OpenBaseKey( this.Origin.TopLevelNode, this.Origin.Mode );
                var subKey = baseKey.OpenSubKey( this.Origin.SubKey, writable: true );
                return subKey;
            }
        }


        public void /*IProgramLogic.*/Undo()
        {
            var startInfo = this._programInfo.StartInfo;
            var value = $"\"{startInfo.FilePath}\" {startInfo.Arguments}";
            this.SubKey.SetValue( this.Origin.ValueName, value );
        }


        private IProgramInfo _programInfo;
    }
#endregion
}<commit_msg>* resolved 1 message: explicitly type built-in data types<commit_after>using Microsoft.Win32;
using XElement.DotNet.System.Environment.Startup;

namespace XElement.SDM.ManagementLogic
{
#region not unit-tested
    internal class RegistryProgramLogic : IProgramLogic
    {
        public RegistryProgramLogic( IProgramInfo programInfo )
        {
            this._programInfo = programInfo;
        }


        public void /*IProgramLogic.*/DelayStartup()
        {
            this.Do();
        }


        public void /*IProgramLogic.*/Do()
        {
            this.SubKey.DeleteValue( this.Origin.ValueName );
        }


        private IRegistryOrigin Origin
        {
            get { return (IRegistryOrigin)this._programInfo.Origin; }
        }


        public void /*IProgramLogic.*/PromoteStartup()
        {
            this.Undo();
        }


        private RegistryKey SubKey
        {
            get
            {
                var baseKey = RegistryKey.OpenBaseKey( this.Origin.TopLevelNode, this.Origin.Mode );
                var subKey = baseKey.OpenSubKey( this.Origin.SubKey, writable: true );
                return subKey;
            }
        }


        public void /*IProgramLogic.*/Undo()
        {
            var startInfo = this._programInfo.StartInfo;
            string value = $"\"{startInfo.FilePath}\" {startInfo.Arguments}";
            this.SubKey.SetValue( this.Origin.ValueName, value );
        }


        private IProgramInfo _programInfo;
    }
#endregion
}
{'fraction_non_alphanumeric': 0.09451732256979482, 'fraction_numerical': 0.0016818028927009755, 'mean_word_length': 1.7588126159554731, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1373239', 'n_tokens_mistral': 843, 'n_tokens_neox': 798, 'n_words': 152}