<commit_before>param($InstallPath)
Set-StrictMode -Version Latest

Import-Module (Join-Path $PSScriptRoot ProfileConfig) -ArgumentList $InstallPath
Export-ModuleMember -Variable ProfileConfig

Get-ChildItem "$PSScriptRoot\ModuleInitialization" -Filter *.ps1 -Recurse | Sort-Object FullName | % { & $_.FullName }

Export-ModuleMember -Function (Get-ChildItem "$PSScriptRoot\Exports\Functions" -Filter *.ps1 -Recurse | % { . $_.FullName; $_.BaseName })
Export-ModuleMember -Alias (Get-ChildItem "$PSScriptRoot\Exports\Aliases" -Filter *.ps1 -Recurse | % { . $_.FullName; $_.BaseName })

$powerShellScriptsFolder = Join-Path ([System.Environment]::GetFolderPath("MyDocuments")) "PowerShell Scripts"
$includeFile = Join-Path $powerShellScriptsFolder "include.ps1"
if ((Test-Path $includeFile) -and -not ([String]::IsNullOrWhiteSpace([IO.File]::ReadAllText($includeFile)))) {
    Write-Host "Loading include file $includeFile..."
    $referenceFunctions =  Get-ChildItem function: | Select-Object -ExpandProperty Name
    $referenceAliases = Get-ChildItem alias: | Select-Object -ExpandProperty Name
    try {
        Push-Location $powerShellScriptsFolder
        . $includeFile
    }
    finally {
        Pop-Location
    }
    $differenceFunctions =  Get-ChildItem function: | Select-Object -ExpandProperty Name
    $differenceAliases = Get-ChildItem alias: | Select-Object -ExpandProperty Name

    $includedFunctions = Compare-Object -ReferenceObject $referenceFunctions -DifferenceObject $differenceFunctions | Select-Object -ExpandProperty InputObject
    $includedFunctions | ? { $_ -notlike "_*" -and (Get-Command $_).ModuleName -eq "Profile" } | % { Write-Host "Importing function $_..."; Export-ModuleMember -Function $_ } 
    $includedAliases = Compare-Object -ReferenceObject $referenceAliases -DifferenceObject $differenceAliases | Select-Object -ExpandProperty InputObject
    $includedAliases | ? { $_ -notlike "_*" -and (Get-Command $_).ModuleName -eq "Profile" } |  % { Write-Host "Importing alias $_...";  Export-ModuleMember -Alias $_ }
}

Write-Host -ForegroundColor Green "PowerShell Console Module was successfully loaded."<commit_msg>Fixing bug introduced with the module rename<commit_after>param($InstallPath)
Set-StrictMode -Version Latest

Import-Module (Join-Path $PSScriptRoot ProfileConfig) -ArgumentList $InstallPath
Export-ModuleMember -Variable ProfileConfig

Get-ChildItem "$PSScriptRoot\ModuleInitialization" -Filter *.ps1 -Recurse | Sort-Object FullName | % { & $_.FullName }

Export-ModuleMember -Function (Get-ChildItem "$PSScriptRoot\Exports\Functions" -Filter *.ps1 -Recurse | % { . $_.FullName; $_.BaseName })
Export-ModuleMember -Alias (Get-ChildItem "$PSScriptRoot\Exports\Aliases" -Filter *.ps1 -Recurse | % { . $_.FullName; $_.BaseName })

$powerShellScriptsFolder = Join-Path ([System.Environment]::GetFolderPath("MyDocuments")) "PowerShell Scripts"
$includeFile = Join-Path $powerShellScriptsFolder "include.ps1"
if ((Test-Path $includeFile) -and -not ([String]::IsNullOrWhiteSpace([IO.File]::ReadAllText($includeFile)))) {
    Write-Host "Loading include file $includeFile..."
    $referenceFunctions =  Get-ChildItem function: | Select-Object -ExpandProperty Name
    $referenceAliases = Get-ChildItem alias: | Select-Object -ExpandProperty Name
    try {
        Push-Location $powerShellScriptsFolder
        . $includeFile
    }
    finally {
        Pop-Location
    }
    $differenceFunctions =  Get-ChildItem function: | Select-Object -ExpandProperty Name
    $differenceAliases = Get-ChildItem alias: | Select-Object -ExpandProperty Name

    $includedFunctions = Compare-Object -ReferenceObject $referenceFunctions -DifferenceObject $differenceFunctions | Select-Object -ExpandProperty InputObject
    $includedFunctions | ? { $_ -notlike "_*" -and (Get-Command $_).ModuleName -eq "AdvancedPowerShellConsole" } | % { Write-Host "Importing function $_..."; Export-ModuleMember -Function $_ } 
    $includedAliases = Compare-Object -ReferenceObject $referenceAliases -DifferenceObject $differenceAliases | Select-Object -ExpandProperty InputObject
    $includedAliases | ? { $_ -notlike "_*" -and (Get-Command $_).ModuleName -eq "AdvancedPowerShellConsole" } |  % { Write-Host "Importing alias $_...";  Export-ModuleMember -Alias $_ }
}

Write-Host -ForegroundColor Green "PowerShell Console Module was successfully loaded."
{'fraction_non_alphanumeric': 0.12291523874800091, 'fraction_numerical': 0.0018277358921635824, 'mean_word_length': 4.634491634491635, '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': '6199023', 'n_tokens_mistral': 1271, 'n_tokens_neox': 1207, 'n_words': 285}