<commit_before>set -ex

main() {
    local target=
    if [ $TRAVIS_OS_NAME = linux ]; then
        target=x86_64-unknown-linux-musl
        sort=sort
    else
        target=x86_64-apple-darwin
        sort=gsort  # for `sort --sort-version`, from brew's coreutils.
    fi

    # install additional libraries
    #
    # libavahi-compat-libdnssd-dev
    #   - debian: is not in standard installation but in deb repo
    #   - macos:  not foundable
    # libsodium-dev
    #   - debian:
    #      - i686: it is only after trusty in repo, but PPA exists
    #      - armhf: is not in trusty, but PPA exists
    #   - macos:  need to be tested/see below
    #
    #
    # is jessie libnss-mdns-dev
    case $TARGET in
      i686-unknown-linux-gnu | x86_64-unknown-linux-gnu)
       sudo apt-get install -qq libavahi-compat-libdnssd-dev -y \
         && sudo add-apt-repository ppa:james-page/0mq -y \
         && sudo apt-get update -qq \
         && sudo apt-get install libsodium-dev -y
      ;;
      armv7-unknown-linux-gnueabihf)
       sudo apt-get install -qq libavahi-compat-libdnssd-dev -y \
         && sudo add-apt-repository ppa:segf4ult/zeromq -y \
         && sudo apt-get update -qq \
         && sudo apt-get install libsodium-dev -y
      ;;
      arm-unknown-linux-gnueabi)
       sudo apt-get install -qq libavahi-compat-libdnssd-dev -y
      ;;
      aarch64-unknown-linux-gnu)
       sudo apt-get install -qq libavahi-compat-libdnssd-dev -y \
        && sudo add-apt-repository ppa:chris-lea/libsodium -y \
        && sudo apt-get update -qq \
        && sudo apt-get install libsodium-dev -y
      ;;
      x86_64-apple-darwin)
       ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null \
        && brew install libsodium
      ;;
    esac

    # Builds for iOS are done on OSX, but require the specific target to be
    # installed.
    case $TARGET in
        aarch64-apple-ios)
            rustup target install aarch64-apple-ios
            ;;
        armv7-apple-ios)
            rustup target install armv7-apple-ios<commit_msg>Explicitly added target for armhf.<commit_after>set -ex

main() {
    local target=
    if [ $TRAVIS_OS_NAME = linux ]; then
        target=x86_64-unknown-linux-musl
        sort=sort
    else
        target=x86_64-apple-darwin
        sort=gsort  # for `sort --sort-version`, from brew's coreutils.
    fi

    # install additional libraries
    #
    # libavahi-compat-libdnssd-dev
    #   - debian: is not in standard installation but in deb repo
    #   - macos:  not foundable
    # libsodium-dev
    #   - debian:
    #      - i686: it is only after trusty in repo, but PPA exists
    #      - armhf: is not in trusty, but PPA exists
    #   - macos:  need to be tested/see below
    #
    #
    # is jessie libnss-mdns-dev
    case $TARGET in
      i686-unknown-linux-gnu | x86_64-unknown-linux-gnu)
         sudo apt-get install -qq libavahi-compat-libdnssd-dev -y \
         && sudo add-apt-repository ppa:james-page/0mq -y \
         && sudo apt-get update -qq \
         && sudo apt-get install libsodium-dev -y
      ;;
      armv7-unknown-linux-gnueabihf)
       rustup target install armv7-unknown-linux-gnueabihf \
         && sudo apt-get install -qq libavahi-compat-libdnssd-dev -y \
         && sudo add-apt-repository ppa:segf4ult/zeromq -y \
         && sudo apt-get update -qq \
         && sudo apt-get install libsodium-dev -y
      ;;
      arm-unknown-linux-gnueabi)
       sudo apt-get install -qq libavahi-compat-libdnssd-dev -y
      ;;
      aarch64-unknown-linux-gnu)
       sudo apt-get install -qq libavahi-compat-libdnssd-dev -y \
        && sudo add-apt-repository ppa:chris-lea/libsodium -y \
        && sudo apt-get update -qq \
        && sudo apt-get install libsodium-dev -y
      ;;
      x86_64-apple-darwin)
       ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null \
        && brew install libsodium
      ;;
    esac

    # Builds for iOS are done on OSX, but require the specific target to be
    # installed.
    case $TARGET in
        aarch64-apple-ios)
            rustup target install aarch64-apple-ios
            ;;
        armv7-apple-ios)
            rustup target install armv7-apple-ios
{'fraction_non_alphanumeric': 0.10515368615669055, 'fraction_numerical': 0.015946383175410216, 'mean_word_length': 1.8872581721147432, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1400109', 'n_tokens_mistral': 1561, 'n_tokens_neox': 1448, 'n_words': 367}