<commit_before>#!/bin/sh

export OPAMYES=1

pushd $HOME

# Get GCC 4.8
if [ ! -d $HOME/gcc/bin ]; then
    wget https://github.com/Viq111/travis-container-packets/releases/download/gcc-4.8.2/gcc.tar.bz2
    tar -xjf gcc.tar.bz2
    rm gcc.tar.bz2
fi

export PATH=$HOME/gcc/bin:$PATH
export LIBRARY_PATH=$HOME/gcc/lib64:$LIBRARY_PATH
export LD_LIBRARY_PATH=$HOME/gcc/lib64:$LD_LIBRARY_PATH
export CPLUS_INCLUDE_PATH=$HOME/gcc/include/c++/4.8.2:$CPLUS_INCLUDE_PATH
export CPATH=$HOME/gcc/include:$HOME/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include:$CPATH

# install binutils
if [ ! -d $HOME/binutils/bin ] ; then
    wget http://ftp.gnu.org/gnu/binutils/binutils-2.26.tar.bz2
    tar jxpf binutils-2.26.tar.bz2
    rm binutils-2.26.tar.bz2
    pushd binutils-2.26
    ./configure --prefix=$HOME/binutils
    make
    make install
    popd
    rm -rfv binutils/share
fi

export PATH=$HOME/binutils/bin:$PATH
export LIBRARY_PATH=$HOME/binutils/lib:$LIBRARY_PATH
export LD_LIBRARY_PATH=$HOME/binutils/lib:$LD_LIBRARY_PATH
export CPATH=$HOME/binutils/include:$CPATH

#install opam
opam init
opam update -u
eval $(opam config env)

# install mirage
opam install mirage

# install sbt
mkdir $HOME/bin
curl -s https://raw.githubusercontent.com/paulp/sbt-extras/master/sbt > ~/bin/sbt && chmod 0755 ~/bin/sbt

popd<commit_msg>Use mirage 2.7.0 in travis, 2.7.1 seems to be broken<commit_after>#!/bin/sh

export OPAMYES=1

pushd $HOME

# Get GCC 4.8
if [ ! -d $HOME/gcc/bin ]; then
    wget https://github.com/Viq111/travis-container-packets/releases/download/gcc-4.8.2/gcc.tar.bz2
    tar -xjf gcc.tar.bz2
    rm gcc.tar.bz2
fi

export PATH=$HOME/gcc/bin:$PATH
export LIBRARY_PATH=$HOME/gcc/lib64:$LIBRARY_PATH
export LD_LIBRARY_PATH=$HOME/gcc/lib64:$LD_LIBRARY_PATH
export CPLUS_INCLUDE_PATH=$HOME/gcc/include/c++/4.8.2:$CPLUS_INCLUDE_PATH
export CPATH=$HOME/gcc/include:$HOME/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include:$CPATH

# install binutils
if [ ! -d $HOME/binutils/bin ] ; then
    wget http://ftp.gnu.org/gnu/binutils/binutils-2.26.tar.bz2
    tar jxpf binutils-2.26.tar.bz2
    rm binutils-2.26.tar.bz2
    pushd binutils-2.26
    ./configure --prefix=$HOME/binutils
    make
    make install
    popd
    rm -rfv binutils/share
fi

export PATH=$HOME/binutils/bin:$PATH
export LIBRARY_PATH=$HOME/binutils/lib:$LIBRARY_PATH
export LD_LIBRARY_PATH=$HOME/binutils/lib:$LD_LIBRARY_PATH
export CPATH=$HOME/binutils/include:$CPATH

#install opam
opam init
opam update -u
opam install mirage=2.7.0
eval $(opam config env)

# install mirage
opam install mirage

# install sbt
mkdir $HOME/bin
curl -s https://raw.githubusercontent.com/paulp/sbt-extras/master/sbt > ~/bin/sbt && chmod 0755 ~/bin/sbt

popd
{'fraction_non_alphanumeric': 0.13816032508311785, 'fraction_numerical': 0.0365718507572959, 'mean_word_length': 3.879279279279279, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '4762907', 'n_tokens_mistral': 1225, 'n_tokens_neox': 1090, 'n_words': 193}