<commit_before>﻿function Set-UACStatus
{
    [CmdletBinding(SupportsShouldProcess)]
    Param(
        [Parameter(Mandatory = $true)]
        [ValidateSet('Enabled', 'Disabled')]
        $Status
    )

    switch ($Status)
    {
        'Enabled'
        {
            $Logmsg = 'Enabling UAC'
            $Value = 1
        }
        'Disabled'
        {
            $Logmsg = 'Disabling UAC'
            $Value = 0
        }
    }

    if ($pscmdlet.ShouldProcess($Status))
    {
        Write-Verbose -Message ("$Logmsg - a reboot is required to apply the changes." | AddPrefix)
        New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\policies\system' -Name EnableLUA -PropertyType DWord -Value $Value -Force
    }
}<commit_msg>Suppress unwanted output, improve readability<commit_after>﻿function Set-UACStatus
{
    [CmdletBinding(SupportsShouldProcess)]
    Param(
        [Parameter(Mandatory = $true)]
        [ValidateSet('Enabled', 'Disabled')]
        $Status
    )

    switch ($Status)
    {
        'Enabled'
        {
            $Logmsg = 'Enabling UAC'
            $Value = 1
        }
        'Disabled'
        {
            $Logmsg = 'Disabling UAC'
            $Value = 0
        }
    }

    if ($PSCmdlet.ShouldProcess($Status))
    {
        Write-Verbose -Message ("$Logmsg - a reboot is required to apply the changes." | AddPrefix)
        $Params = @{
            Path         = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\policies\system'
            Name         = 'EnableLUA'
            PropertyType = 'DWord'
            Value        = $Value
        }
        New-ItemProperty @Params -Force | Out-Null
    }
}
{'fraction_non_alphanumeric': 0.11430281268701377, 'fraction_numerical': 0.0023937761819269898, 'mean_word_length': 1.7320261437908497, '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': '1358142', 'n_tokens_mistral': 502, 'n_tokens_neox': 489, 'n_words': 101}