<commit_before># OCaml version to use
export OPAM_SWITCH=4.02.3
# OPAM version to install
export OPAM_VERSION=1.2.2
# OPAM packages needed to build tests
export OPAM_PACKAGES='ctypes cmdliner alcotest ocamlfind ctypes-foreign lwt ocaml-lua ocveralls'

# install ocaml from apt
time sudo apt-get update -qq
time sudo apt-get install -qq ocaml-nox m4 libffi-dev liblua5.1-0-dev libopencv-dev libncurses5-dev

# install opam
##time curl -L https://github.com/OCamlPro/opam/archive/${OPAM_VERSION}.tar.gz | tar xz -C /tmp
##pushd /tmp/opam-${OPAM_VERSION}
##time ./configure
##time make lib-ext
##time make
##time sudo make install

# testing bypassing the opam build by installing up-version
sudo bash -c "echo 'APT::Default-Release \"trusty\";' > /etc/apt/apt.conf.d/01ubuntu"
sudo bash -c "echo 'deb http://archive.ubuntu.com/ubuntu wily main restricted universe multiverse' >> /etc/apt/sources.list"
sudo bash -c "cat << EOF > /etc/apt/preferences
Package: opam
Pin: release n=wily
Pin-Priority: 900

Package: ocaml-nox
Pin: release n=wily
Pin-Priority: 900
EOF"<commit_msg>DERP: Travis: Use the right version of packages<commit_after># OCaml version to use
export OPAM_SWITCH=4.02.3
# OPAM version to install
export OPAM_VERSION=1.2.2
# OPAM packages needed to build tests
export OPAM_PACKAGES='ctypes cmdliner alcotest ocamlfind ctypes-foreign lwt ocaml-lua ocveralls'

# install ocaml from apt
##time sudo apt-get update -qq
##time sudo apt-get install -qq ocaml-nox m4 libffi-dev liblua5.1-0-dev libopencv-dev libncurses5-dev

# install opam
##time curl -L https://github.com/OCamlPro/opam/archive/${OPAM_VERSION}.tar.gz | tar xz -C /tmp
##pushd /tmp/opam-${OPAM_VERSION}
##time ./configure
##time make lib-ext
##time make
##time sudo make install

# testing bypassing the opam build by installing up-version
sudo bash -c "echo 'APT::Default-Release \"trusty\";' > /etc/apt/apt.conf.d/01ubuntu"
sudo bash -c "echo 'deb http://archive.ubuntu.com/ubuntu wily main restricted universe multiverse' >> /etc/apt/sources.list"
sudo bash -c "cat << EOF > /etc/apt/preferences
Package: opam
Pin: release n=wily
Pin-Priority: 900

Package: ocaml-nox
Pin: release n=wily
Pin-Priority: 900
EOF"
{'fraction_non_alphanumeric': 0.11893870082342177, 'fraction_numerical': 0.018298261665141813, 'mean_word_length': 4.494974874371859, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '3982622', 'n_tokens_mistral': 844, 'n_tokens_neox': 778, 'n_words': 244}