<commit_before>sudo: required
language: cpp
compiler:
  - gcc
  - clang

env:
  - ANALYZE=false
  - ANALYZE=true

matrix:
  exclude:
  - compiler: gcc
    env: ANALYZE=true

services:
  - docker
  
before_install:
  - docker pull lowkey42/build-env:latest
  - docker run -e "CXX=$CXX" -e "CC=$CC" -v $TRAVIS_BUILD_DIR:/repo -itd --name build lowkey42/build-env

script:
  - source $TRAVIS_BUILD_DIR/.travis.sh
<commit_msg>Added docker image caching to travis-ci file<commit_after>sudo: required
language: cpp
compiler:
  - gcc
  - clang

cache:
  directories:
  - $CACHE_DIR

env:
  - ANALYZE=false
  - ANALYZE=true
  global:
    - CACHE_DIR=$HOME/.cache/docker
    - CACHE_FILE_DI=$CACHE_DIR/docker_image.tar.gz

matrix:
  exclude:
  - compiler: gcc
    env: ANALYZE=true

services:
  - docker
  
before_install:
  - if [ -f ${CACHE_FILE_DI} ]; then gunzip -c ${CACHE_FILE_DI} | docker load; fi
  - docker pull lowkey42/build-env:latest
  - docker run -e "CXX=$CXX" -e "CC=$CC" -v $TRAVIS_BUILD_DIR:/repo -itd --name build lowkey42/build-env
  - mkdir -p $CACHE_DIR
  - if [ ! -f ${CACHE_FILE_DI} ]; then docker save lowkey42/build-env:latest | gzip > ${CACHE_FILE_DI}; fi

script:
  - source $TRAVIS_BUILD_DIR/.travis.sh

{'fraction_non_alphanumeric': 0.12837285363859363, 'fraction_numerical': 0.008176614881439084, 'mean_word_length': 3.220689655172414, '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': '4277853', 'n_tokens_mistral': 514, 'n_tokens_neox': 486, 'n_words': 109}