<commit_before>$Script:ModuleName = 'Erwine.Leonard.T.Speech';
$Script:InstallRoot = $MyInvocation.MyCommand.Definition | Split-Path -Parent;
$Script:SourceManifestPath = $Script:InstallRoot | Join-Path -ChildPath "$Script:ModuleName.psd1";
if (-not $Script:SourceManifestPath | Test-Path -PathType Leaf) {
    Write-Error -Message 'Module manifest file not found' -Category ObjectNotFound -TargetObject $Script:SourceManifestPath;
    return;
}
$Script:NewModuleManifest = Test-ModuleManifest -Path $Script:SourceManifestPath -ErrorAction Continue;
if ($Script:NewModuleManifest -eq $null) {
    Write-Error -Message 'Unable to load module manifest to be installed. Cannot continue.' -Category ReadError -TargetObject $Script:SourceManifestPath;
    return;
}
Function Get-SpecialFolderPath {
    Param(
        [Parameter(Mandatory = $true, ValueFromPipeline = $true)]
        [System.Environment+SpecialFolder]$SpecialFolder
    )
    Process {
        $Path = [System.Environment]::GetFolderPath($SpecialFolder);
        if (-not [System.String]::IsNullOrEmpty($Path)) { [System.IO.Path]::GetFullPath($Path) }
    }
}

$AllUsersBasePaths = @(([System.Environment+SpecialFolder]::ProgramFiles,
    [System.Environment+SpecialFolder]::ProgramFilesX86,
    [System.Environment+SpecialFolder]::CommonApplicationData,
    [System.Environment+SpecialFolder]::CommonDesktopDirectory,
    [System.Environment+SpecialFolder]::CommonProgramFiles,
    [System.Environment+SpecialFolder]::CommonProgramFilesX86,
    [System.Environment+SpecialFolder]::CommonPrograms,
    [System.Environment+SpecialFolder]::Programs) | Get-SpecialFolderPath | Select-Object -Unique);
$CurrentUserBasePaths = @(([System.Environment+SpecialFolder]::MyDocuments,
    [System.Environment+SpecialFolder]::ApplicationData,
    [System.Environment+SpecialFolder]::LocalApplicationData,<commit_msg>Added comments<commit_after># Name of module being installed.
$Script:ModuleName = 'Erwine.Leonard.T.Speech';

# Get installation source paths.
$Script:InstallRoot = $MyInvocation.MyCommand.Definition | Split-Path -Parent;
$Script:SourceManifestPath = $Script:InstallRoot | Join-Path -ChildPath "$Script:ModuleName.psd1";

# Validate module manifest before installing.
if (-not $Script:SourceManifestPath | Test-Path -PathType Leaf) {
    Write-Error -Message 'Module manifest file not found' -Category ObjectNotFound -TargetObject $Script:SourceManifestPath;
    return;
}
$Script:NewModuleManifest = Test-ModuleManifest -Path $Script:SourceManifestPath -ErrorAction Continue;
if ($Script:NewModuleManifest -eq $null) {
    Write-Error -Message 'Unable to load module manifest to be installed. Cannot continue.' -Category ReadError -TargetObject $Script:SourceManifestPath;
    return;
}

Function Get-SpecialFolderPath {
    Param(
        [Parameter(Mandatory = $true, ValueFromPipeline = $true)]
        [System.Environment+SpecialFolder]$SpecialFolder
    )
    Process {
        $Path = [System.Environment]::GetFolderPath($SpecialFolder);
        if (-not [System.String]::IsNullOrEmpty($Path)) { [System.IO.Path]::GetFullPath($Path) }
    }
}

$AllUsersBasePaths = @(([System.Environment+SpecialFolder]::ProgramFiles,
    [System.Environment+SpecialFolder]::ProgramFilesX86,
    [System.Environment+SpecialFolder]::CommonApplicationData,
    [System.Environment+SpecialFolder]::CommonDesktopDirectory,
    [System.Environment+SpecialFolder]::CommonProgramFiles,
    [System.Environment+SpecialFolder]::CommonProgramFilesX86,
    [System.Environment+SpecialFolder]::CommonPrograms,
    [System.Environment+SpecialFolder]::Programs) | Get-SpecialFolderPath | Select-Object -Unique);
$CurrentUserBasePaths = @(([System.Environment+SpecialFolder]::MyDocuments,
    [System.Environment+SpecialFolder]::ApplicationData,
    [System.Environment+SpecialFolder]::LocalApplicationData,
{'fraction_non_alphanumeric': 0.12262925435177968, 'fraction_numerical': 0.002598077422707197, 'mean_word_length': 6.064220183486238, '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': '5129376', 'n_tokens_mistral': 1069, 'n_tokens_neox': 1065, 'n_words': 191}