<commit_before># OPAM version to install
export OPAM_VERSION=1.2
# OPAM packages needed to build tests
export OPAM_PACKAGES='ocamlfind ounit'

# install ocaml from apt
sudo apt-get update -qq
sudo apt-get install -qq ocaml

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

# install packages from opam
opam install -q -y ${OPAM_PACKAGES}
echo "*** <Install> done! ***"

# compile & run tests
export LIBS='lib/SharedSecret.ml'
export OCAMLFIND='/home/travis/.opam/system/bin/ocamlfind'

mkdir _test
for file in lib_test/*.ml
do
    $OCAMLFIND ocamlc -o "_test/$file" -package oUnit -linkpkg -I lib -g $LIBS $file
done
echo "*** <Link> done! ***"

for test in _test/*
do
    ./_test/$test
done
echo "*** <Test> done! ***"

# clean
rm -R -f _test
echo "*** <Clear> done! ***"
echo "*** <Build> done! ***"<commit_msg>Well, now this should work.<commit_after># OPAM version to install
export OPAM_VERSION=1.2
# OPAM packages needed to build tests
export OPAM_PACKAGES='ocamlfind ounit'

# install ocaml from apt
sudo apt-get update -qq
sudo apt-get install -qq ocaml

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

# install packages from opam
opam install -q -y ${OPAM_PACKAGES}
echo "*** <Install> done! ***"

# compile & run tests
export LIBS='../lib/SharedSecret.ml'
export OCAMLFIND='/home/travis/.opam/system/bin/ocamlfind'

mkdir _test
cd lib_test
for file in ./*.ml
do
    $OCAMLFIND ocamlc -o "../_test/$file" -package oUnit -linkpkg -I ../lib -g $LIBS $file
done
echo "*** <Link> done! ***"

cd ../_test
for test in ./*
do
    ./_test/$test
done
cd ..
echo "*** <Test> done! ***"

# clean
rm -R -f _test
echo "*** <Clear> done! ***"
echo "*** <Build> done! ***"
{'fraction_non_alphanumeric': 0.15361744301288405, 'fraction_numerical': 0.0019821605550049554, 'mean_word_length': 3.717289719626168, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '1719737', 'n_tokens_mistral': 777, 'n_tokens_neox': 754, 'n_words': 244}