<commit_before>#!/bin/sh
# This configuration file was taken originally from the mpi4py project
# <http://mpi4py.scipy.org/>, and then modified for Julia

set -e
set -x

impl="$1"
os=`uname`

case "$os" in
    Darwin)
        wget https://distfiles.macports.org/MacPorts/MacPorts-2.3.3.tar.bz2
        tar xvfj MacPorts-2.3.3.tar.bz2
        cd MacPorts-2.3.3
        ./configure && make && sudo make install
        export "PATH=/opt/local/bin:$PATH"
        sudo port -v selfupdate
        case "$impl" in
            mpich|mpich3)
                sudo port -v install mpich
                ;; 
            openmpi)
                sudo port -v install openmpi
                ;;
            *)
                echo "Unknown MPI implementation: $impl"
                exit 1
                ;;
        esac
    ;;

    Linux)
        sudo apt-get update -q
        case "$impl" in
            mpich1)
                sudo apt-get install -q gfortran mpich-shmem-bin libmpich-shmem1.0-dev
                ;;
            mpich2)
                sudo apt-get install -q gfortran mpich2 libmpich2-3 libmpich2-dev
                ;;
            mpich|mpich3)
                sudo apt-get install -q gfortran libcr0 default-jdk
                wget -q http://www.cebacad.net/files/mpich/ubuntu/mpich-3.1/mpich_3.1-1ubuntu_amd64.deb
                sudo dpkg -i ./mpich_3.1-1ubuntu_amd64.deb
                rm -f ./mpich_3.1-1ubuntu_amd64.deb
                ;;
            openmpi)
                sudo apt-get install -q gfortran openmpi-bin openmpi-common libopenmpi-dev<commit_msg>Make OS X tests work on Travis<commit_after>#!/bin/sh
# This configuration file was taken originally from the mpi4py project
# <http://mpi4py.scipy.org/>, and then modified for Julia

set -e
set -x

impl="$1"
os=`uname`

case "$os" in
    Darwin)
        # TODO: Don't build -- but how? Use Homebrew? Macport seems to
        # want to build a compiler first, which takes too long.
        case "$impl" in
            mpich|mpich3)
                wget http://www.mpich.org/static/downloads/3.1.4/mpich-3.1.4.tar.gz
                tar xzf mpich-3.1.4.tar.gz
                cd mpich-3.1.4
                ./configure
                make -j2
                sudo make install
                ;; 
            openmpi)
                wget http://www.open-mpi.org/software/ompi/v1.10/downloads/openmpi-1.10.0.tar.bz2
                tar xjf openmpi-1.10.0.tar.bz2
                cd openmpi-1.10.0
                ./configure
                make -j2
                sudo make install
                ;;
            *)
                echo "Unknown MPI implementation: $impl"
                exit 1
                ;;
        esac
    ;;

    Linux)
        sudo apt-get update -q
        case "$impl" in
            mpich1)
                sudo apt-get install -q gfortran mpich-shmem-bin libmpich-shmem1.0-dev
                ;;
            mpich2)
                sudo apt-get install -q gfortran mpich2 libmpich2-3 libmpich2-dev
                ;;
            mpich|mpich3)
                sudo apt-get install -q gfortran libcr0 default-jdk
                wget -q http://www.cebacad.net/files/mpich/ubuntu/mpich-3.1/mpich_3.1-1ubuntu_amd64.deb
                sudo dpkg -i ./mpich_3.1-1ubuntu_amd64.deb
                rm -f ./mpich_3.1-1ubuntu_amd64.deb
                ;;
            openmpi)
                sudo apt-get install -q gfortran openmpi-bin openmpi-common libopenmpi-dev
{'fraction_non_alphanumeric': 0.09564966868337654, 'fraction_numerical': 0.030538749639873235, 'mean_word_length': 1.2857142857142858, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4008022', 'n_tokens_mistral': 1225, 'n_tokens_neox': 1080, 'n_words': 263}