<commit_before>#!/bin/bash

set -ux -o pipefail
set +e

# Determine if an installation or upgrade is required.
which vagrant
if [[ "$?" == "0" ]]; then
    # Vagrant is installed. Check for the need to upgrade.
    VERSIONS=$(vagrant version)
    LATEST_VERSION=$(echo "$VERSIONS" | grep Latest | cut -d" " -f 3)
    INSTALLED_VERSION=$(echo "$VERSIONS" | grep Installed | cut -d" " -f 3)

    if [[ "$LATEST_VERSION" == "$INSTALLED_VERSION" ]]; then
        echo "Vagrant is fully updated."
        exit 0
    fi
fi

set -e

# Set up variables.
set +u
if [[ -z "$LATEST_VERSION" ]]; then
    LATEST_VERSION=$(curl -s "https://www.vagrantup.com/downloads.html" | grep dmg | sed "s/.*vagrant_//;s/.dmg.*//")
fi
set -u

readonly TMP_DIR=/tmp/vagrant-install
readonly IMAGE="vagrant_${LATEST_VERSION}"
readonly FILENAME="${IMAGE}.dmg"
readonly DL_URL="https://releases.hashicorp.com/vagrant/${LATEST_VERSION}/${FILENAME}"
<commit_msg>fix vagrant download for mac<commit_after>#!/bin/bash

set -ux -o pipefail
set +e

# Determine if an installation or upgrade is required.
which vagrant
if [[ "$?" == "0" ]]; then
    # Vagrant is installed. Check for the need to upgrade.
    VERSIONS=$(vagrant version)
    LATEST_VERSION=$(echo "$VERSIONS" | grep Latest | cut -d" " -f 3)
    INSTALLED_VERSION=$(echo "$VERSIONS" | grep Installed | cut -d" " -f 3)

    if [[ "$LATEST_VERSION" == "$INSTALLED_VERSION" ]]; then
        echo "Vagrant is fully updated."
        exit 0
    fi
fi

set -e

# Set up variables.
set +u
if [[ -z "$LATEST_VERSION" ]]; then
    LATEST_VERSION=$(curl -s "https://www.vagrantup.com/downloads.html" | grep dmg | sed "s/.*vagrant_//;s/.dmg.*//")
fi
set -u

readonly TMP_DIR=/tmp/vagrant-install
readonly IMAGE="vagrant_${LATEST_VERSION}_x86_64"
readonly FILENAME="${IMAGE}.dmg"
readonly DL_URL="https://releases.hashicorp.com/vagrant/${LATEST_VERSION}/${FILENAME}"

{'fraction_non_alphanumeric': 0.1613588110403397, 'fraction_numerical': 0.006369426751592357, 'mean_word_length': 3.60880195599022, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5033674', 'n_tokens_mistral': 731, 'n_tokens_neox': 680, 'n_words': 182}