<commit_before># Script to install bftools under Windows.

$BFTOOLS_URL = "http://downloads.openmicroscopy.org/latest/bio-formats5.1/artifacts/bftools.zip"
$BFTOOLS_ZIP_PATH = "C:\bftools.zip"
$BFTOOLS_DIR = "C:\bftools"
$BFCONVERT_PATH = "C:\bftools\bfconvert.bat"

function Expand-ZIPFile($file, $destination) {
    $shell = new-object -com shell.application
    $zip = $shell.NameSpace($file)
    foreach($item in $zip.items()) {
        $shell.Namespace($destination).copyhere($item)
    }
}
 
function InstallBFTools () {
    if (-not(Test-Path $BFCONVERT_PATH)) {
        Write-Host "Installing bftools..."
        $webclient = New-Object System.Net.WebClient
        $webclient.DownloadFile($BFTOOLS_URL, $BFTOOL_ZIP_PATH)
        Expand-ZIPFile -File $BFTOOLS_ZIP_PATH -Destination $BFTOOLS_DIR
    } else {
        Write-Host "bftools already installed."
    }
}

function main () {
    InstallBFTools
}

main<commit_msg>Fixed variable name.<commit_after># Script to install bftools under Windows.

$BFTOOLS_URL = "http://downloads.openmicroscopy.org/latest/bio-formats5.1/artifacts/bftools.zip"
$BFTOOLS_ZIP_PATH = "C:\bftools.zip"
$BFTOOLS_DIR = "C:\bftools"
$BFCONVERT_PATH = "C:\bftools\bfconvert.bat"

function Expand-ZIPFile($file, $destination) {
    $shell = new-object -com shell.application
    $zip = $shell.NameSpace($file)
    foreach($item in $zip.items()) {
        $shell.Namespace($destination).copyhere($item)
    }
}
 
function InstallBFTools () {
    if (-not(Test-Path $BFCONVERT_PATH)) {
        Write-Host "Installing bftools..."
        $webclient = New-Object System.Net.WebClient
        $webclient.DownloadFile($BFTOOLS_URL, $BFTOOLS_ZIP_PATH)
        Expand-ZIPFile -File $BFTOOLS_ZIP_PATH -Destination $BFTOOLS_DIR
    } else {
        Write-Host "bftools already installed."
    }
}

function main () {
    InstallBFTools
}

main
{'fraction_non_alphanumeric': 0.1354389721627409, 'fraction_numerical': 0.0021413276231263384, 'mean_word_length': 3.5808823529411766, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4983304', 'n_tokens_mistral': 672, 'n_tokens_neox': 691, 'n_words': 111}