<commit_before>machine:
  services:
    - docker

dependencies:
  override:
    - docker build -t craftship/phonebox:$CIRCLE_SHA1 .

test:
  override:
    - docker run -d -p 80:8080 craftship/phonebox:$CIRCLE_SHA1; sleep 3
    - curl --retry 3 --retry-delay 1 -v http://localhost

deployment:
  hub:
    branch: master
    commands:
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASSWORD
      - docker push craftship/phonebox:$CIRCLE_SHA1<commit_msg>Improve tag for docker, keeping it DRY<commit_after>machine:
  environment:
    TAG: ${CIRCLE_SHA1:0:7}
  services:
    - docker

dependencies:
  override:
    - docker build -t craftship/phonebox:$TAG .

test:
  override:
    - docker run -d -p 80:8080 craftship/phonebox:$TAG; sleep 3
    - curl --retry 3 --retry-delay 1 -v http://localhost

deployment:
  hub:
    branch: master
    commands:
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASSWORD
      - docker push craftship/phonebox:$TAG
{'fraction_non_alphanumeric': 0.10772357723577236, 'fraction_numerical': 0.024390243902439025, 'mean_word_length': 2.877952755905512, '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': '1290335', 'n_tokens_mistral': 380, 'n_tokens_neox': 346, 'n_words': 92}