<commit_before>function Resolve-WhiskeyPowerShellModuleVersion
{
    [CmdletBinding()]
    param(
        [Parameter(Mandatory=$true)]
        [string]
        # The name of the PowerShell module to download.
        $ModuleName,

        [string]
        # The version of the package to download. Must be a three part number, i.e. it must have a MAJOR, MINOR, and BUILD number.
        $Version
    )

    Set-StrictMode -Version 'Latest'
    Use-CallerPreference -Cmdlet $PSCmdlet -SessionState $ExecutionContext.SessionState

    if( $Version )
    {
        if( -not [Management.Automation.WildcardPattern]::ContainsWildcardCharacters($version) )
        {
            $tempVersion = [Version]$Version
            if( $TempVersion -and ($TempVersion.Build -lt 0) )
            {
                $Version = [version]('{0}.{1}.0' -f $TempVersion.Major,$TempVersion.Minor)
            }
        }
        $Version = Find-Module -Name $ModuleName -AllVersions | 
                        Where-Object { $_.Version.ToString() -like $Version } | 
                        Sort-Object -Property 'Version' -Descending | 
                        Select-Object -First 1 | 
                        Select-Object -ExpandProperty 'Version'
        if( -not $Version )
        {
            Write-Error -Message ('Failed to find module {0} version {1} on the PowerShell Gallery. Either the {0} module does not exist, or it does but version {1} does not exist. Browse the PowerShell Gallery at https://www.powershellgallery.com/' -f $ModuleName, $tempVersion)
            return
        }
    }
    else
    {
        $Version = Find-Module -Name $ModuleName -ErrorAction Ignore | Select-Object -ExpandProperty 'Version'
        if( -not $Version )
        {
            Write-Error -Message ('Unable to find any versions of the {0} module on the PowerShell Gallery. You can browse the PowerShell Gallery at https://www.powershellgallery.com/' -f $ModuleName)
            return
        }
    }
    return $Version
}<commit_msg>Fixing Whiskey failing to install Pester.<commit_after>function Resolve-WhiskeyPowerShellModuleVersion
{
    [CmdletBinding()]
    param(
        [Parameter(Mandatory=$true)]
        [string]
        # The name of the PowerShell module to download.
        $ModuleName,

        [string]
        # The version of the package to download. Must be a three part number, i.e. it must have a MAJOR, MINOR, and BUILD number.
        $Version
    )

    Set-StrictMode -Version 'Latest'
    Use-CallerPreference -Cmdlet $PSCmdlet -SessionState $ExecutionContext.SessionState

    if( $Version )
    {
        if( [Management.Automation.WildcardPattern]::ContainsWildcardCharacters($version) )
        {
            $Version = Find-Module -Name $ModuleName -AllVersions | 
                            Where-Object { $_.Version.ToString() -like $Version } | 
                            Sort-Object -Property 'Version' -Descending | 
                            Select-Object -First 1 | 
                            Select-Object -ExpandProperty 'Version'
            if( -not $Version )
            {
                Write-Error -Message ('Failed to find module {0} version {1} on the PowerShell Gallery. Either the {0} module does not exist, or it does but version {1} does not exist. Browse the PowerShell Gallery at https://www.powershellgallery.com/' -f $ModuleName, $tempVersion)
                return
            }
        }
        else
        {
            $tempVersion = [Version]$Version
            if( $TempVersion -and ($tempVersion.Build -lt 0) )
            {
                $Version = [version]('{0}.{1}.0' -f $TempVersion.Major,$TempVersion.Minor)
            }
        }
    }
    else
    {
        $Version = Find-Module -Name $ModuleName -ErrorAction Ignore | Select-Object -ExpandProperty 'Version'
        if( -not $Version )
        {
            Write-Error -Message ('Unable to find any versions of the {0} module on the PowerShell Gallery. You can browse the PowerShell Gallery at https://www.powershellgallery.com/' -f $ModuleName)
            return
        }
    }
    return $Version
}
{'fraction_non_alphanumeric': 0.0979156568104702, 'fraction_numerical': 0.004847309743092583, 'mean_word_length': 1.9269503546099291, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5325506', 'n_tokens_mistral': 1143, 'n_tokens_neox': 1097, 'n_words': 339}