<commit_before>sudo: false

matrix:
    include:
        - os: linux
          env: CABALVER=1.22 GHCVER=7.10.3
        - os: osx

addons:
    apt:
        packages:
            - ghc-7.10.3
            - alex-3.1.4
            - happy-1.19.5
            - cabal-install-1.22
            - zlib1g-dev
        sources: hvr-ghc

before_install:
    - if [ $TRAVIS_OS_NAME == osx ]; then brew update; fi
    - if [ $TRAVIS_OS_NAME == osx ]; then brew install ghc cabal-install; fi
    - if [ $TRAVIS_OS_NAME == osx ]; then cabal update; fi
    - if [ $TRAVIS_OS_NAME == osx ]; then cabal install alex happy; fi
    - if [ $TRAVIS_OS_NAME == linux ]; then PATH="/opt/ghc/$GHCVER/bin:$PATH"; fi
    - if [ $TRAVIS_OS_NAME == linux ]; then PATH="/opt/cabal/$CABALVER/bin:$PATH"; fi
    - PATH="$HOME/.cabal/bin:$PATH"
    - export PATH

    - env
    - ghc --version
    - cabal --version
    - alex --version
    - happy --version
    - cabal update

install:

    - travis_retry git clone git://git.haskell.org/ghc --recurse-submodules

    # Travis clones the project into ".", but we need it as a child directory
    # of "ghc/". For this reason, we - rather hackily - move the GHC-Shake
    # ".git"  directory into the appropriate location, and perform a hard reset
    # in order to regenerate the GHC-Shake files.
    - mkdir ghc/shake-build
    - mv .git ghc/shake-build
    - ( cd ghc/shake-build && git reset --hard HEAD )

    - ( cd ghc/shake-build && cabal install --only-dependencies )

    - ( cd ghc && ./boot )
    - ( cd ghc && ./configure )

script:
    - ./ghc/shake-build/build.sh -j --no-progress

cache:
    directories:
        - $HOME/.cabal<commit_msg>Can we put addons and before_install into the include?<commit_after>sudo: false

matrix:
    include:
        - os: linux
          env: CABALVER=1.22 GHCVER=7.10.3
          addons:
              apt:
                  packages:
                      - ghc-7.10.3
                      - alex-3.1.4
                      - happy-1.19.5
                      - cabal-install-1.22
                      - zlib1g-dev
                  sources: hvr-ghc
          before_install:
              - PATH="/opt/ghc/$GHCVER/bin:$PATH"
              - PATH="/opt/cabal/$CABALVER/bin:$PATH"
              - PATH="$HOME/.cabal/bin:$PATH"
              - export PATH
        - os: osx
          before_install:
              - brew update
              - brew install ghc cabal-install
              - cabal update
              - cabal install alex happy
              - PATH="$HOME/.cabal/bin:$PATH"
              - export PATH

before_install:
    - env
    - ghc --version
    - cabal --version
    - alex --version
    - happy --version
    - cabal update

install:

    - travis_retry git clone git://git.haskell.org/ghc --recurse-submodules

    # Travis clones the project into ".", but we need it as a child directory
    # of "ghc/". For this reason, we - rather hackily - move the GHC-Shake
    # ".git"  directory into the appropriate location, and perform a hard reset
    # in order to regenerate the GHC-Shake files.
    - mkdir ghc/shake-build
    - mv .git ghc/shake-build
    - ( cd ghc/shake-build && git reset --hard HEAD )

    - ( cd ghc/shake-build && cabal install --only-dependencies )

    - ( cd ghc && ./boot )
    - ( cd ghc && ./configure )

script:
    - ./ghc/shake-build/build.sh -j --no-progress

cache:
    directories:
        - $HOME/.cabal
{'fraction_non_alphanumeric': 0.12278149549025313, 'fraction_numerical': 0.012801862089031132, 'mean_word_length': 1.5675877520537715, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5641630', 'n_tokens_mistral': 1190, 'n_tokens_neox': 1130, 'n_words': 296}