<commit_before># Thanks to frenetic-lang/ocaml-topology
case "$OCAML_VERSION,$OPAM_VERSION" in
3.12.1,1.0.0) ppa=avsm/ocaml312+opam10 ;;
3.12.1,1.1.0) ppa=avsm/ocaml312+opam11 ;;
4.00.1,1.0.0) ppa=avsm/ocaml40+opam10 ;;
4.00.1,1.1.0) ppa=avsm/ocaml40+opam11 ;;
4.01.0,1.0.0) ppa=avsm/ocaml41+opam10 ;;
4.01.0,1.1.0) ppa=avsm/ocaml41+opam11 ;;
*) echo Unknown $OCAML_VERSION,$OPAM_VERSION; exit 1 ;;
esac

echo "yes" | sudo add-apt-repository ppa:$ppa
sudo apt-get update -qq
sudo apt-get install -qq ocaml ocaml-native-compilers camlp4-extra opam libsdl-image1.2-dev

export OPAMYES=1
export OPAMVERBOSE=1
echo OCaml version
ocaml -version
echo OPAM versions
opam --version
opam --git-version

opam init
eval `opam config env`
opam install ocp-build
opam install ${OPAM_DEPENDS}

opam install ocp-indent
ocp-indent -i *.ml bulletml/*.ml bulletml/*.mli tests/*.ml
[ -z "$(git diff)" ]

ocp-build -init
make check
make js
make doc

wget http://sagotch.fr/Bisect.tar.gz
tar -xvf Bisect.tar.gz
cd Bisect
chmod +x configure
./configure
cat Makefile.config
make all
sudo make install
cd ..<commit_msg>check SHA1 of tarball<commit_after># Thanks to frenetic-lang/ocaml-topology
case "$OCAML_VERSION,$OPAM_VERSION" in
3.12.1,1.0.0) ppa=avsm/ocaml312+opam10 ;;
3.12.1,1.1.0) ppa=avsm/ocaml312+opam11 ;;
4.00.1,1.0.0) ppa=avsm/ocaml40+opam10 ;;
4.00.1,1.1.0) ppa=avsm/ocaml40+opam11 ;;
4.01.0,1.0.0) ppa=avsm/ocaml41+opam10 ;;
4.01.0,1.1.0) ppa=avsm/ocaml41+opam11 ;;
*) echo Unknown $OCAML_VERSION,$OPAM_VERSION; exit 1 ;;
esac

echo "yes" | sudo add-apt-repository ppa:$ppa
sudo apt-get update -qq
sudo apt-get install -qq ocaml ocaml-native-compilers camlp4-extra opam libsdl-image1.2-dev

export OPAMYES=1
export OPAMVERBOSE=1
echo OCaml version
ocaml -version
echo OPAM versions
opam --version
opam --git-version

opam init
eval `opam config env`
opam install ocp-build
opam install ${OPAM_DEPENDS}

opam install ocp-indent
ocp-indent -i *.ml bulletml/*.ml bulletml/*.mli tests/*.ml
[ -z "$(git diff)" ]

ocp-build -init
make check
make js
make doc

echo "0092a42114e7937ad06d1f19b6345c41a84196ad  Bisect.tar.gz" > bisect.SHA1SUMS
wget http://sagotch.fr/Bisect.tar.gz
sha1sum -c bisect.SHA1SUM
tar -xvf Bisect.tar.gz
cd Bisect
chmod +x configure
./configure
cat Makefile.config
make all
sudo make install
cd ..
{'fraction_non_alphanumeric': 0.13969631236442517, 'fraction_numerical': 0.07852494577006508, 'mean_word_length': 4.362790697674418, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, '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': '5164286', 'n_tokens_mistral': 1110, 'n_tokens_neox': 1010, 'n_words': 230}