<commit_before>$packageName = "kdiff"
$url = "http://sourceforge.net/projects/kdiff3/files/kdiff3/0.9.98/KDiff3-32bit-Setup_0.9.98-3.exe/download"
$url64 = "http://sourceforge.net/projects/kdiff3/files/kdiff3/0.9.98/KDiff3-64bit-Setup_0.9.98-2.exe/download"
$downloadPath = "$env:TEMP\chocolatey\$packageName"
$appDir = "$($env:SYSTEMDRIVE)\tools\apps\$($packageName)"

if ($psISE) {
    Import-Module -name "$env:ChocolateyInstall\chocolateyinstall\helpers\chocolateyInstaller.psm1"
}

try
{
    if (Test-Path $downloadPath)
    {
        Remove-Item -Path $downloadPath -Recurse -Force
    }

    New-Item -Type Directory -Path $downloadPath | Out-Null

    Get-ChocolateyWebFile $packageName "$downloadPath\$packageName.7z" $url $url64

    New-Item -Type Directory -Path $downloadPath\$packageName | Out-Null

    Push-Location $downloadPath\$packageName

    & 'C:\Program Files\7-Zip\7z.exe' x $downloadPath\$packageName.7z

    Copy-Item -Path "`$_OUTDIR\*" -Destination ".\" -Recurse -Container
    Remove-Item -Path "`$_OUTDIR" -Recurse -Force
    Remove-Item -Path "`$APPDATA" -Recurse -Force
    Remove-Item -Path "`$PLUGINSDIR" -Recurse -Force

    Pop-Location

    if (Test-Path $appDir)
    {
        Write-Output "Removing previous version of package..."
        Remove-Item "$($appDir)" -Recurse -Force
    }<commit_msg>The newest version of 7-Zip doesn't create the "$_OUTDIR" when extracting the files from the EXE<commit_after>$packageName = "kdiff"
$url = "http://sourceforge.net/projects/kdiff3/files/kdiff3/0.9.98/KDiff3-32bit-Setup_0.9.98-3.exe/download"
$url64 = "http://sourceforge.net/projects/kdiff3/files/kdiff3/0.9.98/KDiff3-64bit-Setup_0.9.98-2.exe/download"
$downloadPath = "$env:TEMP\chocolatey\$packageName"
$appDir = "$($env:SYSTEMDRIVE)\tools\apps\$($packageName)"

if ($psISE) {
    Import-Module -name "$env:ChocolateyInstall\chocolateyinstall\helpers\chocolateyInstaller.psm1"
}

try
{
    if (Test-Path $downloadPath)
    {
        Remove-Item -Path $downloadPath -Recurse -Force
    }

    New-Item -Type Directory -Path $downloadPath | Out-Null

    Get-ChocolateyWebFile $packageName "$downloadPath\$packageName.7z" $url $url64

    New-Item -Type Directory -Path $downloadPath\$packageName | Out-Null

    Push-Location $downloadPath\$packageName

    & 'C:\Program Files\7-Zip\7z.exe' x $downloadPath\$packageName.7z

    if (Test-Path "`$_OUTDIR") {
        Copy-Item -Path "`$_OUTDIR\*" -Destination ".\" -Recurse -Container
        Remove-Item -Path "`$_OUTDIR" -Recurse -Force
    }

    Remove-Item -Path "`$APPDATA" -Recurse -Force -ErrorAction SilentlyContinue
    Remove-Item -Path "`$PLUGINSDIR" -Recurse -Force -ErrorAction SilentlyContinue

    Remove-Item -Path "*.nsi" -Force -ErrorAction SilentlyContinue

    Pop-Location

    if (Test-Path $appDir)
    {
        Write-Output "Removing previous version of package..."
        Remove-Item "$($appDir)" -Recurse -Force
    }
{'fraction_non_alphanumeric': 0.14933515172178657, 'fraction_numerical': 0.02557108762359359, 'mean_word_length': 3.4186746987951806, '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': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2742831', 'n_tokens_mistral': 1094, 'n_tokens_neox': 1006, 'n_words': 192}