<commit_before>sudo: required

services:
  - docker

notifications:
  email: false

before_script:
  - docker pull dalg24/cap-stack

script:
  - docker build -t dalg24/cap .

after_success:
  - docker login -e="${DOCKER_EMAIL}" -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}"
  - docker push dalg24/cap<commit_msg>do not try to push docker images on pull requests<commit_after>sudo: required

services:
  - docker

notifications:
  email: false

before_script:
  - docker pull dalg24/cap-stack

script:
  - docker build -t dalg24/cap .

after_success:
  - >
    if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
      docker login -e="${DOCKER_EMAIL}" -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}";
      docker push dalg24/cap;
      echo "push the image that was built to the docker repository.";
    else
      echo "this is a pull request, do not push the image to docker hub.";
    fi;
{'fraction_non_alphanumeric': 0.12121212121212122, 'fraction_numerical': 0.013468013468013467, 'mean_word_length': 3.4378109452736316, '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': '7073940', 'n_tokens_mistral': 326, 'n_tokens_neox': 304, 'n_words': 89}