<commit_before>Add-Type -assembly "system.io.compression.filesystem"

$path      = Split-Path $MyInvocation.MyCommand.Path -Parent
$bin       = Join-Path $path "bin"
$templates = Join-Path $path "templates"
$compat    = Join-Path $path "compat"
Write-Host "$bin"
ls ghc-devel*.nuspec -recurse -File | ForEach-Object { 
            $src = (Split-Path $_.FullName -Parent)
            $tmp = Join-Path $bin "tmp_build"
            $base = $_.BaseName
            New-Item $tmp -Type Directory -Force | Out-Null

            Write-Host "Packaging $_"
            
            # Copy the files over
            Copy-Item -Recurse -Force -Path (Join-Path $src "*") -Destination $tmp
            Copy-Item -Recurse -Force -Path (Join-Path $templates "*") -Destination $tmp
            Copy-Item -Recurse -Force -Path (Join-Path $compat "*") -Destination $tmp

            Remove-Item -Path $tmp -Include *.nuspec

            $source = $tmp
            $destination = Join-Path $bin ($base + '.zip')

            If(Test-path $destination) {Remove-item $destination}
            [io.compression.zipfile]::CreateFromDirectory($Source, $destination) 

            Remove-Item -Path $tmp -Recurse -Force
            Write-Host "Done packaging $base"
        }
        
cd $path

Write-Host "Done."<commit_msg>GhcDevel: Packaging script done<commit_after>Add-Type -assembly "system.io.compression.filesystem"

$path      = Split-Path $MyInvocation.MyCommand.Path -Parent
$bin       = Join-Path $path "bin"
$templates = Join-Path $path "templates"
$compat    = Join-Path $path "compat"
Write-Host "$bin"
ls ghc-devel*.nuspec -recurse -File | ForEach-Object { 
            $src = (Split-Path $_.FullName -Parent)
            $tmp = Join-Path $bin "tmp_build"
            $base = $_.BaseName
            New-Item $tmp -Type Directory -Force | Out-Null

            Write-Host "Packaging $_"
            
            # Copy the files over
            Copy-Item -Recurse -Force -Path (Join-Path $src "*") -Destination $tmp
            Copy-Item -Recurse -Force -Path (Join-Path $templates "*") -Destination $tmp
            Copy-Item -Recurse -Force -Path (Join-Path $compat "*") -Destination $tmp

            Remove-Item -Path $tmp -Include *.nuspec

            # Move top scripts
            $tools = Join-Path $tmp "tools"
            Move-Item (Join-Path $tools "chocolateyInstall.ps1") (Join-Path $tmp "Install.ps1")
            Move-Item (Join-Path $tools "chocolateyUninstall.ps1") (Join-Path $tmp "Uninstall.ps1")

            $source = $tmp
            $destination = Join-Path $bin ($base + '.zip')

            If(Test-path $destination) {Remove-item $destination}
            [io.compression.zipfile]::CreateFromDirectory($Source, $destination) 

            Remove-Item -Path $tmp -Recurse -Force
            Write-Host "Done packaging $base"
        }
        
cd $path

Write-Host "Done."
{'fraction_non_alphanumeric': 0.1301038062283737, 'fraction_numerical': 0.001384083044982699, 'mean_word_length': 2.0592592592592593, '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': '7604668', 'n_tokens_mistral': 877, 'n_tokens_neox': 851, 'n_words': 229}