<commit_before># NB: don't set `language: haskell` here.  We use 'sh' in order to get
# a pure VM with nothing really preinstalled.
language: sh

# We use a container-based worker.
sudo: false

cache:
  directories:
    - .cabal
    - .ghc

# The following enables several GHC versions to be tested; often it's
# enough to test only against the last release in a major GHC
# version. Feel free to omit lines listings versions you don't
# need/want testing for.
env:
 - CABALVER=1.18.1.0 GHCVER=7.8.4
 - CABALVER=1.22.4.0 GHCVER=7.10.1

# Note: the distinction between `before_install` and `install` is not
# important.
before_install:
 - travis_retry wget https://www.haskell.org/ghc/dist/$GHCVER/ghc-$GHCVER-x86_64-unknown-linux-deb7.tar.xz
 - travis_retry wget http://hackage.haskell.org/package/cabal-install-$CABALVER/cabal-install-$CABALVER.tar.gz
 - export PATH=$HOME/.cabal/bin:$HOME/.local/bin:$PATH
 - tar xf ghc-$GHCVER-x86_64-unknown-linux-deb7.tar.xz
 - tar xf cabal-install-$CABALVER.tar.gz
 - (cd ghc-$GHCVER && ./configure --prefix=$HOME/.local/ && make install)
 - (cd cabal-install-$CABALVER && ./bootstrap.sh)
 - travis_retry cabal update
 - travis_retry cabal install happy alex hlint regex-tdfa

install:
 - cabal --version
 - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
 - cabal install --only-dependencies --enable-tests --force-reinstalls

# Here starts the actual work to be performed for the package under
# test; any command which exits with a non-zero exit code causes the<commit_msg>What if we use Travis packages?<commit_after>language: haskell

# We use a container-based worker.
sudo: false

ghc:
  7.8
  7.10

cache:
  directories:
    - .cabal
    - .ghc

# Note: the distinction between `before_install` and `install` is not
# important.
before_install:
 - travis_retry cabal update
 - travis_retry cabal install happy alex hlint regex-tdfa

install:
 - cabal --version
 - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
 - cabal install --only-dependencies --enable-tests --force-reinstalls

# Here starts the actual work to be performed for the package under
# test; any command which exits with a non-zero exit code causes the
{'fraction_non_alphanumeric': 0.12327547841566533, 'fraction_numerical': 0.015131286159323543, 'mean_word_length': 3.5414141414141413, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 2, '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': '7603536', 'n_tokens_mistral': 801, 'n_tokens_neox': 766, 'n_words': 240}