<commit_before>Describe 'build.psm1 and powershell.exe' {
    Context '$env:DEVPATH assemblies loading' {
        It 'has $env:DEVPATH set' {
            $env:DEVPATH | Should Not Be $null
        }

        It 'loads System.Management.Automation.dll' {
            [psobject].Assembly.Location | Should Be (
                Join-Path $env:DEVPATH System.Management.Automation.dll)
        }

        It 'loads Microsoft.PowerShell.Commands.Management.dll' {
            [Microsoft.PowerShell.Commands.GetChildItemCommand].Assembly.Location | Should Be (
                Join-Path $env:DEVPATH Microsoft.PowerShell.Commands.Management.dll)
        }

        It 'loads Microsoft.PowerShell.Commands.Utility.dll' {
            [Microsoft.PowerShell.Commands.UtilityResources].Assembly.Location | Should Be (
                Join-Path $env:DEVPATH Microsoft.PowerShell.Commands.Utility.dll)
        }

        It 'loads Microsoft.PowerShell.ConsoleHost.dll' {
            [Microsoft.PowerShell.ConsoleShell].Assembly.Location | Should Be (
                Join-Path $env:DEVPATH Microsoft.PowerShell.ConsoleHost.dll)
        }

        It 'loads Microsoft.PowerShell.Security.dll' {
            [Microsoft.PowerShell.Commands.SecurityDescriptorCommandsBase].Assembly.Location | Should Be (
                Join-Path $env:DEVPATH Microsoft.PowerShell.Security.dll)
        }
    }
}<commit_msg>Add tests to ensure we build LocalAccounts and Archive correctly<commit_after>Describe 'build.psm1 and powershell.exe' {
    Context '$env:DEVPATH assemblies loading' {
        It 'has $env:DEVPATH set' {
            $env:DEVPATH | Should Not Be $null
        }

        It 'loads System.Management.Automation.dll' {
            [psobject].Assembly.Location | Should Be (
                Join-Path $env:DEVPATH System.Management.Automation.dll)
        }

        It 'loads Microsoft.PowerShell.Commands.Management.dll' {
            [Microsoft.PowerShell.Commands.GetChildItemCommand].Assembly.Location | Should Be (
                Join-Path $env:DEVPATH Microsoft.PowerShell.Commands.Management.dll)
        }

        It 'loads Microsoft.PowerShell.Commands.Utility.dll' {
            [Microsoft.PowerShell.Commands.UtilityResources].Assembly.Location | Should Be (
                Join-Path $env:DEVPATH Microsoft.PowerShell.Commands.Utility.dll)
        }

        It 'loads Microsoft.PowerShell.ConsoleHost.dll' {
            [Microsoft.PowerShell.ConsoleShell].Assembly.Location | Should Be (
                Join-Path $env:DEVPATH Microsoft.PowerShell.ConsoleHost.dll)
        }

        It 'loads Microsoft.PowerShell.Security.dll' {
            [Microsoft.PowerShell.Commands.SecurityDescriptorCommandsBase].Assembly.Location | Should Be (
                Join-Path $env:DEVPATH Microsoft.PowerShell.Security.dll)
        }
    }
}

Describe 'Modules for the packge' {
    Context '$env:DEVPATH Modules loading' {

        $originalPSModulePath = $env:PSModulePath 
        try 
        {
            # load all modules only from $env:DEVPATH !!!
            $env:PSModulePath = "$($env:DEVPATH)\Modules"

            It 'loads Microsoft.PowerShell.LocalAccounts' {
                try
                {
                    Import-Module Microsoft.PowerShell.LocalAccounts
                    Get-LocalUser | Should Not Be $null
                }
                finally
                {
                    Remove-Module -ErrorAction SilentlyContinue Microsoft.PowerShell.LocalAccounts
                }
            }

            It 'loads Microsoft.PowerShell.Archive' {
                try
                {
                    Import-Module Microsoft.PowerShell.LocalAccounts
                    Set-Content -Path TestDrive:\1.txt -Value ''
                    Compress-Archive -Path TestDrive:\1.txt -DestinationPath TestDrive:\1.zip
                    Get-ChildItem -Path TestDrive:\1.zip | Should Not Be $null
                }
                finally
                {
                    Remove-Module -ErrorAction SilentlyContinue Microsoft.PowerShell.Archive
                }
            }
        }
        finally
        {
            $env:PSModulePath = $originalPSModulePath
        }
    }
}

{'fraction_non_alphanumeric': 0.09015421115065243, 'fraction_numerical': 0.0014234875444839859, 'mean_word_length': 1.8699795779441797, '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': '2390436', 'n_tokens_mistral': 1121, 'n_tokens_neox': 1083, 'n_words': 199}