<commit_before>#!/bin/bash

DEFAULT_TARGET=motto.byte

if [ -z $1 ]
then
  TARGET=${DEFAULT_TARGET}
else
  TARGET="${1}"
fi

if [ -f "${TARGET}" ]
then
  echo "Target (${TARGET}) already exists" >&2
  exit 1
fi

echo "building ${TARGET}"

# NOTE could add -dont-catch-errors to have exceptions pass through catches.
ocamlbuild -cflag -g -lflag -g -tag thread -use-ocamlfind -use-menhir \
  -package dynlink -package str \
  -no-hygiene \
  -I front-end \
  -I back-end \
  -I general \
  -I runtime \
  -I syntax \
  -I il \
  -I tests/runtime \
  ${TARGET}<commit_msg>brought back annotations, for type inference at the IDE;<commit_after>#!/bin/bash

DEFAULT_TARGET=motto.byte

if [ -z $1 ]
then
  TARGET=${DEFAULT_TARGET}
else
  TARGET="${1}"
fi

if [ -f "${TARGET}" ]
then
  echo "Target (${TARGET}) already exists" >&2
  exit 1
fi

echo "building ${TARGET}"

# NOTE could add -dont-catch-errors to have exceptions pass through catches.
ocamlbuild -cflag -g -lflag -g -cflag -annot -tag thread -use-ocamlfind -use-menhir \
  -package dynlink -package str \
  -no-hygiene \
  -I front-end \
  -I back-end \
  -I general \
  -I runtime \
  -I syntax \
  -I il \
  -I tests/runtime \
  ${TARGET}
{'fraction_non_alphanumeric': 0.14728033472803348, 'fraction_numerical': 0.0066945606694560665, 'mean_word_length': 2.7258566978193146, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7257575', 'n_tokens_mistral': 460, 'n_tokens_neox': 440, 'n_words': 139}